public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* TARGET undefined in bucomm.c
@ 2011-06-06 17:46 Luke
  2011-06-06 17:58 ` H.J. Lu
  0 siblings, 1 reply; 22+ messages in thread
From: Luke @ 2011-06-06 17:46 UTC (permalink / raw)
  To: binutils

I'm trying to compile binutils-2.21 on x86_64 .  I configured using:

$ mkdir build
$ cd build
$ ../configure --target=arm-none-eabi --enable-multilib --with-gnu-as
--with-gnu-ld --disable-nls --disable-werror

It gets through the compilation of libiterty, bfd, and opcodes.  Then,
when building binutils, it fails as follows:

gcc -DHAVE_CONFIG_H -I. -I../../binutils  -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include
-DLOCALEDIR="\"/usr/local/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT bucomm.o
-MD -MP -MF .deps/bucomm.Tpo -c -o bucomm.o ../../binutils/bucomm.c
../../binutils/bucomm.c: In function ‘set_default_bfd_target’:
../../binutils/bucomm.c:160:24: error: ‘TARGET’ undeclared (first use
in this function)
../../binutils/bucomm.c:160:24: note: each undeclared identifier is
reported only once for each function it appears in

I have grepped all the files for TARGET and don't understand why this
would be happening -- am I using configure wrong, or do I need to
define an environment variable?

I have filed a bug report here:
http://sourceware.org/bugzilla/show_bug.cgi?id=12844

Searching the internet has been fruitless, has anybody else seen this behavior?

Let me know if there is other information I should provide to help
figure this out.

Thanks,

~Luke

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-06-08 21:59 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 17:46 TARGET undefined in bucomm.c Luke
2011-06-06 17:58 ` H.J. Lu
2011-06-06 18:19   ` Luke
2011-06-06 19:32     ` Luke
2011-06-06 20:04       ` Ian Lance Taylor
2011-06-07  3:14         ` Luke
2011-06-07 12:11           ` Ian Lance Taylor
2011-06-07 12:24             ` Andreas Schwab
2011-06-07 18:27             ` Luke
2011-06-07 18:58               ` H.J. Lu
2011-06-08  0:41                 ` Luke
2011-06-08  8:03                   ` Andreas Schwab
2011-06-08  8:28                     ` Luke
2011-06-08  9:20                       ` Alan Modra
2011-06-08 10:08                         ` Luke
2011-06-08 11:07                           ` Andreas Schwab
2011-06-08 16:28                             ` Luke
2011-06-08 13:26                           ` Ian Lance Taylor
2011-06-08 16:55                             ` Luke
2011-06-08 18:02                               ` Ian Lance Taylor
2011-06-08 21:59                                 ` Luke
2011-06-08  8:49                     ` Luke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).