Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] external toolchain and iconv in libglib2.mk
@ 2010-12-04 17:13 Heiko Zuerker
  2010-12-04 17:17 ` Lionel Landwerlin
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Zuerker @ 2010-12-04 17:13 UTC (permalink / raw)
  To: buildroot

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?

 

-- 

 

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>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 17:13 [Buildroot] external toolchain and iconv in libglib2.mk Heiko Zuerker
@ 2010-12-04 17:17 ` Lionel Landwerlin
  2010-12-04 17:21   ` Heiko Zuerker
  0 siblings, 1 reply; 7+ messages in thread
From: Lionel Landwerlin @ 2010-12-04 17:17 UTC (permalink / raw)
  To: buildroot

Le samedi 04 d?cembre 2010 ? 11:13 -0600, Heiko Zuerker a ?crit :
> 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?
> 

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 17:17 ` Lionel Landwerlin
@ 2010-12-04 17:21   ` Heiko Zuerker
  2010-12-04 17:37     ` Lionel Landwerlin
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Zuerker @ 2010-12-04 17:21 UTC (permalink / raw)
  To: buildroot

Hey,

> -----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 :
> > 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?
> >
> 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.
 
-- 

Regards
   Heiko Zuerker
   http://www.devil-linux.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 17:21   ` Heiko Zuerker
@ 2010-12-04 17:37     ` Lionel Landwerlin
  2010-12-04 18:34       ` Heiko Zuerker
  0 siblings, 1 reply; 7+ messages in thread
From: Lionel Landwerlin @ 2010-12-04 17:37 UTC (permalink / raw)
  To: buildroot

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 :
> Hey,
> 
> > -----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 :
> > > 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?
> > >
> > 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.
>  
> -- 
> 
> Regards
>    Heiko Zuerker
>    http://www.devil-linux.org
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 17:37     ` Lionel Landwerlin
@ 2010-12-04 18:34       ` Heiko Zuerker
  2010-12-04 19:26         ` Lionel Landwerlin
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Zuerker @ 2010-12-04 18:34 UTC (permalink / raw)
  To: buildroot

(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

-- 

Regards
   Heiko Zuerker
   http://www.devil-linux.org 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 18:34       ` Heiko Zuerker
@ 2010-12-04 19:26         ` Lionel Landwerlin
  2010-12-04 19:34           ` Heiko Zuerker
  0 siblings, 1 reply; 7+ messages in thread
From: Lionel Landwerlin @ 2010-12-04 19:26 UTC (permalink / raw)
  To: buildroot

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 :
> (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
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] external toolchain and iconv in libglib2.mk
  2010-12-04 19:26         ` Lionel Landwerlin
@ 2010-12-04 19:34           ` Heiko Zuerker
  0 siblings, 0 replies; 7+ messages in thread
From: Heiko Zuerker @ 2010-12-04 19:34 UTC (permalink / raw)
  To: buildroot

Hey,

> -----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
> 
> 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
 
> 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.
 
> 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!

-- 

Regards
   Heiko Zuerker
   http://www.devil-linux.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-04 19:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 17:13 [Buildroot] external toolchain and iconv in libglib2.mk Heiko Zuerker
2010-12-04 17:17 ` Lionel Landwerlin
2010-12-04 17:21   ` Heiko Zuerker
2010-12-04 17:37     ` Lionel Landwerlin
2010-12-04 18:34       ` Heiko Zuerker
2010-12-04 19:26         ` Lionel Landwerlin
2010-12-04 19:34           ` Heiko Zuerker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox