This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Build broken due to "[PATCH] Add gcc-ar/nm/ranlib wrappers for slim LTO v2"
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: andi at firstfloor dot org
- Cc: gcc-patches at gcc dot gnu dot org, ak at linux dot intel dot com
- Date: Sat, 29 Oct 2011 07:26:09 +0200
- Subject: Build broken due to "[PATCH] Add gcc-ar/nm/ranlib wrappers for slim LTO v2"
> From: Andi Kleen <andi@firstfloor.org>
> Date: Fri, 21 Oct 2011 01:55:48 +0200
> 2011-10-19 Andi Kleen <ak@linux.intel.com>
>
> * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
> (native): Add gcc-ar, gcc-nm, gcc-ranlib.
> (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
> gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
> (install): Depend on install-gcc-ar.
> (install-gcc-ar): Add.
> (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
> * gcc-ar.c: Add new file.
This broke cross to cris-elf and I guess many other targets
with TOT binutils, as follows:
mv -f Tlto-wrapper lto-wrapper
gcc -c -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/tmp/hpautotest-gcc1/cris-elf/pre/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/tmp/hpautotest-gcc1/cris-elf/pre/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.7.0\" -DDEFAULT_TARGET_MACHINE=\"cris-elf\" -DSTANDARD_BINDIR_PREFIX=\"/tmp/hpautotest-gcc1/cris-elf/pre/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"cris-elf\" -DPERSONALITY=\"ar\" -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I. -I/tmp/hpautotest-gcc1/gcc/gcc -I/tmp/hpautotest-gcc1/gcc/gcc/. -I/tmp/hpautotest-gcc1/gcc/gcc/../include -I/tmp/hpautotest-gcc1/gcc/gcc/../libcpp/include -I
/tmp/hpautotest-gcc1/cris-elf/gccobj/./gmp -I/tmp/hpautotest-gcc1/gcc/gmp -I/tmp/hpautotest-gcc1/cris-elf/gccobj/./mpfr -I/tmp/hpautotest-gcc1/gcc/mpfr -I/tmp/hpautotest-gcc1/gcc/mpc/src -I/tmp/hpautotest-gcc1/gcc/gcc/../libdecnumber -I/tmp/hpautotest-gcc1/gcc/gcc/../libdecnumber/dpd -I../libdecnumber /tmp/hpautotest-gcc1/gcc/gcc/gcc-ar.c -o gcc-ar.o
/tmp/hpautotest-gcc1/gcc/gcc/gcc-ar.c: In function 'main':
/tmp/hpautotest-gcc1/gcc/gcc/gcc-ar.c:48: error: 'target_machine' undeclared (first use in this function)
/tmp/hpautotest-gcc1/gcc/gcc/gcc-ar.c:48: error: (Each undeclared identifier is reported only once
/tmp/hpautotest-gcc1/gcc/gcc/gcc-ar.c:48: error: for each function it appears in.)
make[2]: *** [gcc-ar.o] Error 1
brgds, H-P