public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: gcc 3.2.3 Solaris C,C++ build error
       [not found] <616BE6A276E3714788D2AC35C40CD18DC3F2B6@whale.softwire.co.uk>
@ 2003-04-28 11:34 ` Rupert Wood
  0 siblings, 0 replies; 5+ messages in thread
From: Rupert Wood @ 2003-04-28 11:34 UTC (permalink / raw)
  To: 'Lars Schouw'; +Cc: gcc

Lars Schouw wrote: 

> This brings be further in the compilation where it stops with some
> 64 bit problem again....
:
> configure: error: installation or configuration
> problem: C compiler cannot create executables.
> gmake: *** [configure-target-libiberty] Error 1
>
> How do I solve this problem?

Have a look at config.log to see what the compile error actually was.

Best guess it can't find /usr/lib/sparcv9/values-Xa.o which means you're
missing package SUNWarcx. You can install this from your Solaris media.
You'll probably also want SUNWcslx and perhaps SUNWtoox.

If you can't find the compile error in the log then you could run a quick
test yourself, e.g.

    cat >conftest.c
    int main(void) { return 0; }

then press ctrl-d, and then try to compile this 64-bit with the new xgcc:

    /home/schouwl/unpack/gcc/gcc-3.2.3/gcc/xgcc
      -B/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/
      -B/opt/software/gcc/3.2.3/sparc-sun-solaris2.8/bin/
      -m64 -v -c conftest.c

Good luck,
Rup.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc 3.2.3 Solaris C,C++ build error
  2003-04-28  3:53 Lars Schouw
@ 2003-04-28 17:32 ` Kaveh R. Ghazi
  0 siblings, 0 replies; 5+ messages in thread
From: Kaveh R. Ghazi @ 2003-04-28 17:32 UTC (permalink / raw)
  To: gccmailinglist; +Cc: gcc

> I get the following build error when trying in install gcc 3.2.3.
> 
> Assembler messages:Fatal error: No compiled in support
> for 64 bit object file format
> gmake[2]: *** [libgcc/sparcv9/_muldi3.o] Error 1

This sounds like the issue mentioned here regarding 32-bit only
installations:
http://gcc.gnu.org/install/specific.html#sparc-sun-solaris2*

Try configuring with --disable-multilib and see if that helps.

PS: Make sure you read all the various solaris installation docs,
especially the part about using /bin/ksh when building gcc.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc 3.2.3 Solaris C,C++ build error
@ 2003-04-28 11:03 Lars Schouw
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Schouw @ 2003-04-28 11:03 UTC (permalink / raw)
  To: gcc

I think I found how to solve that problem as well.
I have to stop beeing so GNU'is and go for the SUN
Solaris ld and as tools installed under /usr/ccs.

Like described here:
http://www.sunfreeware.com/gcc.html

That seems to compile now.

Regards,
Lars Schouw

--- Lars Schouw <gccmailinglist@yahoo.com> wrote:
> My binutils as copied over from my Solaris 5.6
> machine.
> I compiled binutils again on this new Solaris 8 OS
> installation here.
> 
> I also change the way I did my configuration so I
> include the fill release to be build.
> 
>  ./configure --prefix=/opt/software/gcc/3.2.3
> --with-gnu-as
> --with-as=/opt/software/binutils/2.12.1/bin/as
> --with-gnu-ld 
> --with-ld=/opt/software/binutils/2.12.1/bin/ld
> 
> This brings be further in the compilation where it
> stops with some64 bit problem again....
> 
> checking for uintptr_t... yes
> checking whether the C compiler
> (/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/xgcc
> -B/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/
> -B/opt/software/gcc/3.2.3
> /sparc-sun-solaris2.8/bin/
> -B/opt/software/gcc/3.2.3/sparc-sun-solaris2.8/lib/
> -isystem
> /opt/software/gcc/3.2.3/sparc-sun-solaris2.8/include
> 
> -m
> 64 -O2 -g -O2 ) works... no
> configure: error: installation or configuration
> problem: C compiler cannot create executables.
> gmake: *** [configure-target-libiberty] Error 1
> 
> How do I solve this problem?
> 
> Regards,
> Lars Schouw
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc 3.2.3 Solaris C,C++ build error
       [not found] <20030428052855.58683.qmail@web20511.mail.yahoo.com>
