From: Anton Gerasimov <anton@advancedtelematic.com>
To: Yocto list discussion <yocto@yoctoproject.org>
Subject: SWIG, python, native gcc and multiarch
Date: Thu, 16 Nov 2017 12:29:12 +0100 [thread overview]
Message-ID: <a61ec897-b6d2-8e6f-b0cf-2e7095fd509c@advancedtelematic.com> (raw)
Hi all,
I'm trying to run a piece of SWIG code while building u-boot (namely
compiling it with BUILD_ROM=y, which requires pylibfdt which is built
with a SWIG interface file and a setup.py). I'm having a problem that
the SWIG setup.py script for a reason I don't quite understand instead
of compiling everythin with plain gcc command (which is my ${BUILD_CC})
tries to run "x86_64-linux-gnu-gcc". I can of course add
"x86_64-linux-gnu-gcc" to HOSTTOOLS and everything will work fine, but
only on my machine. Does anyone have any idea how to make SWIG use plain
'gcc' instead of that monster. Or maybe how to add it to HOSTTOOLS
dynamically based on whatever output of 'gcc --print-multiarch' is.
There is a couple of other recipes unsing swig in meta-openembedded, but
they don't seem to use any workarounds for that.
Thanks,
Anton Gerasimov
reply other threads:[~2017-11-16 11:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=a61ec897-b6d2-8e6f-b0cf-2e7095fd509c@advancedtelematic.com \
--to=anton@advancedtelematic.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.