* cross compiling util-linux
@ 2012-09-06 17:30 Christer Solskogen
2012-09-16 20:44 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Christer Solskogen @ 2012-09-06 17:30 UTC (permalink / raw)
To: util-linux
Hi!
I'm having a bit trouble cross compiling util-linux. Due to where is
thinks it finds libpam.la. For all I know that might be a problem that
Linux-PAM has, but if anyone could point me in the right direction I
would be very happy :-)
[solskogen@cheer util-linux.x86_64-centix-linux-gnu]$ make
make all-recursive
make[1]: Entering directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu'
Making all in po
make[2]: Entering directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu/po'
make[2]: Entering directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu'
CCLD libblkid.la
copying selected object files to avoid basename conflicts...
CCLD libmount.la
CCLD login
libtool: link: cannot find the library `/lib64/libpam.la' or unhandled
argument `/lib64/libpam.la'
make[2]: *** [login] Error 1
make[2]: Leaving directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/storage/home/solskogen/obj/_build/util-linux.x86_64-centix-linux-gnu'
make: *** [all] Error 2
configure was run like this: -prefix=/usr
--build=x86_64-unknown-linux-gnu --host=x86_64-centix-linux-gnu
--with-sysroot=/home/solskogen/obj/root.x86_64-centix-linux-gnu
I have succesfully compiled the linux kernel, binutils, gcc, glibc etc.
with the cross compiler so I'm pretty sure that nothing is wrong with my
toolchain.
--
chs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cross compiling util-linux
2012-09-06 17:30 cross compiling util-linux Christer Solskogen
@ 2012-09-16 20:44 ` Mike Frysinger
2012-09-16 20:49 ` Christer Solskogen
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2012-09-16 20:44 UTC (permalink / raw)
To: Christer Solskogen; +Cc: util-linux
[-- Attachment #1: Type: Text/Plain, Size: 540 bytes --]
On Thursday 06 September 2012 13:30:36 Christer Solskogen wrote:
> libtool: link: cannot find the library `/lib64/libpam.la' or unhandled
> argument `/lib64/libpam.la'
not a bug in util-linux. libtool linker scripts do not play well with cross-
compiling. you can remove them, hack them, or hack up the local libtool.
> configure was run like this: -prefix=/usr
> --build=x86_64-unknown-linux-gnu --host=x86_64-centix-linux-gnu
> --with-sysroot=/home/solskogen/obj/root.x86_64-centix-linux-gnu
the --with-sysroot isn't necessary
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cross compiling util-linux
2012-09-16 20:44 ` Mike Frysinger
@ 2012-09-16 20:49 ` Christer Solskogen
0 siblings, 0 replies; 3+ messages in thread
From: Christer Solskogen @ 2012-09-16 20:49 UTC (permalink / raw)
To: Mike Frysinger; +Cc: util-linux
On Sun, Sep 16, 2012 at 10:44 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 06 September 2012 13:30:36 Christer Solskogen wrote:
>> libtool: link: cannot find the library `/lib64/libpam.la' or unhandled
>> argument `/lib64/libpam.la'
>
> not a bug in util-linux. libtool linker scripts do not play well with cross-
> compiling. you can remove them, hack them, or hack up the local libtool.
>
I disagree. GMP, MPFR, MPC, ISL and CLooG also deal with that kind of
problems with libtool. But --with-sysroot solves it.
CLooG did had a problem, but when I recreated the configure script
with a new versions of libtool, automake and autoconf the problem was
solved.
--
chs,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-16 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 17:30 cross compiling util-linux Christer Solskogen
2012-09-16 20:44 ` Mike Frysinger
2012-09-16 20:49 ` Christer Solskogen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).