public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Revert "build: Always build the libfdt python module"
Date: Mon, 23 Jan 2017 08:41:20 -0500	[thread overview]
Message-ID: <20170123134120.GI10853@bill-the-cat> (raw)
In-Reply-To: <20170123135625.6e9b0f558a5745995eef656c@bidouilliste.com>

On Mon, Jan 23, 2017 at 01:56:25PM +0100, Emmanuel Vadot wrote:
> 
>  Hi Simon,
> 
> On Mon, 23 Jan 2017 05:37:50 -0700
> Simon Glass <sjg@chromium.org> wrote:
> 
> > This appears to cause problems with powerpc:
> > 
> > +x86_64-linux-gnu-gcc: error: unrecognized command line option ?-melf32ppclinux?
> > +error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> > +make[2]: *** [tools/_libfdt.so] Error 1
> > +make[1]: *** [tools] Error 2
> > +make: *** [sub-make] Error 2
> 
>  Why does your hostcc have this cflags ?

Looking into this, because it's python doing the building here:
swig -python -o tools/libfdt_wrap.c ../lib/libfdt/libfdt.swig                           python ../lib/libfdt/setup.py "-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer    -include ../include/libfdt_env.h -idirafterinclude -idirafter../include -idirafter../arch/powerpc/include -I../lib/libfdt -I../tools -DCONFIG_SYS_TEXT_BASE=0xFC000000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE " ../lib/libfdt/fdt.c ../lib/libfdt/fdt_ro.c ../lib/libfdt/fdt_rw.c ../lib/libfdt/fdt_strerror.c ../lib/libfdt/fdt_wip.c ../lib/libfdt/fdt_region.c ../lib/libfdt/fdt_sw.c tools/libfdt_wrap.c
gcc-4.8.real: error: unrecognized command line option ?-melf32ppclinux?

I suspect that what's going on is that python is seeing LDFLAGS being
set to $(PLATFORM_LDFLAGS) and passing that along.  ARM (and sandbox) do
not set PLATFORM_LDFLAGS so don't run into this problem.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170123/bb38f5b8/attachment.sig>

  reply	other threads:[~2017-01-23 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23 12:37 [U-Boot] [PATCH] Revert "build: Always build the libfdt python module" Simon Glass
2017-01-23 12:56 ` Emmanuel Vadot
2017-01-23 13:41   ` Tom Rini [this message]
2017-01-23 12:57 ` Heiko Schocher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170123134120.GI10853@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox