Closed carlonluca closed 8 years ago
We still build kernels and userland libs (/opt/vc/lib) with the linaro toolchain which works fine with jessie. Did you build libicui18n.so yourself, or was that built with a newer compiler?
I'm sorry, the path was misleading. The error:
undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
is returned when building against the icu library provided with jessie. I also tried to rebuild icu myself using the linaro toolchain from this repo, and my builds work fine then, but at the end, for some reason unknown to me, my applications won't start. The dynamic linker seems to somehow ignore my icu lib, although it is in the search path (http://pastebin.com/nMNZn3gs, http://pastebin.com/9a28k4Sx). I tried with ubuntu crosscompiler but I suppose it expects a different sysroot layout. Do you have any other advice? Actually it seems icu is the only problem, the rest of the libs linked without errors.
By reading the elf of the icu I built I found out it was built softfp. Building it properly solved. So it was simply my fault. Not sure why the dynamic linker wasn't saying anything more useful. The first part regarding the toolchain remains, but actually icu is the only one that showed problems so far.
Dear Dev team, Are there any plans to upgrade the compilers (arm-bcm2708 folder) to sync up with 4.9.2 (used in Jessie). I would like to make modules using the same version of gcc as the jessie distribution and that would really benefit the community. In the meantime, I picked up the 4.9 compiler for my use from https://releases.linaro.org/15.02/components/toolchain/binaries/arm-linux-gnueabihf/
Thanks, Jack
@teamonhand are you happy with the linked toolchain? We could add it to repo if it is useful.
It did the job for me. I think it would be convenient to have it included in the repo.
I've added linaro gcc 4.9.3 to tools repo. @carlonluca does that work for you?
Awesome, theoretically it should yes. I don't know when I'll have the time to rebuild all my projects to test so if you want you can close the issue and I'll reopen in case of problems.
Is the linaro toolchain currently in the repo still OK to crossbuild for Raspbian Jessie? I read it should be, but when trying to build something that links to icu I get this:
I suppose that symbol was added in 4.9 (I may be wrong). Also I see that the compiler in the Jessie image is 4.9.2. So is this toolchain OK for Jessie? Or should I use another one?