Skip to contentSkip to conversation

building piccontrol - 0.4 failed due to lack of liblua5.1.a

DISCUSSION Guo Hongruan 6 participants 10 messages Jan 31, 2010 – Mar 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi guys,
I tried to build MACHINE=tsx09 DISTRO=micro LIBC=glibc, but failed when
building picontrol. The error is the following:

NOTE: make -j 4 -e MAKEFLAGS=

ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2  -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include  -c -o piccontrol.o piccontrol.c
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2  -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include  -c -o ts209.o ts209.c
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2  -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include  -c -o evdev.o evdev.c

ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mthumb -o piccontrol piccontrol.o ts209.o evdev.o -L/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib -Wl,-rpath-link,/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib -Wl,-O1 -Wl,--hash-style=gnu /media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib/liblua5.1.a -lpthread -lm -ldl
arm-oe-linux-gnueabi-gcc: /media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib/liblua5.1.a: No such file or directory

for more information, please see the following url:
http://tinderbox.openembedded.net/packages/451539/

Is there anyone who can give me some information?

Thanks a lot!

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#1 lore raw
Quoted 31 lines · Guo Hongruan

Hi guys,
 I tried to build MACHINE=tsx09 DISTRO=micro LIBC=glibc, but failed when building picontrol. The error is the following:

NOTE: make -j 4 -e MAKEFLAGS=
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s

(quoted diff) +0 -3
-mthumb-interwork -mthumb
-isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2

 -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -c -o piccontrol.o piccontrol.c
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s

(quoted diff) +0 -3
-mthumb-interwork -mthumb
-isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2

 -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -c -o ts209.o ts209.c
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s

(quoted diff) +0 -3
-mthumb-interwork -mthumb
-isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2

 -I/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include/lua5.1 -isystem/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/include -c -o evdev.o evdev.c
ccache arm-oe-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s

(quoted diff) +0 -4
-mthumb-interwork -mthumb -o piccontrol piccontrol.o ts209.o evdev.o
-L/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib
-Wl,-rpath-link,/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib
-Wl,-O1 -Wl,--hash-style=gnu
Quoted 5 lines

 /media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib/liblua5.1.a -lpthread -lm -ldl
arm-oe-linux-gnueabi-gcc:
/media/work-disk/workdir/arm-926ejs-test/staging/armv5te-oe-linux-gnueabi/lib/liblua5.1.a:
No such file or directory

I think micro uses a different layout and my guess is that the package is relying upon layout where /usr is used.

in your build tree check where liblua5.1.a is installed and then go from there.

Quoted 19 lines

for more information, please see the following url:
http://tinderbox.openembedded.net/packages/451539/

Is there anyone who can give me some information?

Thanks a lot!

--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 2 lines · 在 Sun, 31 Jan 2010 13:22:16 +0800,Khem Raj <[email protected]> 写道:

in your build tree check where liblua5.1.a is installed and then go from there.

No, I can not find liblua5.1.a on my build directory.

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#3 lore raw
In reply to Khem Raj
Quoted 2 lines · 在 Sun, 31 Jan 2010 13:22:16 +0800,Khem Raj <[email protected]> 写道:

in your build tree check where liblua5.1.a is installed and then go from there.

instead of liblue5.1.a, I found libua.a on my build tree. Maybe it is the cause of the error.

./armv5te-oe-linux-gnueabi/lib/liblua.a

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#4 lore raw
Quoted 9 lines · 在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan <[email protected]> 写道:
Quoted 2 lines · 在 Sun, 31 Jan 2010 13:22:16 +0800,Khem Raj <[email protected]> 写道:

in your build tree check where liblua5.1.a is installed and then go from there.

instead of liblue5.1.a, I found libua.a on my build tree. Maybe it is the cause of the error.

./armv5te-oe-linux-gnueabi/lib/liblua.a

I found it, it is caused by
1. lua5.1_5.1.4.bb install lib/liblua. to staging directory;
2. but piccoontrol_0.4.bb tries to link liblua5.1.a, which name is liblua.a. 20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

changing piccontrol_0.4.bb may correct the error.

recipes/piccontrol/piccontrol_0.4.bb +1 -1
index cfdef98..854f156 100644
@@ -17,7 +17,7 @@ inherit update-rc.d
 INITSCRIPT_NAME = "piccontrol"
 INITSCRIPT_PARAMS = "defaults"
 
-LDFLAGS        += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "
+LDFLAGS        += " ${STAGING_LIBDIR}/liblua.a -lpthread -lm -ldl "
 CFLAGS += " -I${STAGING_INCDIR}/lua5.1 "
 
 do_install() {
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#5 lore raw
Quoted 3 lines · On Sunday 31 January 2010 06:56:58 Guo Hongruan wrote:

在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan <[email protected]> 写道:

    20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

Okay,
care to write a patch with a proper commit message and a Signed-off-by line?

PS: In the long run the lua recipe should install the .pc and we should link with pkg-config --libs lua5.1

#6 lore raw

OK, no problem

Quoted 15 lines · 在 Sun, 31 Jan 2010 14:14:09 +0800,Holger Hans Peter Freyther…
Quoted 3 lines · On Sunday 31 January 2010 06:56:58 Guo Hongruan wrote:

在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan <[email protected]> 写道:

    20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

Okay,
care to write a patch with a proper commit message and a Signed-off-by line?

PS: In the long run the lua recipe should install the .pc and we should link with pkg-config --libs lua5.1

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
#8 lore raw
In reply to Guo Hongruan

Guo Hongruan <[email protected]> [2010-01-31 13:56:58]:

Quoted 5 lines

2. but piccoontrol_0.4.bb tries to link liblua5.1.a, which name is liblua.a.
20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

changing piccontrol_0.4.bb may correct the error.

I think, that correct way of fixing it would be to fix Lua recipe to install as liblua5.1.a. Maybe creating pkgconfig for Lua would help also.

-- ynezz

#9 lore raw

From memory this needed a specific (or minimum) version of lua. Byron may also have an updated version we can test and commit. Sorry all my stuff is packed up at the mo and I can't test! (Sorry for the extra email Byron the other bounced!)

Tim

Quoted 17 lines · Petr Štetiar

Guo Hongruan <[email protected]> [2010-01-31 13:56:58]:

Quoted 5 lines

2. but piccoontrol_0.4.bb tries to link liblua5.1.a, which name is liblua.a.
20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

changing piccontrol_0.4.bb may correct the error.

I think, that correct way of fixing it would be to fix Lua recipe to install as liblua5.1.a. Maybe creating pkgconfig for Lua would help also.

-- ynezz

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#7 lore raw
In reply to Holger Hans Peter Freyther

Hello.

Quoted 7 lines · Holger Hans Peter Freyther
Quoted 3 lines · On Sunday 31 January 2010 06:56:58 Guo Hongruan wrote:

在 Sun, 31 Jan 2010 13:44:33 +0800,Guo Hongruan <[email protected]> 写道:

    20 LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl "

Okay,
care to write a patch with a proper commit message and a Signed-off-by line?

That never happened. As the subject line was not fitting, it did no longer apply and a SOB was missing I redid the one-line change as a band-aid.

Quoted 2 lines

PS: In the long run the lua recipe should install the .pc and we should link with pkg-config --libs lua5.1

Gua, are you interested in working this out?

regards
Stefan Schmidt