From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] ws281x library, scons, fails
Date: Thu, 5 Apr 2018 21:53:13 +0200 [thread overview]
Message-ID: <20180405215313.35c300e9@windsurf> (raw)
In-Reply-To: <CAPzckP6sMQYU6cmsYv30P+CJsmvg=KHrvpVb+gC6BDOwHdqSwg@mail.gmail.com>
Hello,
On Thu, 5 Apr 2018 19:18:55 +0200, Sjoerd Venema wrote:
> creating build/temp.linux-x86_64-2.7
> /bin/gcc -pthread -fno-strict-aliasing -O2
> -I/home/buildroot/buildroot-2018.02-rc3/output/host/include -DNDEBUG -g
> -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
> -I/home/buildroot/buildroot-2018.02-rc3/output/host/include/python2.7 -c
> rpi_ws281x_wrap.c -o build/temp.linux-x86_64-2.7/rpi_ws281x_wrap.o
> /bin/gcc -pthread -shared
> -L/home/buildroot/buildroot-2018.02-rc3/output/host/lib
> -Wl,-rpath,/home/buildroot/buildroot-2018.02-rc3/output/host/lib
> -Wl,--enable-new-dtags build/temp.linux-x86_64-2.7/rpi_ws281x_wrap.o -L../.
> -L/home/buildroot/buildroot-2018.02-rc3/output/host/lib -lws2811 -lrt
> -lpython2.7 -o build/lib.linux-x86_64-2.7/_rpi_ws281x.so
> */usr/bin/ld: skipping incompatible .././libws2811.a when searching for
> -lws2811*
> */usr/bin/ld: cannot find -lws2811*
> collect2: error: ld returned 1 exit status
> error: command '/bin/gcc' failed with exit status 1
This is using the host compiler to build target code, it can't work.
Seems like your package has a Python module, you need to pass special
variables to make it cross-compile properly. Look at
package/pkg-python.mk to get an idea of the variables you have to pass.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-04-05 19:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-05 17:18 [Buildroot] ws281x library, scons, fails Sjoerd Venema
2018-04-05 19:53 ` Thomas Petazzoni [this message]
2018-04-06 17:33 ` Sjoerd Venema
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=20180405215313.35c300e9@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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