Skip to contentSkip to conversation

external toolchain and iconv in libglib2.mk

Buildroot Heiko Zuerker 2 participants 7 messages Dec 4, 2010

lore
Share & tools
lore
#0 lore raw

Hey,

I'm using crosstools-ng (configured as external toolchain) with iconv support.

The host-libglib2 compile fails without the line:

HOST_LIBGLIB2_CONF_OPT += --with-libiconv=gnu

I'm not sure how to fix this correctly, any suggestions?

Signature · 11 lines
Regards

   Heiko Zuerker

    <http://www.devil-linux.org> http://www.devil-linux.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101204/49b67ac1/attachment.html>
#1 lore raw

Le samedi 04 d?cembre 2010 ? 11:13 -0600, Heiko Zuerker a ?crit :

Quoted 9 lines

Hey,

I?m using crosstools-ng (configured as external toolchain) with iconv support.

Quoted 8 lines

The host-libglib2 compile fails without the line:

HOST_LIBGLIB2_CONF_OPT += --with-libiconv=gnu

I?m not sure how to fix this correctly, any suggestions?

Hello Heiko,

It sounds like an host related problem...
Could you give us some more details about the distribution you're using ?

Regards,

--
Lionel Landwerlin

#2 lore raw

Hey,

Quoted 13 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Lionel Landwerlin
Sent: Saturday, December 04, 2010 11:18 AM
To: buildroot at busybox.net
Subject: Re: [Buildroot] external toolchain and iconv in libglib2.mk

Le samedi 04 d?cembre 2010 ? 11:13 -0600, Heiko Zuerker a ?crit :

Quoted 5 lines

Hey,

I?m using crosstools-ng (configured as external toolchain) with iconv support.

Quoted 8 lines
Quoted 6 lines

The host-libglib2 compile fails without the line:

HOST_LIBGLIB2_CONF_OPT += --with-libiconv=gnu

I?m not sure how to fix this correctly, any suggestions?

It sounds like an host related problem...
Could you give us some more details about the distribution you're using ?

I'm actually using an older version of linux-from-scratch in a chroot jail, in order to provide a controlled environment for the build. It uses glibc 2.10.1 with iconv support enabled.

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org
#3 lore raw

Ok, it seems the iconv detection fails...
Could you provide the config.log from the host-glib build directory ?

Somewhere on pastebin would be great...

Regards,

--
Lionel Landwerlin

Le samedi 04 d?cembre 2010 ? 11:21 -0600, Heiko Zuerker a ?crit :

Quoted 38 lines

Hey,

Quoted 13 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Lionel Landwerlin
Sent: Saturday, December 04, 2010 11:18 AM
To: buildroot at busybox.net
Subject: Re: [Buildroot] external toolchain and iconv in libglib2.mk

Le samedi 04 d?cembre 2010 ? 11:13 -0600, Heiko Zuerker a ?crit :

Quoted 5 lines

Hey,

I?m using crosstools-ng (configured as external toolchain) with iconv support.

Quoted 8 lines
Quoted 6 lines

The host-libglib2 compile fails without the line:

HOST_LIBGLIB2_CONF_OPT += --with-libiconv=gnu

I?m not sure how to fix this correctly, any suggestions?

It sounds like an host related problem...
Could you give us some more details about the distribution you're using ?

I'm actually using an older version of linux-from-scratch in a chroot jail, in order to provide a controlled environment for the build. It uses glibc 2.10.1 with iconv support enabled.

Signature · 9 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org


_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
#4 lore raw

(sorry, this time with a reply to the list)

Hey,

Here's the error message:
gconvert.c:65:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv

config.log without --with-libiconv=gnu
http://pastebin.com/WB433xVu

config.log with --with-libiconv=gnu
http://pastebin.com/rbgZ6Saw

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org 
#5 lore raw

Ok great,

It looks like something is wrong with your host. You do not seem to have libiconv.so on your system, but still your /usr/include/iconv.h defines a _LIBICONV_H.

So you might have a libc compiled with iconv support, but you're using libiconv's header, that is strange...

Or maybe even more strange, you've got libc with iconv support and on top of that you've installed libiconv, which is confusing glib...

I'm afraid you'll have to fix your system.

Regards,

--
Lionel Landwerlin

Le samedi 04 d?cembre 2010 ? 12:34 -0600, Heiko Zuerker a ?crit :

Quoted 13 lines

(sorry, this time with a reply to the list)

Hey,

Here's the error message:
gconvert.c:65:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv

config.log without --with-libiconv=gnu
http://pastebin.com/WB433xVu

config.log with --with-libiconv=gnu
http://pastebin.com/rbgZ6Saw

#6 lore raw

Hey,

Quoted 7 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Lionel Landwerlin
Sent: Saturday, December 04, 2010 1:26 PM
To: buildroot at busybox.net
Subject: Re: [Buildroot] external toolchain and iconv in libglib2.mk

Quoted 5 lines

Ok great,

It looks like something is wrong with your host. You do not seem to have libiconv.so on your system, but still your /usr/include/iconv.h defines a _LIBICONV_H.

Libiconv.so is there

Quoted 2 lines

So you might have a libc compiled with iconv support, but you're using libiconv's header, that is strange...

Yes that was the issue. I copied iconv.h from glibc and now it works.

Quoted 4 lines

Or maybe even more strange, you've got libc with iconv support and on top of that you've installed libiconv, which is confusing glib...

I'm afraid you'll have to fix your system.

No worries, as long as I know what's going on, I can fix it.

Thanks for your quick help!

Signature · 3 lines
Regards
   Heiko Zuerker
   http://www.devil-linux.org