Skip to contentSkip to conversation

mklibs in USER_CLASSES (Khem Raj) (Khem Raj)

DISCUSSION 신택현 (Taek Hyun Shin) 2 participants 2 messages Nov 16, 2016

lore
Share & tools
lore
#0 lore raw

Hi Khem Raj

Thank you for your answer

I did add to the patch your recommend.
But, the error is occurred as follow:

Object: usr/bin/tc-/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o): In function `$d':
/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCTime.cpp:65: undefined reference to __dso_handle' /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o): In function $d':
/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCLog.cpp:71: undefined reference to __dso_handle' /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o): In function $d':
/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/qrc_libTcGuiUtils.cpp:26057: undefined reference to __dso_handle' /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o): In function $d':
/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCCharSet.cpp:74: undefined reference to __dso_handle' /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o): In function $d':
/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCBufferHandler.cpp:41: undefined reference to `__dso_handle' /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/x86_64-linux/usr/libexec/arm-telechips-linux-gnueabi/gcc/arm-telechips-linux-gnueabi/4.8.1/ld: /home/B110141/works/Yocto/build/tcc8021/tmp/work/tcc8021-telechips-linux-gnueabi/mico    m-project-image/1.0-r0/mklibs/dest/libTcGuiUtils.so.1-so: hidden symbol `__dso_handle' isn't defined /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/x86_64-linux/usr/libexec/arm-telechips-linux-gnueabi/gcc/arm-telechips-linux-gnueabi/4.8.1/ld: final link failed: Bad value

collect2: error: ld returned 1 exit status

Can I try fix this issue the other way??

Quoted 1 line

Can you check if OE mklib has this patch applied ?> > https://lists.debian.org/debian-boot/2013/01/msg00239.html

Thanks & Best Regards,Wily Taekhyun Shin  *Telechips Inc.**R&D Center / Automotive Group / Linux Team / Research Engineer*Tel : +82-2-3443-6792(Ext. 390), M.P : +82-10-4376-5530, E-mail: [email protected] <mailto:[email protected]>

 Message: 1> Date: Fri, 11 Nov 2016 10:17:54 -0800> From: Khem Raj <[email protected]>> To: ??? (Taek Hyun Shin) <[email protected]>,> [email protected]> Subject: Re: [yocto] mklibs in USER_CLASSES> Message-ID: <[email protected]>> Content-Type: text/plain; charset="utf-8"> > > > On 11/11/16 1:22 AM, ??? (Taek Hyun Shin) wrote:>> Hi,>> >> Somebody help met plz.>> >> >> I'm using Yocto Project 2.0>> >> I want to reduce my rootfs due to fast execute binaries.>> >> So, I did apply mklibs using USE_CLASSES> > if you use prelink as well then make sure mklibs appear before prelink in> USE_CLASSES> >> >> But, I got error message as follow:>> >> >>  208 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgmp.so.10>> ; copying>> >>  209 reducing libgobject-2.0.so.0>> >>  210 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgobject-2.0.so.0>> ; copying>> >>  211 reducing libgstreamer-1.0.so.0>> >>  212 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgstreamer-1.0.so.0>> ; copying>> >>  213 reducing libhogweed.so.4>> >>  214 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libhogweed.so.4>> ; copying>> >>  215 reducing libinput.so.10>> >>  216 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libinput.so.10>> ; copying>> >>  217 reducing libjpeg.so.9>> >>  218 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libjpeg.so.9>> ; copying>> >>  219 reducing liblog.so>> >>  220 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//liblog.so ;>> copying>> >>  221 reducing libm.so.6>> >>  222 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/lib//libm.so.6 ;>> copying>> >>  223 reducing libmenuw.so.5>> >>  224 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libmenuw.so.5>> ; copying>> >>  225 reducing libmount.so.1>> >>  226 No pic file found for>> /home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/lib//libmount.so.1 ;>> copying>> >>  227 reducing libmtdev.so.1>> >> >> How can I create the pic file each libraries>> >> >> Help me plz TT>> >>  >> >>  >> >>  >> >>  >>

