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]

Re: Can't build gcc version 4.2.0 20060311 (experimental) on sparc/sparc64 linux


oops, this went to gcc-patches, should have gone here...

On 3/23/06, Christian Joensson <christian.joensson@gmail.com> wrote:
> This was on
>
> Aurora SPARC Linux release 2.0b2 (Kashmir FC3) UltraSparc IIi (Sabre) sun4u:
>
> binutils-2.15.92.0.2-5.sparc
> bison-2.1-1.1.sparc
> dejagnu-1.4.4-2.noarch
> expect-5.43.0-2.1.sparc
> gcc-3.4.2-6.fc3.sparc
> package gcc4 is not installed
> glibc-2.3.3-99.sparcv9
> glibc-2.3.3-99.sparc64
> glibc-devel-2.3.3-99.sparc
> glibc-devel-2.3.3-99.sparc64
> glibc-headers-2.3.3-99.sparc
> glibc-kernheaders-2.6-20sparc.sparc
> gmp-4.1.4-3sparc.sparc
> gmp-4.1.4-3sparc.sparc64
> gmp-devel-4.1.4-3sparc.sparc
> gmp-devel-4.1.4-3sparc.sparc64
> kernel-2.6.13-1.1603sp11.sparc64
> package kernel-devel is not installed
> package kernel-smp is not installed
> libgcc-3.4.2-6.fc3.sparc
> libgcc-3.4.2-6.fc3.sparc64
> libstdc++-3.4.2-6.fc3.sparc
> libstdc++-3.4.2-6.fc3.sparc64
> libstdc++-devel-3.4.2-6.fc3.sparc
> libstdc++-devel-3.4.2-6.fc3.sparc64
> make-3.80-5.sparc
> nptl-devel-2.3.3-99.sparcv9
> tcl-8.4.11-1.1.sparc
>
> and configures like this:
>
> ./gcc/xgcc -v
> Using built-in specs.
> Target: sparc64-unknown-linux-gnu
> Configured with: ../gcc/configure --enable-__cxa_atexit
> --enable-shared --with-cpu=v7
> --enable-languages=c,ada,c++,fortran,java,objc,obj-c++,treelang
> Thread model: posix
> gcc version 4.2.0 20060311 (experimental)
>
> taken from the 4.2 snapshot
>
> /usr/local/src/trunk/objdir/./gcc/xgcc
> -B/usr/local/src/trunk/objdir/./gcc/
> -B/usr/local/sparc64-unknown-linux-gnu/bin/
> -B/usr/local/sparc64-unknown-linux-gnu/lib/ -isystem
> /usr/local/sparc64-unknown-linux-gnu/include -isystem
> /usr/local/sparc64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
> -I../../../../gcc/libgomp -I.
> -I../../../../gcc/libgomp/config/linux/sparc
> -I../../../../gcc/libgomp/config/linux
> -I../../../../gcc/libgomp/config/posix -I../../../../gcc/libgomp -Wall
> -Werror -pthread -ftls-model=initial-exec -O2 -g -O2 -m64 -MT
> fortran.lo -MD -MP -MF .deps/fortran.Tpo -c
> ../../../../gcc/libgomp/fortran.c -o fortran.o >/dev/null 2>&1
> /bin/sh ./libtool --mode=link /usr/local/src/trunk/objdir/./gcc/xgcc
> -B/usr/local/src/trunk/objdir/./gcc/
> -B/usr/local/sparc64-unknown-linux-gnu/bin/
> -B/usr/local/sparc64-unknown-linux-gnu/lib/ -isystem
> /usr/local/sparc64-unknown-linux-gnu/include -isystem
> /usr/local/sparc64-unknown-linux-gnu/sys-include -Wall -Werror
> -ftls-model=initial-exec -Wc,-pthread -O2 -g -O2   -m64
> -Wl,-z,nodlopen  -Wl,-O1  -m64 -o libgomp.la -rpath
> /usr/local/lib/../lib64 -version-info 1:0:0
> -Wl,--version-script,../../../../gcc/libgomp/libgomp.map alloc.lo
> barrier.lo critical.lo env.lo error.lo iter.lo loop.lo ordered.lo
> parallel.lo sections.lo single.lo team.lo work.lo lock.lo mutex.lo
> proc.lo sem.lo bar.lo time.lo fortran.lo  -lrt
> /usr/local/src/trunk/objdir/./gcc/xgcc
> -B/usr/local/src/trunk/objdir/./gcc/
> -B/usr/local/sparc64-unknown-linux-gnu/bin/
> -B/usr/local/sparc64-unknown-linux-gnu/lib/ -isystem
> /usr/local/sparc64-unknown-linux-gnu/include -isystem
> /usr/local/sparc64-unknown-linux-gnu/sys-include  -m64 -shared
> .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o
> .libs/error.o .libs/iter.o .libs/loop.o .libs/ordered.o
> .libs/parallel.o .libs/sections.o .libs/single.o .libs/team.o
> .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o
> .libs/bar.o .libs/time.o .libs/fortran.o  -lrt  -pthread -Wl,-z
> -Wl,nodlopen -Wl,-O1 -Wl,--version-script
> -Wl,../../../../gcc/libgomp/libgomp.map -Wl,-soname -Wl,libgomp.so.1
> -o .libs/libgomp.so.1.0.0
> /usr/bin/ld: .libs/barrier.o: check_relocs: unhandled reloc type 0
> .libs/barrier.o: could not read symbols: File format not recognized
> collect2: ld returned 1 exit status
>
> The problem is this:
>
> file .libs/barrier.o
> .libs/barrier.o: ELF 32-bit MSB relocatable, SPARC32PLUS, V8+
> Required, version 1 (SYSV), not stripped
>
> shouldn't this be ELF 32-bit MSB executable, SPARC, version 1 (SYSV)?
>
> --
> Cheers,
>
> /ChJ
>


--
Cheers,

/ChJ


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