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]

Repost: Fail to compile 64 bit gcc 3.0.2




I try to compile 64 bit gcc on my Solaris 2.8 machine. First, I compiled 32 
bit gcc and install it. Then I use the newly compiled 32 bit gcc 3.0.2 to
compile 64 bit gcc with the following commands:

   mkdir /tmp/gccbuild_64bit
   cd /tmp/gccbuild_64bit
   INSTALL/gcc_3.0.2.dir/configure \
          --prefix=/depot/package/gcc_3.0.2_64bit \
          --enable-languages=c,c++,f77,objc \
          --enable-threads \
          --host=sparc-sun-solaris2.8 \
          --target=sparcv9-sun-solaris2.8
   make bootstrap-lean


I got the error message during the compilation:

/tmp/gccbuild_64bit/gcc/xgcc -B/tmp/gccbuild_64bit/gcc/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/bin/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/lib/ -isystem /depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/include -O2  -DCROSS_COMPILE -DIN_GCC -DSVR4  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/.  -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/config -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/../include -fexceptions -c /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:25:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-pe.h: In function `size_of_encoded_value':
/tmp/gccbuild_64bit/gcc/xgcc -B/tmp/gccbuild_64bit/gcc/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/bin/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/lib/ -isystem /depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/include -O2  -DCROSS_COMPILE -DIN_GCC -DSVR4  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/.  -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/config -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/../include -fexceptions -c /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:25:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-pe.h: In function `size_of_encoded_value':
/tmp/gccbuild_64bit/gcc/xgcc -B/tmp/gccbuild_64bit/gcc/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/bin/ -B/depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/lib/ -isystem /depot/package/gcc_3.0.2_64bit/sparcv9-sun-solaris2.8/include -O2  -DCROSS_COMPILE -DIN_GCC -DSVR4  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/.  -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/config -I/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/../include -fexceptions -c /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from /site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:25:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-pe.h: In function `size_of_encoded_value':
function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_key_delete':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:466: warning: implicit declaration of function `pthread_key_delete'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:466: `key' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: At top level:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:470: parse error before "key"
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:471: warning: function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_getspecific':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:472: warning: implicit declaration of function `pthread_getspecific'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:472: `key' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:472: warning: return makes pointer from integer without a cast
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: At top level:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:476: parse error before "key"
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:477: warning: function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_setspecific':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:478: `key' 
undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:478: `ptr' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: At top level:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:482: parse error before '*' token
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:483: warning: function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:485: warning: implicit declaration of function `pthread_mutex_lock'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:485: `mutex' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: At top level:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:491: parse error before '*' token
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:492: warning: function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_mutex_trylock':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:494: warning: implicit declaration of function `pthread_mutex_trylock'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:494: `mutex' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: At top level:
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:500: parse error before '*' token
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:501: warning: function declaration isn't a prototype
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:503: warning: 
implicit declaration of function `pthread_mutex_unlock'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/gthr-posix.h:503: `mutex' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c: In function `extract_cie_info':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:220: warning: implicit declaration of function `strlen'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c: In function `execute_stack_op':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:303: warning: `result' might be used uninitialized in this function
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c: In function `execute_cfa_program':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:778: warning: implicit declaration of function `alloca'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c: In function `uw_frame_state_for':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:889: warning: implicit declaration of function `memset'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c: In function `uw_install_context_1':
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:1152: syntax error before "once_regsizes"
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:1153: warning: implicit declaration of function `__gthread_once'
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:1153: `once_regsizes' undeclared (first use in this function)
/site5/SOURCE/INSTALL/INSTALL/gcc_3.0.2.dir/gcc/unwind-dw2.c:1167: warning: implicit declaration of function `memcpy'
*** Error code 1
make: Fatal error: Command failed for target `libgcc/unwind-dw2.o'
Current working directory /tmp/gccbuild_64bit/gcc
*** Error code 1
make: Fatal error: Command failed for target `stmp-multilib'
Current working directory /tmp/gccbuild_64bit/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'

What is the problem? Thanks. 

P.S. I am not on the mailing list, please reply to sherwin@nlm.nih.gov

Ziying Sherwin







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