bootstrap/5187: gcc 3.0.3 fails to bootstrap on Sun Ultra 60with Solaris 8

Dr. David Kirkby drkirkby@ntlworld.com
Wed Dec 26 10:14:00 GMT 2001


Paolo Carlini wrote:
> 
> Hi,
> 
> in order to understand what is going on it would be extremely helpful for us all to see the
> output of a
> 
>     gcc --verbose test.c
> 
> in the "plain" situation, that is, when no additional links to cc1 or whatever are added.
> 
> Admittedly, very strange, anyway...
> 
> Cheers,
> Paolo.
I did what you suggested. 

parrot / # cat test.c
#include <stdio.h>
int main()
{
 printf("Hello world\n");
}
parrot / # gcc --verbose test.c
Using builtin specs.
Configured with: ../gcc-3.0.3/configure
--prefix=/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3 : (reconfigured) 
Thread model: posix
gcc version 3.0.3
 cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -Dsparc
-Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__
-D__SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc test.c
-quiet -dumpbase test.c -version -o /var/tmp/ccbJYQZl.s
GNU CPP version 3.0.3 (cpplib) (sparc)
GNU C version 3.0.3 (@target_alias@)
        compiled by GNU C version 3.0.3.
ignoring nonexistent directory
"/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/lib/gcc-lib/@target_alias@/3.0.3/include"
ignoring nonexistent directory
"/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/lib/gcc-lib/@target_alias@/3.0.3/../../../../@target_alias@/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/include
 /usr/include
End of search list.
 /usr/ccs/bin/as -V -Qy -s -o /var/tmp/ccytJnLD.o /var/tmp/ccbJYQZl.s
/usr/ccs/bin/as: Sun WorkShop 6 99/08/18
 /usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy crt1.o crti.o
/usr/ccs/lib/values-Xa.o crtbegin.o -L/usr/ccs/bin -L/usr/ccs/lib
/var/tmp/ccytJnLD.o -lgcc -lc -lgcc crtend.o crtn.o
ld: fatal: file crt1.o: open failed: No such file or directory


It seems to suggest the directory
"/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/lib/gcc-lib/@target_alias@/3.0.3/include"
does not exist. But assuming 'target_alias' is sparc-sun-solaris2.8 (which seems
perfectly reasonable on a Sun running Solaris 8), then it does. All the
permissions of the directories look okay too : 755. 

parrot
/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/include
# pwd
/usr/local/stow/gcc-3.0.3-compile-with-gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/include

-- 
Dr. David Kirkby Ph.D,
email: drkirkby@ntlworld.com 
former email address: davek@medphys.ucl.ac.uk
web page: http://www.david-kirkby.co.uk/
Amateur radio callsign: G8WRB



More information about the Gcc-bugs mailing list