#1 lore raw
Quoted 9 lines · 신택현 (Taek Hyun Shin)

Hi Khem Raj

Thank you for your answer

I did add to the patch your recommend.

But, the error is occurred as follow:

I guess you have to dig deep and see what might be going on

Quoted 174 lines

Object:
usr/bin/tc-/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o):
In function `$d':

/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCTime.cpp:65:
undefined reference to `__dso_handle'

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o):
In function `$d':

/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCLog.cpp:71:
undefined reference to `__dso_handle'

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o):
In function `$d':

/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/qrc_libTcGuiUtils.cpp:26057:
undefined reference to `__dso_handle'

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o):
In function `$d':

/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCCharSet.cpp:74:
undefined reference to `__dso_handle'

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libTcGuiUtils_pic.a(libTcGuiUtils_pic.o):
In function `$d':

/home/B110141/works/Yocto/build/tcc8021/tmp/work/cortexa7-vfp-neon-telechips-linux-gnueabi/libtcguiutils/1.0.0-r0/git/src/TCBufferHandler.cpp:41:
undefined reference to `__dso_handle'

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/x86_64-linux/usr/libexec/arm-telechips-linux-gnueabi/gcc/arm-telechips-linux-gnueabi/4.8.1/ld:
/home/B110141/works/Yocto/build/tcc8021/tmp/work/tcc8021-telechips-linux-gnueabi/mico
m-project-image/1.0-r0/mklibs/dest/libTcGuiUtils.so.1-so: hidden symbol
`__dso_handle' isn't defined

/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/x86_64-linux/usr/libexec/arm-telechips-linux-gnueabi/gcc/arm-telechips-linux-gnueabi/4.8.1/ld:
final link failed: Bad value

collect2: error: ld returned 1 exit status

Can I try fix this issue the other way??

Quoted 3 lines

Can you check if OE mklib has this patch applied ?

https://lists.debian.org/debian-boot/2013/01/msg00239.html

Thanks & Best Regards,

Wily Taekhyun Shin

*Telechips Inc.*
*R&D Center / Automotive Group / Linux Team / Research Engineer* Tel : +82-2-3443-6792(Ext. 390), M.P : +82-10-4376-5530, E-mail : [email protected] <mailto:[email protected]>

Message: 1

Quoted 103 lines

Date: Fri, 11 Nov 2016 10:17:54 -0800
From: Khem Raj <[email protected]>
To: ??? (Taek Hyun Shin) <[email protected]>, [email protected]
Subject: Re: [yocto] mklibs in USER_CLASSES
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Quoted 10 lines · ??? (Taek Hyun Shin)

Hi,

Somebody help met plz.

I'm using Yocto Project 2.0

I want to reduce my rootfs due to fast execute binaries.

So, I did apply mklibs using USE_CLASSES

if you use prelink as well then make sure mklibs appear before prelink in USE_CLASSES

Quoted 78 lines

But, I got error message as follow:

208 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgmp.so.10 ; copying

209 reducing libgobject-2.0.so.0

210 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgobject-2.0.so.0 ; copying

211 reducing libgstreamer-1.0.so.0

212 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libgstreamer-1.0.so.0 ; copying

213 reducing libhogweed.so.4

214 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libhogweed.so.4 ; copying

215 reducing libinput.so.10

216 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libinput.so.10 ; copying

217 reducing libjpeg.so.9

218 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libjpeg.so.9 ; copying

219 reducing liblog.so

220 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//liblog.so ; copying

221 reducing libm.so.6

222 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/lib//libm.so.6 ; copying

223 reducing libmenuw.so.5

224 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/usr/lib//libmenuw.so.5 ; copying

225 reducing libmount.so.1

226 No pic file found for
/home/B110141/works/Yocto/build/tcc8021/tmp/sysroots/tcc8021/lib//libmount.so.1 ; copying

227 reducing libmtdev.so.1

How can I create the pic file each libraries

Help me plz TT