Skip to contentSkip to conversation

Issue with iconv_open and Linaro toolchain

Buildroot Thierry Bultel 2 participants 2 messages Jul 11, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

My problem was first to find out why my QT (forX11) applications reported the famous errors at startup:

QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed

After some diving into the code and some qemu strace stuff, too, I found out that the
problem is due to the fact that iconv_open tries to open :

/usr/lib/arm-linux-gnueabihf/gconv/gconv-modules.cache

The /usr/lib/arm-linux-gnueabihf does not exist at all on the target, but only in the sysroot.
Copying it manually solves the issue, but I do not feel comfortable with having a piece
of the toolchain path on my system...

What is your point of view about this ? What would be the right way to do ?

Thanks
Thierry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130711/3b404969/attachment.html>

#1 lore raw

Dear Thierry Bultel,

Quoted 7 lines · Thierry Bultel

The /usr/lib/arm-linux-gnueabihf does not exist at all on the target, but only in the sysroot.
Copying it manually solves the issue, but I do not feel comfortable with having a piece
of the toolchain path on my system...

What is your point of view about this ? What would be the right way to do ?

The right way is to add a Buildroot option that copies certain gconv modules, which are needed on (e)glibc toolchains to make iconv work properly, and maybe generates the gconv-modules.cache (this is done using iconvconfig, we'd have to see how to get this tool, or package it).

Best regards,

Thomas

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