Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem build haserl with lua support
@ 2013-01-31 11:05 john
  2013-01-31 11:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: john @ 2013-01-31 11:05 UTC (permalink / raw)
  To: buildroot

Hi,

I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X
with lua support. I select the lua intrepreter and have not selected lua
library modules.

The relevant config section is:
# Interpreter languages and scripting
#
BR2_PACKAGE_HASERL=y
BR2_PACKAGE_HASERL_WITH_LUA=y
# BR2_PACKAGE_HASERL_VERSION_0_8_X is not set
BR2_PACKAGE_HASERL_VERSION_0_9_X=y
BR2_PACKAGE_HASERL_VERSION="0.9.29"
BR2_PACKAGE_LUA=y
# BR2_PACKAGE_LUA_COMPILER is not set
BR2_PACKAGE_LUA_INTERPRETER=y
# BR2_PACKAGE_LUA_INTERPRETER_READLINE is not set
BR2_PACKAGE_LUA_SHARED_LIBRARY=y

#
# LUA libraries/modules
#
# BR2_PACKAGE_CGILUA is not set
# BR2_PACKAGE_COPAS is not set
# BR2_PACKAGE_COXPCALL is not set
# BR2_PACKAGE_LUAFILESYSTEM is not set
# BR2_PACKAGE_LUASOCKET is not set
# BR2_PACKAGE_RINGS is not set
# BR2_PACKAGE_WSAPI is not set
# BR2_PACKAGE_XAVANTE is not set
# BR2_PACKAGE_MICROPERL is not set
# BR2_PACKAGE_PHP is not set
# BR2_PACKAGE_PYTHON is not set
# BR2_PACKAGE_RUBY is not set
# BR2_PACKAGE_TCL is not set

I am getting the following error when I try and build:

>>> host-lua 5.1.4 Building
sed -i -e
's/-O2//' /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src/Makefile
sed -i -e 's/\/usr
\/local/\/usr/' /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/etc/lua.pc
/usr/bin/make -j2 MYCFLAGS="-fPIC -DLUA_USE_DLOPEN -DLUA_USE_POSIX"
MYLIBS="-ldl" PKG_VERSION=5.1.4
-C /home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src all
make[1]: Entering directory
`/home/myname/src/shannon/buildroot-2012.05/output/build/host-lua-5.1.4/src'
gcc -o liblua.so.5.1.4 -shared -Wl,-soname="liblua.so.5.1.4" lapi.o
lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o
lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o
lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o
ltablib.o lstrlib.o loadlib.o linit.o -nostdlib -lgcc
ldo.o: In function `luaD_callhook':
ldo.c:(.text+0x825): undefined reference to `__stack_chk_fail_local'
ldump.o: In function `DumpHeader':
ldump.c:(.text+0x54a): undefined reference to `__stack_chk_fail_local'
llex.o: In function `luaX_lexerror':
llex.c:(.text+0x31b): undefined reference to `__stack_chk_fail_local'
lobject.o: In function `luaO_pushvfstring':
lobject.c:(.text+0x632): undefined reference to `__stack_chk_fail_local'
lundump.o: In function `LoadHeader':
lundump.c:(.text+0x9a9): undefined reference to `__stack_chk_fail_local'
lvm.o:lvm.c:(.text+0x11c): more undefined references to
`__stack_chk_fail_local' follow
collect2: ld returned 1 exit status
make[1]: *** [liblua.so] Error 1

If I select v0.8.X of haserl and separately select the lua option it
builds okay, of course then I don't get lua support integrated into
haserl. Any suggestions on how I can fix this?

regards

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

* [Buildroot] Problem build haserl with lua support
  2013-01-31 11:05 [Buildroot] Problem build haserl with lua support john
@ 2013-01-31 11:52 ` Thomas Petazzoni
  2013-02-01 17:30   ` john
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2013-01-31 11:52 UTC (permalink / raw)
  To: buildroot

Dear john,

On Thu, 31 Jan 2013 11:05:53 +0000, john wrote:
> Hi,
> 
> I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X
> with lua support. I select the lua intrepreter and have not selected lua
> library modules.

You may want to update your Buildroot version, because I think the
problem have been fixed:

https://bugs.busybox.net/show_bug.cgi?id=5354

See commit 684f208ec 'lua: don't be fancy when creating shared library'.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] Problem build haserl with lua support
  2013-01-31 11:52 ` Thomas Petazzoni
@ 2013-02-01 17:30   ` john
  2013-02-02 10:47     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: john @ 2013-02-01 17:30 UTC (permalink / raw)
  To: buildroot

Thanks Thomas,

I was just wondering what would be involved in updating the package
directory in Buildroot 2012.05 with the latest versions of haserl and
lua. Is it simply a matter of lets say copying the relevant package
directories for these appsa from buildroot-2012.11.1 into Buildroot
2012.05?
If possible I would like to stay with Buildroot 2012.05 for the
immediate future.

regards

On Thu, 2013-01-31 at 12:52 +0100, Thomas Petazzoni wrote:
> Dear john,
> 
> On Thu, 31 Jan 2013 11:05:53 +0000, john wrote:
> > Hi,
> > 
> > I'm using Buildroot 2012.05 and am trying to configure haserl v0.9.X
> > with lua support. I select the lua intrepreter and have not selected lua
> > library modules.
> 
> You may want to update your Buildroot version, because I think the
> problem have been fixed:
> 
> https://bugs.busybox.net/show_bug.cgi?id=5354
> 
> See commit 684f208ec 'lua: don't be fancy when creating shared library'.
> 
> Best regards,
> 
> Thomas

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

* [Buildroot] Problem build haserl with lua support
  2013-02-01 17:30   ` john
@ 2013-02-02 10:47     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-02-02 10:47 UTC (permalink / raw)
  To: buildroot

Dear john,

On Fri, 01 Feb 2013 17:30:26 +0000, john wrote:

> I was just wondering what would be involved in updating the package
> directory in Buildroot 2012.05 with the latest versions of haserl and
> lua. Is it simply a matter of lets say copying the relevant package
> directories for these appsa from buildroot-2012.11.1 into Buildroot
> 2012.05?

I think haserl and lua don't have many dependencies, so what you
suggest might work. Of course, if there are issues related to some
dependencies, you'd have to figure them out and fix them.

That said, instead of moving to new versions of those packages, you can
also just as well backport the patch I pointed to (but it may depend on
many other patches, since the Lua package has seen quite a number of
changes lately).

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2013-02-02 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 11:05 [Buildroot] Problem build haserl with lua support john
2013-01-31 11:52 ` Thomas Petazzoni
2013-02-01 17:30   ` john
2013-02-02 10:47     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox