This is the mail archive of the gcc-patches@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]

Re: [assert] gen*.c files


Nathan Sidwell wrote:
This one does the generator files.
	* gen-protos.c (add_hash): Likewise.

gen-protos.c isn't a generator file. It is part of the fixproto program. This causes a link error for any target that uses fixproto, as the gen-protos program has no definition of fancy_abort.


This won't show up with a linux build, as linux does not build fixproto. You can reproduce this with a cross compiler build to any newlib using target. Or you can create a temporary linux build tree, cd into the gcc directory, and do "make stmp-fixproto" in it.

aretha$ make stmp-fixproto
...
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o gen-protos \
gen-protos.o scan.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
gen-protos.o(.text+0xae): In function `add_hash':
../../gcc/gcc/gen-protos.c:58: undefined reference to `fancy_abort'
collect2: ld returned 1 exit status
make: *** [gen-protos] Error 1
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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