@ 2003-04-28 10:29 ` Lars Schouw
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Schouw @ 2003-04-28 10:29 UTC (permalink / raw)
  To: gcc

My binutils as copied over from my Solaris 5.6
machine.
I compiled binutils again on this new Solaris 8 OS
installation here.

I also change the way I did my configuration so I
include the fill release to be build.

 ./configure --prefix=/opt/software/gcc/3.2.3
--with-gnu-as
--with-as=/opt/software/binutils/2.12.1/bin/as
--with-gnu-ld 
--with-ld=/opt/software/binutils/2.12.1/bin/ld

This brings be further in the compilation where it
stops with some64 bit problem again....

checking for uintptr_t... yes
checking whether the C compiler
(/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/xgcc
-B/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/
-B/opt/software/gcc/3.2.3
/sparc-sun-solaris2.8/bin/
-B/opt/software/gcc/3.2.3/sparc-sun-solaris2.8/lib/
-isystem
/opt/software/gcc/3.2.3/sparc-sun-solaris2.8/include 
-m
64 -O2 -g -O2 ) works... no
configure: error: installation or configuration
problem: C compiler cannot create executables.
gmake: *** [configure-target-libiberty] Error 1

How do I solve this problem?

Regards,
Lars Schouw

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* gcc 3.2.3 Solaris C,C++ build error
@ 2003-04-28  3:53 Lars Schouw
  2003-04-28 17:32 ` Kaveh R. Ghazi
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Schouw @ 2003-04-28  3:53 UTC (permalink / raw)
  To: gcc

I get the following build error when trying in install
gcc 3.2.3.
Assembler messages:Fatal error: No compiled in support
for 64 bit object file format
gmake[2]: *** [libgcc/sparcv9/_muldi3.o] Error 1

Can anyone explain that error? 
How do I solve this problem?
So I need to build by binutils again with 64 bit
support?

Is that because my current assembler was not compiled
for 64 bit?
Can I turn 64 bit support of since I am not sure I
will need it in for my projects... yet.

I have the following setup.
I have Solaris 2.8
gcc 3.2.2
binutils 2.12.1
gmake  3.80 
./configure --prefix=/opt/software/gcc/3.3.3
--with-gnu-as
--with-as=/opt/software/binutils/2.12.1/bin/as
--with-gnu-ld
--with-ld=/opt/software/binutils/2.12.1/bin/ld
--enable-languages=c,c++
gmake -j2
and get this output from my build:
gmake
GCC_FOR_TARGET="/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/xgcc
-B/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/
-B/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/bin/
-B/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/lib/
-isystem
/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/include"
\  AR_FOR_TARGET="ar" \  AR_CREATE_FOR_TARGET="ar  rc"
\  AR_EXTRACT_FOR_TARGET="" \  AR_FLAGS_FOR_TARGET=""
\  CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long" \  HOST_PREFIX="" \ 
HOST_PREFIX_1="loser-" \  LANGUAGES="" \ 
LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  "  \  MULTILIB_CFLAGS="" T=
crtfastmath.o(cd intl && gmake all)
gmake[3]: Entering directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc'
gmake[4]: Entering directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/intl'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/intl'
gmake[3]: Leaving directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc'/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/xgcc
-B/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/
-B/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/bin/
-B/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/lib/
-isystem
/opt/software/gcc/3.3.3/sparc-sun-solaris2.8/include
-O2  -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I. -I./. -I./config
-I./../include  -m64 -DL_muldi3 -c ./libgcc2.c -o
libgcc/sparcv9/_muldi3.o(cd intl && gmake
all)Assembler messages:Fatal error: No compiled in
support for 64 bit object file format
gmake[2]: *** [libgcc/sparcv9/_muldi3.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[4]: Entering directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/intl'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc/intl'
gmake[3]: Leaving directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc'
gmake[2]: Leaving directory
`/home/schouwl/unpack/gcc/gcc-3.2.3/gcc'

And the compilation stops.

Regards,
Lars Schouw




__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-28 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <616BE6A276E3714788D2AC35C40CD18DC3F2B6@whale.softwire.co.uk>
2003-04-28 11:34 ` gcc 3.2.3 Solaris C,C++ build error Rupert Wood
2003-04-28 11:03 Lars Schouw
     [not found] <20030428052855.58683.qmail@web20511.mail.yahoo.com>
2003-04-28 10:29 ` Lars Schouw
  -- strict thread matches above, loose matches on Subject: below --
2003-04-28  3:53 Lars Schouw
2003-04-28 17:32 ` Kaveh R. Ghazi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).