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]

Bootstrap failure for GCC 3.1 with Solaris 2.7 (some patchlevels)


At the end of a Solaris 2.7 'make bootstrap', I'm getting the following:

checking for dlfcn.h... (cached) yes
checking for backtrace... no
checking for dladdr in -ldl... yes
checking for /proc/self/exe... configure: error: Cannot check for file
existence
 when cross compiling
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/usr/build/solarisgcc3'
make: *** [bootstrap] Error 2

I use the following commands to compile GCC.

gzip -dc gcc-3.1.tar.gz | tar xof -
mkdir solarisgcc3
cd solarisgcc3
setenv CONFIG_SHELL /bin/ksh
/bin/ksh ../gcc-3.1/configure --with-gnu-ld --with-gnu-as

I've got two Solaris 2.7 machines I've tried to use.  Both are running
Solaris 2.7.  One compiles OK, the other not.  As far as I can tell, the
only difference between the machines is the Sun patchlevels.

On the machine that works.  (Not updated with Sun's latest patches..)

> showrev -a -c /bin/ksh
...
Kernel version: SunOS 5.7 Generic 106541-12 May 2000
...
Command version: SunOS 5.7 Generic October 1998
...

On the machine that doesn't work.

> showrev -a -c /bin/ksh
Kernel version: SunOS 5.7 Generic 106541-20 February 2002
...
Command version: SunOS 5.7 Generic 108162-05 October 2001
...


In looking through the logs of each build, the first differences show up
as:

diff -c good bad | more
*** good        Wed Jun  5 08:58:20 2002
--- bad Wed Jun  5 08:57:08 2002
***************
*** 1696,1704 ****
  Applying math_huge_val_ifndef     to math.h
  Applying svr4__p                  to math.h
  Fixed:  math.h
- Applying machine_name             to rsvp_types.h
- Fixed:  rsvp_types.h
- Quoted includes in rsvp_types.h
  Fixing directory /usr/dt/share/include/Mrm into
/usr/build/solarisgcc3/gcc/inc
lude/root/usr/dt/share/include/Mrm
  Fixing directory /usr/openwin/share/include/X11 into
/usr/build/solarisgcc3/gc
c/include/root/usr/openwin/share/include/X11
  Applying machine_name             to X11/DPS/dpsconfig.h
--- 1696,1701 ----
***************
*** 4601,4608 ****
  checking whether to build static libraries... yes
  checking for dlopen in -ldl... yes
  checking for dlfcn.h... yes
! checking whether a program can dlopen itself... yes
! checking whether a statically linked program can dlopen itself... yes
  creating libtool
  updating cache ../config.cache
  loading cache ../config.cache
--- 4598,4604 ----
  checking whether to build static libraries... yes
  checking for dlopen in -ldl... yes
  checking for dlfcn.h... yes
! checking whether a program can dlopen itself... no
  creating libtool
  updating cache ../config.cache
  loading cache ../config.cache
***************
*** 4625,4632 ****
  checking whether to build shared libraries... yes
  checking whether to build static libraries... yes
  checking for dlfcn.h... (cached) yes
! checking whether a program can dlopen itself... (cached) yes
! checking whether a statically linked program can dlopen itself...
(cached) yes
  appending configuration tag "CXX" to libtool
  checking for GNU make... make
  checking how to run the C preprocessor...
/usr/build/solarisgcc3/gcc/xgcc -B/u
sr/build/solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sp
arc-sun-solaris2.7/lib/ -isystem
/usr/local/sparc-sun-solaris2.7/include  -m64 -
E
--- 4621,4627 ----
  checking whether to build shared libraries... yes
  checking whether to build static libraries... yes
  checking for dlfcn.h... (cached) yes
! checking whether a program can dlopen itself... (cached) no
  appending configuration tag "CXX" to libtool
  checking for GNU make... make
  checking how to run the C preprocessor...
/usr/build/solarisgcc3/gcc/xgcc -B/u
sr/build/solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sp
arc-sun-solaris2.7/lib/ -isystem
/usr/local/sparc-sun-solaris2.7/include  -m64 -
E
***************
*** 4859,4865 ****
  checking for LC_MESSAGES... yes
  checking for unistd.h... yes
  checking for getpagesize... yes
! checking for working mmap... yes
  checking for sys/resource.h... yes
  checking for unistd.h... (cached) yes
  checking for testsuite memory limit support... yes
--- 4854,4860 ----
  checking for LC_MESSAGES... yes
  checking for unistd.h... yes
  checking for getpagesize... yes
! checking for working mmap... no
  checking for sys/resource.h... yes
  checking for unistd.h... (cached) yes
  checking for testsuite memory limit support... yes
***************
*** 5065,5074 ****
  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... yes
  checking for uintptr_t... yes
  checking whether the C compiler (/usr/build/solarisgcc3/gcc/xgcc
-B/usr/build/
solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sparc-sun-s
olaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include  -m64 -g
-O2 ) w
orks... yes
! checking whether the C compiler (/usr/build/solarisgcc3/gcc/xgcc
-B/usr/build/
solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sparc-sun-s
olaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include  -m64 -g
-O2 ) i
s a cross-compiler... no
  checking for asprintf... no
  checking for atexit... yes
  checking for basename... yes
--- 5060,5069 ----
  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 (/usr/build/solarisgcc3/gcc/xgcc
-B/usr/build/
solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sparc-sun-s
olaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include  -m64 -g
-O2 ) w
orks... yes
! checking whether the C compiler (/usr/build/solarisgcc3/gcc/xgcc
-B/usr/build/
solarisgcc3/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/
-B/usr/local/sparc-sun-s
olaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include  -m64 -g
-O2 ) i
s a cross-compiler... yes


...

It appears that the 'patched' /bin/ksh (or /bin/sh which I've tried)
can't grok something in the config scripts.  Not being a config guru,
I'm not sure how to debug this.  Can anyone provide some insight?

-Dave


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