TARGET undefined in bucomm.c

Luke hazelnusse@gmail.com
Wed Jun 8 08:28:00 GMT 2011


Yes.  In the build folder (next to the source folder) there are these:
$ find build -name "config.h"
./binutils/config.h
./opcodes/config.h
./libiberty/config.h
./intl/config.h
./bfd/config.h

the bucomm.o target is including finding bfg/config.h, instead of
binutils/config.h:
# 1 "../../binutils-2.21/binutils/bucomm.c"
# 1 "/home/luke/repos/summon-arm-toolchain/build/binutils//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../../binutils-2.21/binutils/bucomm.c"
# 26 "../../binutils-2.21/binutils/bucomm.c"
# 1 "../../binutils-2.21/binutils/sysdep.h" 1
# 25 "../../binutils-2.21/binutils/sysdep.h"
# 1 "../../binutils-2.21/binutils/../include/alloca-conf.h" 1
# 1 "../bfd/config.h" 1
# 2 "../../binutils-2.21/binutils/../include/alloca-conf.h" 2

I don't know why that is, but I think it must be the reason TARGETS is
undefined.

~Luke

On Wed, Jun 8, 2011 at 1:03 AM, Andreas Schwab <schwab@redhat.com> wrote:
> Luke <hazelnusse@gmail.com> writes:
>
>> I tried three approaches, all which led to the same error:
>
> Do you have any config.h in the source?
>
> Andreas.
>
> --
> Andreas Schwab, schwab@redhat.com
> GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
> "And now for something completely different."
>



-- 
"Those who would give up essential liberty to purchase a little
temporary safety deserve neither liberty nor safety."

-- Benjamin Franklin, Historical Review of Pennsylvania, 1759



More information about the Binutils mailing list