bulding libgcc1.a fails for 970917-snapshot ...

Max Lawson mlawson@drfmc.ceng.cea.fr
Sun Sep 21 06:43:00 GMT 1997


	Hi there !

First, I hope you don't find this thread too boring. But my knowledge 
doesn't allow me to build and install egcs ...

The failure I'm facing seems due to the c-preprocessor. Here follows the 
output of a test I made (I've used the flags from the gcc/Makefile to which 
I've added "-v"):

$gcc -v -DIN_LIBGCC1 -O -I. -I. -I./config -c -DL_mulsi3 ./libgcc1.c
Reading specs from ./specs
gcc version 2.7.2.1
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp -lang-c -v -I. -I. -I./config -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__ -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix)__ -Acpu(i386)__ -Amachine(i386)__ __ __ __ __ __ __ -DIN_LIBGCC1 -DL_mulsi3 ./libgcc1.c /tmp/cca25707.i
GNU CPP version 2.7.2.1 (i386 Linux/ELF)
cpp: Usage: /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp [switches] input output


Actually I'm having the same failure as trying to build the following program 

/* -- source z.c-- */
int main()
{
	return 0;
}
/* -- end-source -- */

in the **egcs/gcc/ directory** !
	 ^^^^^^^^^

$gcc -v z.c
gcc -v z.c 
Reading specs from ./specs
gcc version 2.7.2.1
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix)__ -Acpu(i386)__ -Amachine(i386)__ __ __ __ __ __ __ z.c /tmp/cca26678.i
GNU CPP version 2.7.2.1 (i386 Linux/ELF)
cpp: Usage: /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp [switches] input output

I'm not having any problem building this in my $HOME directory !! 

sweat_home$gcc -v z.c 
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.1/specs
gcc version 2.7.2.1
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__i486__ z.c /tmp/cca26833.i
GNU CPP version 2.7.2.1 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/cc1 /tmp/cca26833.i -quiet -dumpbase z.c -version -o /tmp/cca26833.s
GNU C version 2.7.2.1 (i386 Linux/ELF) compiled by GNU C version 2.7.2.1.
 /usr/i486-linux/bin/as -V -Qy -o /tmp/cca268331.o /tmp/cca26833.s
GNU assembler version 2.8.1 (i586-pc-linux-gnu), using BFD version 2.8.1
 /usr/i486-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L. -L/usr/lib/gcc-lib/i486-linux/2.7.2.1 -L/usr/i486-linux/lib /tmp/cca268331.o -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
sweat_home$ a.out
sweat_home$

What's happening in the egcs-970917/gcc/ directory? What's wrong ?

Going through the list-archive, I can see that people succeed in relishing their eggs for 
pc-linux-gnu systems .. So, please, help me not getting frustrated :-)


Thanx for your time, Max.



More information about the Gcc mailing list