This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

One fully and one partially successful build


Successful build:

$ which as; as --version             
/phil/sw/sunos/sparc/bin/as
GNU assembler 2.15.97 20050420
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.7'.
$ /phil/sw/src/gcc-4.0.0/config.guess
sparc-sun-solaris2.7
$ gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.7
Configured with: /phil/sw/src/gcc-4.0.0/configure --prefix=/phil/sw/sunos/sparc/pkg/gcc-4.0.0 --disable-libgcj --enable-languages=c,c++,objc --with-gnu-as --with-as=/phil/sw/sunos/sparc/bin/as --with-gnu-ld --with-ld=/phil/sw/sunos/sparc/bin/ld --enable-shared
Thread model: posix
gcc version 4.0.0

Partially successful build:

$ /phil/sw/src/gcc-4.0.0/config.guess
i386-pc-solaris2.10
$ which as; as --version; which ld; ld --version
/phil/sw/sunos/i386/bin/as
GNU assembler 2.15.97 20050420
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-pc-solaris2.10'.
/phil/sw/sunos/i386/bin/ld
GNU ld version 2.15.97 20050420
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: /phil/sw/src/gcc-4.0.0/configure --prefix=/phil/sw/sunos/i386/pkg/gcc-4.0.0 --disable-libgcj --enable-languages=c,objc --with-gnu-as --with-as=/phil/sw/sunos/i386/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared
Thread model: posix
gcc version 4.0.0

Building with C++ support fails, because the linker chokes when linking
libstdc++.so.6.0.4:

""
ld: fatal: relocation error: file: .libs/stdexcept.o section: .rel.debug_info symbol: : relocation against a discarded symbol,
        symbol is part of discarded section: .gnu.linkonce.t._ZNSt12out_of_rangeD0Ev
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
""

Using Sun's ld instead of GNU ld didn't work here (it did when
building 3.4.3), because GNU ld chokes on /usr/lib/amd64/crti.o:

""
$ phil/sw/src/gcc-4.0.0/configure \
        --prefix=/phil/sw/sunos/i386/pkg/gcc-4.0.0 \              
        --disable-libgcj \
        --enable-languages=c,c++,objc \
        --with-gnu-as \
        --with-as=/phil/sw/sunos/i386/bin/as \
        --with-gnu-ld \
        --with-ld=/phil/sw/sunos/i386/bin/ld \
        --enable-shared
$ make -s [..] bootstrap
[...]
/usr/lib/amd64/crti.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [amd64/libgcc_s.so] Error 1
""


Regards, Jeroen.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]