This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
No bootstrap on Solaris 2.7
- From: Martin Kahlert <martin dot kahlert at infineon dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 2 Jan 2002 15:58:12 +0100
- Subject: No bootstrap on Solaris 2.7
- Reply-to: martin dot kahlert at infineon dot com
Hi!
I tried bootstrapping gcc-20011231 on a Solaris 2.7 host
(SunOS mirandy 5.7 Generic_106541-17 sun4u sparc SUNW,Ultra-5_10)
using binutils-2.11.2 and the commands:
../configure --prefix=${prefix} --enable-languages=c++,f77,java --enable-threads=posix
gmake bootstrap
These are the last lines of the output:
checking for inline... inline
checking for a BSD compatible install... /bin/sh /data/titan_1/kahlert/TTT/gcc-20011231/install-sh -c
checking how to run the C preprocessor... (cached) /data/titan_1/kahlert/TTT/obj_mirandy/gcc/xgcc -B/data/titan_1/kahlert/TTT/obj_mirandy/gcc/ -B/home/kahlert/GCC/sparc-sun-solaris2.7/bin/ -B/home/kahlert/GCC/sparc-sun-solaris2.7/lib/ -isystem /home/kahlert/GCC/sparc-sun-solaris2.7/include -m64 -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... no
checking for uintptr_t... yes
checking whether the C compiler (/data/titan_1/kahlert/TTT/obj_mirandy/gcc/xgcc -B/data/titan_1/kahlert/TTT/obj_mirandy/gcc/ -B/home/kahlert/GCC/sparc-sun-solaris2.7/bin/ -B/home/kahlert/GCC/sparc-sun-solaris2.7/lib/ -isystem /home/kahlert/GCC/sparc-sun-solaris2.7/include -m64 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
gmake[1]: *** [configure-target-libiberty] Error 1
gmake[1]: Leaving directory `/data/titan_1/kahlert/TTT/obj_mirandy'
gmake: *** [bootstrap] Error 2
If i manually invoke the bad command:
/data/titan_1/kahlert/TTT/obj_mirandy/gcc/xgcc -B/data/titan_1/kahlert/TTT/obj_mirandy/gcc/ \
-B/home/kahlert/GCC/sparc-sun-solaris2.7/bin/ -B/home/kahlert/GCC/sparc-sun-solaris2.7/lib/ \
-isystem /home/kahlert/GCC/sparc-sun-solaris2.7/include -m64 -o conftest -g -O2 conftest.c
on
main(){return(0);}
I get:
/var/tmp//cciEnwwd.o: In function `main':
/home/kahlert/conftest.c:1: relocation truncated to fit: R_SPARC_32 .text
/home/kahlert/conftest.c:1: relocation truncated to fit: R_SPARC_32 .text
/home/kahlert/conftest.c:1: relocation truncated to fit: R_SPARC_32 main
/home/kahlert/conftest.c:1: relocation truncated to fit: R_SPARC_32 .text
collect2: ld returned 1 exit status
The produces assembly assembly code is this:
.file "conftest.c"
.stabs "/home/kahlert/",100,0,0,.LLtext0
.stabs "conftest.c",100,0,0,.LLtext0
.section ".text"
.LLtext0:
.stabs "gcc2_compiled.",60,0,0,0
.stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",128,0,0,0
.stabs "char:t(0,2)=r(0,2);0;127;",128,0,0,0
.stabs "long int:t(0,3)=@s64;r(0,3);001000000000000000000000;000777777777777777777777;",128,0,0,0
.stabs "unsigned int:t(0,4)=r(0,4);000000000000000000000000;000000000000037777777777;",128,0,0,0
.stabs "long unsigned int:t(0,5)=@s64;r(0,5);000000000000000000000000;001777777777777777777777;",128,0,0,0
.stabs "long long int:t(0,6)=@s64;r(0,6);001000000000000000000000;000777777777777777777777;",128,0,0,0
.stabs "long long unsigned int:t(0,7)=@s64;r(0,7);000000000000000000000000;001777777777777777777777;",128,0,0,0
.stabs "short int:t(0,8)=@s16;r(0,8);-32768;32767;",128,0,0,0
.stabs "short unsigned int:t(0,9)=@s16;r(0,9);0;65535;",128,0,0,0
.stabs "signed char:t(0,10)=@s8;r(0,10);-128;127;",128,0,0,0
.stabs "unsigned char:t(0,11)=@s8;r(0,11);0;255;",128,0,0,0
.stabs "__int128_t:t(0,12)=@s128;r(0,12);000000000000000000000000;0377777777777777777777777777777777;",128,0,0,0
.stabs "__uint128_t:t(0,13)=@s128;r(0,13);000000000000000000000000;0377777777777777777777777777777777;",128,0,0,0
.stabs "float:t(0,14)=r(0,1);4;0;",128,0,0,0
.stabs "double:t(0,15)=r(0,1);8;0;",128,0,0,0
.stabs "long double:t(0,16)=r(0,1);16;0;",128,0,0,0
.stabs "complex int:t(0,17)=s8real:(0,1),0,32;imag:(0,1),32,32;;",128,0,0,0
.stabs "complex float:t(0,18)=r(0,18);8;0;",128,0,0,0
.stabs "complex double:t(0,19)=r(0,19);16;0;",128,0,0,0
.stabs "complex long double:t(0,20)=r(0,20);32;0;",128,0,0,0
.stabs "__builtin_va_list:t(0,21)=*(0,22)=(0,22)",128,0,0,0
.stabs "_Bool:t(0,23)=@s8;-16;",128,0,0,0
.align 4
.stabs "main:F(0,1)",36,0,1,main
.global main
.type main,#function
.proc 04
main:
.stabn 68,0,1,.LLM1-main
.LLM1:
!#PROLOGUE# 0
!#PROLOGUE# 1
retl
mov 0, %o0
.LLfe1:
.size main,.LLfe1-main
.LLscope0:
.stabs "",36,0,0,.LLscope0-main
.text
.stabs "",100,0,0,Letext
Letext:
.ident "GCC: (GNU) 3.1 20011231 (experimental)"
Is this a known problem or am i doing anything wrong?
Thanks for any hint,
Martin.
--
The early bird catches the worm. If you want something else for
breakfast, get up later.