gprof broken since recent commit
Jan-Benedict Glaw
jbglaw@lug-owl.de
Fri Jul 27 22:01:00 GMT 2012
Hi Mike!
On Fri, 2012-07-27 16:30:58 -0000, vapier@sourceware.org <vapier@sourceware.org> wrote:
> CVSROOT: /cvs/src
> Module name: src
> Changes by: vapier@sourceware.org 2012-07-27 16:30:57
>
> Modified files:
> bfd : ChangeLog configure configure.in
> binutils : ChangeLog configure configure.in
> gas : ChangeLog configure configure.in
> gprof : ChangeLog configure configure.in
> ld : ChangeLog configure configure.in
> opcodes : ChangeLog configure configure.in
It seems this commit breaks cross-building for me:
$ ../../../binutils/configure --target=alpha-linux --prefix="${MY_INSTALL_DIR}" --enable-gold=yes
[...]
$ make all-binutils all-ld all-gas all-gprof install-binutils install-ld install-gas install-gprof
[...]
make[5]: Entering directory `/mnt/devel/src/linux/build/alpha-linux/binutils/gprof'
echo "@set top_srcdir ../../../../binutils/gprof" >> ./config.texi
restore=: && backupdir=".am$$" && \
rm -rf $backupdir && mkdir $backupdir && \
if (makeinfo --split-size=5000000 --version) >/dev/null 2>&1; then \
for f in gprof.info gprof.info-[0-9] gprof.info-[0-9][0-9] gprof.i[0-9] gprof.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
if makeinfo --split-size=5000000 -I "../../../../binutils/gprof" -I "../../../../binutils/gprof/../bfd/doc" -I ../bfd/doc -I ../../../../binutils/gprof \
-o gprof.info `test -f 'gprof.texi' || echo '../../../../binutils/gprof/'`gprof.texi; \
then \
rc=0; \
else \
rc=$?; \
$restore $backupdir/* `echo "./gprof.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
gcc -DHAVE_CONFIG_H -I. -I../../../../binutils/gprof -DDEBUG -I../bfd -I../../../../binutils/gprof/../include -I../../../../binutils/gprof/../bfd -I. -DLOCALEDIR="\"/mnt/devel/src/linux/_in
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:273:0: error: "PACKAGE_NAME" redefined [-Werror]
In file included from ../../../../binutils/gprof/gprof.h:32:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:58:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:276:0: error: "PACKAGE_STRING" redefined [-Werror]
In file included from ../../../../binutils/gprof/gprof.h:32:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:61:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:279:0: error: "PACKAGE_TARNAME" redefined [-Werror]
In file included from ../../../../binutils/gprof/gprof.h:32:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:64:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:285:0: error: "PACKAGE_VERSION" redefined [-Werror]
In file included from ../../../../binutils/gprof/gprof.h:32:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:70:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/gprof.h:45:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:58:0: error: "PACKAGE_NAME" redefined [-Werror]
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:273:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/gprof.h:45:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:61:0: error: "PACKAGE_STRING" redefined [-Werror]
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:276:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/gprof.h:45:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:64:0: error: "PACKAGE_TARNAME" redefined [-Werror]
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:279:0: note: this is the location of the previous definition
In file included from ../../../../binutils/gprof/gprof.h:45:0,
from ../../../../binutils/gprof/basic_blocks.c:25:
./gconfig.h:70:0: error: "PACKAGE_VERSION" redefined [-Werror]
In file included from ../../../../binutils/gprof/../bfd/sysdep.h:30:0,
from ../../../../binutils/gprof/gprof.h:37,
from ../../../../binutils/gprof/basic_blocks.c:25:
../bfd/config.h:285:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[5]: *** [basic_blocks.o] Error 1
make[5]: Leaving directory `/mnt/devel/src/linux/build/alpha-linux/binutils/gprof'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/mnt/devel/src/linux/build/alpha-linux/binutils/gprof'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/mnt/devel/src/linux/build/alpha-linux/binutils/gprof'
make[2]: *** [all-gprof] Error 2
make[2]: Leaving directory `/mnt/devel/src/linux/build/alpha-linux/binutils'
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481
Signature of: The real problem with C++ for kernel modules is:
the second : the language just sucks.
-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20120727/15979f1a/attachment.sig>
More information about the Binutils
mailing list