ChanServ changed the topic of #yocto to: Welcome to the Yocto Project | Learn more: https://www.yoctoproject.org | Join us or Speak at Yocto Project Summit (2021.11) Nov 30 - Dec 2, more: https://yoctoproject.org/summit | Join the community: https://www.yoctoproject.org/community | IRC logs available at https://www.yoctoproject.org/irc/ | Having difficulty on the list or with someone on the list, contact YP community mgr ndec
sakoman has joined #yocto
pabigot has quit [Quit: Leaving.]
florian_kc has quit [Ping timeout: 240 seconds]
sakoman has quit [Quit: Leaving.]
Konsgn has quit [Remote host closed the connection]
prabhakarlad has quit [Quit: Client closed]
alessioigor has joined #yocto
alessioigor has quit [Client Quit]
mvlad has joined #yocto
jer339 has joined #yocto
jer339 has quit [Client Quit]
xmn has quit [Ping timeout: 240 seconds]
vd has quit [Ping timeout: 256 seconds]
GillesM has joined #yocto
GillesM has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
prabhakarlad has joined #yocto
davidinux has joined #yocto
florian_kc has joined #yocto
florian_kc has quit [Ping timeout: 250 seconds]
davidinux has quit [Ping timeout: 240 seconds]
florian_kc has joined #yocto
davidinux has joined #yocto
florian_kc has quit [Read error: Connection reset by peer]
florian_kc has joined #yocto
xmn has joined #yocto
Piraty has joined #yocto
<Piraty> does opkg maintainer Stewart lurk here?
florian_kc has quit [Ping timeout: 240 seconds]
chep` has joined #yocto
chep has quit [Read error: Connection reset by peer]
chep` is now known as chep
camus has quit [Ping timeout: 256 seconds]
camus has joined #yocto
chep` has joined #yocto
dtometzki has quit [Read error: Connection reset by peer]
chep has quit [Read error: Connection reset by peer]
chep` is now known as chep
dtometzki has joined #yocto
florian_kc has joined #yocto
florian_kc has quit [Ping timeout: 240 seconds]
sakoman has joined #yocto
alimon has quit [Remote host closed the connection]
florian_kc has joined #yocto
<lukma> Dear community
<lukma> Is there an elegant way to add/install libgcc.so or libgcc.a to /usr/lib in recipe-sysroot?
<lukma> I'm asking as one program (ported to yocto/OE) requires it to have __aeabi_udivi and friends provided
<lukma> It turns out that hack as:
<lukma> -L=/usr/lib/arm-poky-linux-gnueabi/9.3.0 with --sysroot set to /patch/to/recipe-sysroot
<lukma> works,
<lukma> but I'm wondering if there is any better way to avoid crafting LDFLAGS with compiler name and version in recipe to be passed to this Makefile?
<lukma> In short -> adding DEPENDS_append = "libgcc" doesn't help to have libgcc.so in /usr/lib or /lib in recipe-sysroot
florian_kc has quit [Ping timeout: 268 seconds]
snikulov has joined #yocto
prabhakarlad has quit [Quit: Client closed]
prabhakarlad has joined #yocto
jpuhlman_ has joined #yocto
jpuhlman is now known as Guest6324
Guest6324 has quit [Killed (strontium.libera.chat (Nickname regained by services))]
jpuhlman_ is now known as jpuhlman
Vonter has quit [Quit: WeeChat 3.4]
Vonter has joined #yocto
florian_kc has joined #yocto
TundraMan has joined #yocto
marka has quit [Ping timeout: 240 seconds]
olani[m] has quit [Quit: You have been kicked for being idle]
goliath has joined #yocto
paulg has quit [Ping timeout: 256 seconds]
pabigot has joined #yocto
paulg has joined #yocto
Vonter has quit [Quit: WeeChat 3.4]
oberonc has joined #yocto
<oberonc> hi
davidinux has quit [Ping timeout: 260 seconds]
<oberonc> when I create an image that includes a software package that I wrote that depends on curl I get the following error:
<oberonc> QA Issue: /usr/sbin/aradrouterd contained in package arad requires libcurl-gnutls.so.4(CURL_GNUTLS_3)(64bit), but no providers found in RDEPENDS_arad? [file-rdeps]
camus has quit [Ping timeout: 256 seconds]
<oberonc> I figured that adding "curl" in DEPENDS isnt enough
camus has joined #yocto
manuel1985 has quit [Ping timeout: 268 seconds]
<oberonc> so I created a file called "curl_%.bbappend" in which I have the following line:
davidinux has joined #yocto
<oberonc> PACKAGECONFIG_append = " gnutls"
<oberonc> this doesnt solve the issue
<oberonc> what am I missing ?
<oberonc> I'm not sure how to make it add libcurl-gnutls.so.4(
<RP> lukma: doesn't simply -lgcc work? The compiler should already know to search there?
camus has quit [Ping timeout: 256 seconds]
camus has joined #yocto
<kanavin> halstead, looks like the maintenance isn't yet complete? https://autobuilder.yoctoproject.org/typhoon/#/workers
<kanavin> I'd like to run a build but don't want to use limited capacity
<kanavin> RP: I have a much nicer set of changes for go reproducibility :)
<vmeson> oberonc: if you look at: https://layers.openembedded.org/layerindex/recipe/5765/ or the recipe, you see that there's a PACKAECONFIG optin for libcurl-gnutls: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/curl/curl_7.80.0.bb?h=master#n30
<oberonc> how do I use it ?
<vmeson> oberonc: https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#migration-1.7-changes-to-setting-qemu-packageconfig-options
<vmeson> maybe there's a better explaination in the manual but that's what came up first.
<oberonc> so PACKAGECONFIG_append_pn-curl = " gnutls in local.conf ?
<vmeson> oberonc: yes
<oberonc> same message
<oberonc> hmm
<oberonc> what am I supposed to write in RDEPENDS_${PN} ?
<vmeson> oberonc: did you look at the curl log.do_configure to see if --with-gnutls was used?
<oberonc> remind me where can I find it
<vmeson> tmp/work/<arch>/curl/.../temp/log.do_configure
<oberonc> it has --with-gnutls
<oberonc> I believe I need to change this line in my recipe:
<oberonc> RDEPENDS_${PN}
<vmeson> ad is your libcurl-gnutls.so* file in tmp/work/<arch>/curl/.../packages-split somewhere? It may be packaged seperately from the default installation.
<oberonc> but what am I supposed to add to it ?
<oberonc> no libcurl-gnutls.so in there
<oberonc> hmm
<RP> kanavin: that sounds promising! :)
<oberonc> it depends on gnutls directly
<oberonc> (only libcurl.so exists)
<moto-timo> probably a PACKAGECONFIG?
<oberonc> why does it even think I need libcurl-gnutls ?!
<vmeson> oberonc: good questin, I don't know offhand and I have errands to run. I'll check back later
<oberonc> ok, thanks for your help
<oberonc> godspeed with your errands
<moto-timo> oberonc: we don't know what your custom code has, but it appears bitbake is detecting that an .so is expecting libcurl-gnutls (this can be double checked with ldd or similar tools)
<oberonc> ok, how do I provide libcurl-gnutls ?
<moto-timo> with the PACKAGECONFIG switch already discussed earlier
<oberonc> I tried:
<oberonc> PACKAGECONFIG_append_pn-curl = " gnutls" in local.conf
<oberonc> PACKAGECONFIG_append = " gnutls" in curl_%.bbappend
<moto-timo> what release of Yocto project are you on?
<oberonc> RDEPENDS_${PN} = " gnutls curl"
<oberonc> nothing works
<oberonc> and my custom code doesnt even use ssl
<oberonc> ssl in curl that is
<moto-timo> well, the recipe might be picking up host contamination then. but curl without ssl is not recommended anymore
<oberonc> I dont mind adding ssl to curl
<oberonc> but how ?
<moto-timo> which release of Yocto Project are you on please?
<oberonc> amm, how can I tell ?
<oberonc> (sorry,  but i'm kinda new)
<moto-timo> when you cloned poky/openembedded-core you got it from somehwere... that likely had either a version number (like 3.1.x) or a branch name (like 'dunfell')
<oberonc> well, technically I'm using windriver
<oberonc> which is based on yocto
<moto-timo> so which version of windriver?
otavio has quit [Remote host closed the connection]
<oberonc> LTS 21.20
<oberonc> makes sense ..
<oberonc> does it give you any clue ?
<oberonc> .. about the curl issue
<moto-timo> well, it tells us whether you need to be using the "new override syntax" or not
<oberonc> when I run ldd on the file libcurl.so I see that it is linked against gnutls
otavio has joined #yocto
<oberonc> so all that needs to be done is figure why it thinks a file called libcurl-gnutls even supposed to exist
<moto-timo> it is not libcurl.so it is the recipe you built (arad)... read the error message again
<oberonc> or why the file libcurl.so isnt named libcurl-gnutls.so
<moto-timo> you can have many .so files, so having more than one that starts with libcurl* is not unexpected
<moto-timo> really hard to help you without seeing the recipe
<oberonc> very well
<moto-timo> but, if you look in your conf/local.conf you should see a line like PACAKGECONFIG_append_pn-qemu-system-native
<moto-timo> well, without the typo
<moto-timo> that shows the syntax you need in your conf
<moto-timo> so in my local.conf I see PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
<oberonc> that is the format in my local.conf as well
<moto-timo> following that pattern, you should add PACKAGECONFIG_append_pn-curl = " gnutls"
<oberonc> I have this line already
<moto-timo> which it sounds like you already tried
<oberonc> and it does link against gnutls
camus has quit [Ping timeout: 268 seconds]
<oberonc> libcurl.so is
<oberonc> but no libcurl-gnutls.so is created
camus has joined #yocto
florian_kc has quit [Remote host closed the connection]
<moto-timo> oberonc: it has to be something in your Makefile for aradrouterd
<oberonc> all I do there is link with -lcurl
<moto-timo> so then it is picking up host contamination maybe?
<moto-timo> or some other library you are linking to has the gnutls requirement
<oberonc> on my host I do have libcurl-gnutls
<oberonc> I only link vs curl
florian has joined #yocto
<moto-timo> Yes. Which is why I say your Makefile is picking up host contamination.
<oberonc> when I copy host compiled aradrouterd to the installed image I see this:
<oberonc> root@intel-x86-64:~# ldd /usr/sbin/aradrouterd
<oberonc>     linux-vdso.so.1 (0x00007ffe605b8000)
<oberonc>     libcurl-gnutls.so.4 => not found
<oberonc>     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f6aca3fe000)
<oberonc>     libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6aca3e4000)
<oberonc>     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6aca3c4000)
<oberonc>     libc.so.6 => /lib64/libc.so.6 (0x00007f6aca1fe000)
<oberonc>     libm.so.6 => /lib64/libm.so.6 (0x00007f6aca0bc000)
<oberonc>     /lib64/ld-linux-x86-64.so.2 (0x00007f6aca62b000)
<moto-timo> please use pastebin
<oberonc> how do I prevent host contamination ?
<oberonc> sorry
<oberonc> I setup the env correctly
<moto-timo> other signs of host contamination are the /lib64/ paths (unless you are building with multilib)
<oberonc> I'm not
<oberonc> I use these 2 commands to setup env:
<oberonc> . ./environment-setup-x86_64-wrlinuxsdk-linux
<oberonc> . ./oe-init-build-env
<moto-timo> can you share the line in the make file where -lcurl is called?
<oberonc> sure
<moto-timo> trust me, that is the root cause of your issue... the Makefile is not cross-compile compatible
<oberonc> lets see
<moto-timo> bingo. your problem is line 2
<moto-timo> oe_runmake defines it's own CC but you are forcing it to use the (host) g++ rather than the one built by yocto project
<oberonc> oh
<oberonc> what should I change it to ?
<oberonc> I thought it will pick up yocto g++
<moto-timo> well, really you should be using CXX and not defining specific tools in your Makefile... let the build environment define it for you
<moto-timo> CC is for plain old C and CXX is C++
<oberonc> yeah
<moto-timo> I could tell you the specific triplet to use, but that's not the right solution... the solution is to not be defining CC=g++
<moto-timo> or change that to CC?=g++
<moto-timo> so that it is a weak definition
<oberonc> ok
<oberonc> lets try
<moto-timo> also, DESTDIR and LDFLAGS are defined as empty, so you might have other issues... you might want to make those DESTDIR?='' and LDFLAGS?=""
<moto-timo> forcing those definitions in hand crafted Makefiles is very prone to troubles.
<oberonc> QA Issue: File /usr/sbin/aradrouterd in package arad doesn't have GNU_HASH (didn't pass LDFLAGS?)
<oberonc> hmm
<moto-timo> you set LDFLAGS to be empty
<moto-timo> line 4
<moto-timo> so now the linker has no idea what to do
<oberonc> ok :-)
<oberonc> makes sense
<moto-timo> if you run 'bitbake -e arad' you can see what the final variables are defined as for the build
<moto-timo> but most of those variables cannot be hard coded to "host" values or left empty... it means you are crippling the cross-compile (even if you are compiling for x86_64, the build is cross-compiled by the Yocto built toolchain)
<oberonc> I understand
<oberonc> I commented it out
<oberonc> now it seems to be working
<oberonc> thank you very much for your help
<moto-timo> you are welcome
<oberonc> yep, image created
<moto-timo> sometimes you need to figure out what the right question to ask yourself is :)
<oberonc> I guess
<oberonc> when you have someone who can solve the problem gfor you you shutdown half your brain
<moto-timo> also, you might want to add oe-pkgdata-utils to your commonly used tools
<moto-timo> oe-pkgdata-util list-pkg-files -p curl
<oberonc> for
<moto-timo> this would show what the curl recipe provides
<moto-timo> IRC is not a free unpaid consultant service... we help because we want people to learn and grow, but at some point you do need to find your own way to learn
<oberonc> I know
<oberonc> you should have told me to RTFM
<oberonc> and maybe point to a place :-)
<moto-timo> well... that assumed we knew where to look ;)
<oberonc> yeah
<moto-timo> but the fine manual would never have told you about the issues with the Makefile...
<oberonc> sync
<oberonc> ups
<oberonc> wrong window
<oberonc> no ? they dont explain host contamination and give examples ?
<moto-timo> but the issues with the Makefile are why the yocto jester was recommending not to hand craft Makefiles back in november
<oberonc> I guess I got lucky to dodge the bullets long enough
<moto-timo> curiosity and sleuthing are important traits :)
vd has joined #yocto
florian has quit [Ping timeout: 268 seconds]
camus1 has joined #yocto
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
jpuhlman has quit [Read error: Connection reset by peer]
davidinux has quit [Ping timeout: 268 seconds]
<kernelspace> hi, i am on dunfell, using a u-boot-xx.bbappend and a u-boot-xx,bb forward ported from older stuff
<kernelspace> compiling u-boot i get
<kernelspace> arm-oe-linux-gnueabi-gcc: error: unrecognized -march target: armv5
<kernelspace> i should be armv7 so not clear where armv5 comes from
<vmeson> oberonc: I'm happy to see that moto-timo was able to help you out. Asking the right question takes a few years/decades of experience. FYI, we do have some WR docs about Makefiles such as this one based on using an SDK: https://docs.windriver.com/bundle/Wind_River_Linux_Binary_Release_Quick_Start_LTS_21/page/hkz1630524007440.html
florian has joined #yocto
mariusz has joined #yocto
snikulov has quit [Remote host closed the connection]
oberonc has quit [Quit: Client closed]
mvlad has quit [Remote host closed the connection]
florian_kc has joined #yocto
florian has quit [Ping timeout: 268 seconds]
GillesM has joined #yocto
GillesM has quit [Client Quit]
<lukma> RP: Unfortunately, -lgcc cannot be found ...
florian_kc has quit [Read error: Connection reset by peer]
florian__ has joined #yocto
<moto-timo> kernelspace: what release of Yocto Project are you on? https://git.yoctoproject.org/poky/tree/meta/conf/machine/include/arm/arch-armv5.inc so something else is involved in your issue
<moto-timo> kernelspace: oh you said, dunfell
<moto-timo> kernelspace: what bsp layer are you using? what MACHINE?
sakoman has quit [Quit: Leaving.]
<moto-timo> lukma: can you expand on -lgcc cannot be found? did you DEPENDS or RDEPENDS (as appropriate) on gcc?
sakoman has joined #yocto
florian_kc has joined #yocto
florian__ has quit [Read error: Connection reset by peer]
florian__ has joined #yocto
florian_kc has quit [Ping timeout: 240 seconds]
pabigot has quit [Quit: Leaving.]
<lukma> moto-timo: Yes, the DEPENDS was set to gcc
<lukma> To be more specific - DEPENDS="virtual/arm-poky-linux-gnueabi-gcc virtual/arm-poky-linux-gnueabi-compilerlibs virtual/libc bc-native"
<RP> lukma: libgcc in DEPENDS too?
<RP> I'd think virtual/libc should take care of that but...
<lukma> Yes, it was also added
<RP> lukma: does seem a little strange as gcc itself can find and link it in when it thinks it is needed :/
<lukma> RP: This is vendor specific makefile ...
<lukma> RP: Even more strange - libgcc_s.so is installed in <sysroot-dir>/lib
<lukma> But no libgcc
florian__ has quit [Ping timeout: 256 seconds]
manuel1985 has joined #yocto
dev1990 has quit [Quit: Konversation terminated!]
florian__ has joined #yocto
camaronut has quit [Quit: Client closed]
<kernelspace> moto-timo: thanks, sry, was off for some dinner time, i solved, was a bad EXTRA_OEMAKE