Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev & gettext
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
evena68
n00b
n00b


Joined: 02 Aug 2015
Posts: 2

PostPosted: Sun Aug 02, 2015 4:45 pm    Post subject: crossdev & gettext Reply with quote

Hello, I am trying to emerge gettext using crossdev, however, gettext
generates .la files, and those files refer to /usr/lib and not to my crossdev root.

# ARCH=arm armv7a-hardfloat-linux-gnueabi-emerge -v gettext
...
-hardfloat-linux-gnueabi/tmp/portage/sys-devel/gettext-0.19.5.1/image//usr/lib -L/usr/lib -lintl -lc -liconv -O2 -Wl,-soname -Wl,libgettextlib-0.19.5.1.so -o .libs/libgettextlib-0.19.5.1.so
/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/libc.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
...

Is there a way for me to make gettext generate correct .la fies ?

Regards,

Even
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Aug 06, 2015 3:10 pm    Post subject: Reply with quote

That kind of thing should be handled by the --sysroot parameter to ./configure.
ie: it should be addressed (already, I'd hope) in ebuild-space.

I'd ask in #gentoo-embedded on IRC: chat.freenode.net, before filing a bug.

If you want to dig into configure (autoconf, automake; the underlying autotools) as well as libtool, then ##workingset is the channel.

For integration into ebuilds, #gentoo-dev-help.

HTH,
steveL
Back to top
View user's profile Send private message
evena68
n00b
n00b


Joined: 02 Aug 2015
Posts: 2

PostPosted: Sat Aug 08, 2015 8:51 am    Post subject: Reply with quote

Hi,

thank you for your response. It seems I cannot see chat.freenode.net,

I am thinking I could run configure,
* Changing --prefix (Used to be /usr)
* Adding --with-sysroot

Like below,

But I am uncertain as to which emerge command I should emit to continue the build afterwards.

Any pointers.

Regards,

Even

/bin/sh /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-devel/gettext-0.19.5.1/work/gettext-0.19.5.1/gettext-runtime/configure \
--disable-option-checking \
'--prefix=/usr/armv7a-hardfloat-linux-gnueabi/usr' \
'--with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi/usr' \
'--build=x86_64-pc-linux-gnu' \
'--host=armv7a-hardfloat-linux-gnueabi' \
'--mandir=/usr/share/man' \
'--infodir=/usr/share/info' \
'--datadir=/usr/share' \
'--sysconfdir=/etc' \
'--localstatedir=/var/lib' \
'--disable-dependency-tracking' \
'--libdir=/usr/lib' \
'--docdir=/usr/share/doc/gettext-0.19.5.1' \
'--enable-libasprintf' \
'--disable-java' \
'--disable-static' \
'--with-included-gettext' \
'--enable-nls' \
'--without-emacs' \
'--without-lispdir' \
'--with-included-glib' \
'--with-included-libcroco' \
'--with-included-libunistring' \
'--disable-acl' \
'--disable-curses' \
'--disable-openmp' \
'--without-git' \
'--without-cvs' \
'build_alias=x86_64-pc-linux-gnu' \
'host_alias=armv7a-hardfloat-linux-gnueabi' \
'CFLAGS=-O2 -pipe -fomit-frame-pointer' \
'LDFLAGS=' \
'CXXFLAGS=-O2 -pipe -fomit-frame-pointer' \
--cache-file=/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-devel/gettext-0.19.5.1/work/gettext-0.19.5.1-.default/config.cache \
--srcdir=/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-devel/gettext-0.19.5.1/work/gettext-0.19.5.1/gettext-runtime
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Sep 27, 2015 11:53 pm    Post subject: Reply with quote

Damn, missed the follow-up; sorry Even.
evena68 wrote:
It seems I cannot see chat.freenode.net

Try chat.freenode.org instead; here's the freenode webpage.
Quote:
I am thinking I could run configure,
* Changing --prefix (Used to be /usr)
* Adding --with-sysroot

Like below

That looks reasonable, though the prefix should be taken care of by crossdev, for toolchain packages -- binutils and gcc at least; sometimes libc is done in the sysroot, sometimes just a normal package.
Not sure what crossdev does with it, though it does handle glibc et al as part of the setup (so likely in the cross-root.)

For something like gettext, I'd have expected it to use a standard prefix of /usr; though it is affected by sysroot, it's not a toolchain package in the normal sense. (It shouldn't care about CTARGET, which only ever applies to cross-toolchain packages.)
I could be wrong though; check with #gentoo-embedded or #gentoo-dev-help
Quote:
But I am uncertain as to which emerge command I should emit to continue the build afterwards.

Hmm you really want this to work properly from ebuild-space; but you can use the ebuild command, though you need FEATURES=keepwork I think it is, or you won't be able to retry from where you left off.
Check with #gentoo-dev-help

You can use EXTRA_ECONF_ARGS (again, check) to add more parms to the ./configure line, if the ebuild inherits from autotools.eclass (I think: don't think it's eutils.)

One thing:
Code:
--cache-file=/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-devel/gettext-0.19.5.1/work/gettext-0.19.5.1-.default/config.cache
looks like a broken path; I'd have expected ../gettext-0.19.5.1/.default/config.cache.
If that's just manual typing, no worries. I could be wrong ofc: check with ##workingset
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum