niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris
build trouble - gcc-4.1.1 on Solaris 10
Post new topic   Reply to topic Page 2 of 2 [20 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2
Author Message
Thommy M. Malmström
*nix forums beginner


Joined: 26 Apr 2006
Posts: 49

PostPosted: Fri Jul 21, 2006 9:02 am    Post subject: Re: build trouble - gcc-4.1.1 on Solaris 10 Reply with quote

Dave (from the UK) wrote:
Quote:
Dave (from the UK) wrote:

I rebuilt as I said I would, but it fails - see below. This time I did
set CONFIG_SHELL to bash and export it before trying to build. As you
can see, it still fails.

Oops, my error.

I'd run out of disk space - that is why the build failed. It has now
built on Solaris 10 update 2.


Lucky you. I still have errors...


$ cd /opt/local/src
$ gtar jxf gcc-4.1.1.tar.bz2
$ mkdir buildgcc-4.1.1
$ cd buildgcc-4.1.1
$ export CONFIG_SHELL=/usr/bin/bash

$ ../gcc-4.1.1/configure --prefix=/opt/local --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-threads --disable-nls
--enable-java-awt=xlib --with-x --enable-languages=c,c++,java,objc

$ gmake bootstrap
[...]
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c: At top level:
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:391: warning: return type
defaults to 'int'
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:391: warning: function
declaration isn't a prototype
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c: In function 'moncontrol':
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:392: warning: old-style
function definition
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:396: warning: implicit
declaration of function 'profil'
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:398: warning: cast from
pointer to integer of different size
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:406: warning: control
reaches end of non-void function
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c: At top level:
.../../gcc-4.1.1/gcc/config/i386/gmon-sol2.c:58: warning: 'sccsid'
defined but not used
Assembler:
"", line 1 : Illegal flag (-)
gmake[4]: *** [amd64/gmon.o] Error 1
gmake[4]: Leaving directory `/usr/local/src/buildgcc-4.1.1/gcc'
gmake[3]: *** [extraamd64] Error 2
gmake[3]: Leaving directory `/usr/local/src/buildgcc-4.1.1/gcc'
gmake[2]: *** [stmp-multilib] Error 2
gmake[2]: Leaving directory `/usr/local/src/buildgcc-4.1.1/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/local/src/buildgcc-4.1.1/gcc'
gmake: *** [bootstrap] Error 2
Back to top
Daniel Rock
*nix forums Guru


Joined: 04 May 2005
Posts: 316

PostPosted: Fri Jul 21, 2006 9:38 am    Post subject: Re: build trouble - gcc-4.1.1 on Solaris 10 Reply with quote

"Thommy M. Malmström" <thommy.m.malmstrom@gmail.com> wrote:
Quote:
Lucky you. I still have errors...


$ cd /opt/local/src
$ gtar jxf gcc-4.1.1.tar.bz2
$ mkdir buildgcc-4.1.1
$ cd buildgcc-4.1.1
$ export CONFIG_SHELL=/usr/bin/bash

$ ../gcc-4.1.1/configure --prefix=/opt/local --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-threads --disable-nls
--enable-java-awt=xlib --with-x --enable-languages=c,c++,java,objc

On x86/amd64 you'd better use gas:

.... --with-gnu-as --with-as=/usr/sfw/bin/gas ...

Java doesn't build on amd64 - I don't know how to disable building of a
64-bit gcc if Solaris 10 was detected.

Maybe you could try
--host=i386-sun-solaris2.9
But I haven't tried.

--
Daniel
Back to top
Rainer Orth
*nix forums beginner


Joined: 07 Mar 2005
Posts: 24

PostPosted: Fri Jul 21, 2006 9:46 am    Post subject: Re: build trouble - gcc-4.1.1 on Solaris 10 Reply with quote

"Thommy M. Malmström" <thommy.m.malmstrom@gmail.com> writes:

Quote:
Lucky you. I still have errors...


$ cd /opt/local/src
$ gtar jxf gcc-4.1.1.tar.bz2
$ mkdir buildgcc-4.1.1
$ cd buildgcc-4.1.1
$ export CONFIG_SHELL=/usr/bin/bash

$ ../gcc-4.1.1/configure --prefix=/opt/local --with-as=/usr/ccs/bin/as

You should avoid using relative pathnames to the toplevel configure script
and an objdir that is a subdir of srcdir:

http://gcc.gnu.org/install/configure.html

Quote:
--with-ld=/usr/ccs/bin/ld --enable-threads --disable-nls

--with-as and --with-ld shouldn't be necessary if you have /usr/ccs/bin in
your PATH. --enable-threads is superfluous (the default) either.

Quote:
--enable-java-awt=xlib --with-x --enable-languages=c,c++,java,objc
[...]
Assembler:
"", line 1 : Illegal flag (-)
gmake[4]: *** [amd64/gmon.o] Error 1

Dave's build was on SPARC, your's is on x86/amd64: you either need to use
--disable-multilib (and don't include amd64 support) or use GNU as
(preferably the one in /usr/sfw/bin/gas) with

--with-as=/usr/sfw/bin/gas --with-gnu-as

Some hints can be found at

http://gcc.gnu.org/install/specific.html#ix86-x-solaris210
http://gcc.gnu.org/install/specific.html#x-x-solaris2

Hope this helps.

Rainer

--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Back to top
Rainer Orth
*nix forums beginner


Joined: 07 Mar 2005
Posts: 24

PostPosted: Fri Jul 21, 2006 11:38 am    Post subject: Re: build trouble - gcc-4.1.1 on Solaris 10 Reply with quote

"Daniel Rock" <v200629@deadcafe.de> writes:

Quote:
Java doesn't build on amd64 - I don't know how to disable building of a

True: see

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21942

It may take until GCC 4.3 (and the integration of boehm-gc 7.0) to have
this fixed for real.

Quote:
64-bit gcc if Solaris 10 was detected.

Simply configure with --disable-multilib.

Quote:
Maybe you could try
--host=i386-sun-solaris2.9
But I haven't tried.

This will most likely break the build since there are a couple of places
that explicitly test for *-*-solaris2.1[0-9].

Rainer

--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Back to top
Thommy M. Malmström
*nix forums beginner


Joined: 26 Apr 2006
Posts: 49

PostPosted: Fri Jul 21, 2006 12:27 pm    Post subject: Re: build trouble - gcc-4.1.1 on Solaris 10 Reply with quote

Rainer Orth wrote:
Quote:
"Thommy M. Malmström" <thommy.m.malmstrom@gmail.com> writes:

Lucky you. I still have errors...


$ cd /opt/local/src
$ gtar jxf gcc-4.1.1.tar.bz2
$ mkdir buildgcc-4.1.1
$ cd buildgcc-4.1.1
$ export CONFIG_SHELL=/usr/bin/bash

$ ../gcc-4.1.1/configure --prefix=/opt/local --with-as=/usr/ccs/bin/as

You should avoid using relative pathnames to the toplevel configure script
and an objdir that is a subdir of srcdir:

http://gcc.gnu.org/install/configure.html

--with-ld=/usr/ccs/bin/ld --enable-threads --disable-nls

--with-as and --with-ld shouldn't be necessary if you have /usr/ccs/bin in
your PATH. --enable-threads is superfluous (the default) either.

--enable-java-awt=xlib --with-x --enable-languages=c,c++,java,objc
[...]
Assembler:
"", line 1 : Illegal flag (-)
gmake[4]: *** [amd64/gmon.o] Error 1

Dave's build was on SPARC, your's is on x86/amd64: you either need to use
--disable-multilib (and don't include amd64 support) or use GNU as
(preferably the one in /usr/sfw/bin/gas) with

--with-as=/usr/sfw/bin/gas --with-gnu-as

Some hints can be found at

http://gcc.gnu.org/install/specific.html#ix86-x-solaris210
http://gcc.gnu.org/install/specific.html#x-x-solaris2

Hope this helps.

Will try this out. Thanks Rainer.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 2 of 2 [20 Posts] Goto page:  Previous  1, 2
View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:25 pm | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Trouble enabling auth on postfix and sasl dklugmann Postfix 0 Fri Feb 29, 2008 11:02 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts MySQL Max Build Policy Kaj Arnö MySQL 0 Fri Jul 21, 2006 2:08 pm
No new posts Solaris benchmark Vahid Moghaddasi Solaris 0 Fri Jul 21, 2006 1:30 pm
No new posts Bug Report - Solaris 10 spell Richard B. Gilbert Solaris 0 Fri Jul 21, 2006 11:22 am

Free Ringtones | Loans | Credit Cards UK | Cell Phones | Payday Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2813s ][ Queries: 16 (0.1872s) ][ GZIP on - Debug on ]