Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533678 - x11-libs/motif-2.3.4-r2 with cross-i686-pc-linux-gnu/gcc - /usr/libexec/gcc/i686-pc-linux-gnu/ld: cannot find -lfl
Summary: x11-libs/motif-2.3.4-r2 with cross-i686-pc-linux-gnu/gcc - /usr/libexec/gcc/i...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-27 12:43 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-01-12 14:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
x11-libs:motif-2.3.4-r2:20150108-232932.log (20150108-232932.log,38.92 KB, text/plain)
2015-01-09 00:12 UTC, Jeroen Roovers (RETIRED)
Details
Patch for motif-2.3.4-r2.ebuild (motif-2.3.4-r2.ebuild.diff,823 bytes, patch)
2015-01-09 19:40 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-12-27 12:43:48 UTC
--- motif-2.3.4-r2.ebuild       13 Aug 2014 09:23:32 -0000      1.11
+++ motif-2.3.4-r2.ebuild       27 Dec 2014 12:38:30 -0000
@@ -86,7 +86,7 @@ multilib_src_compile() {
        if ! multilib_is_native_abi; then
                # The wmluiltok build tool is linked with libfl.a, therefore compile
                # it for the build platform's ABI
-               emake -C tools/wml CC="$(tc-getBUILD_CC)" LIBS="-lfl" wmluiltok
+               emake -C tools/wml CC="$(tc-getBUILD_CC)" LIBS="-L/usr/$(get_libdir) -lfl" wmluiltok
        fi
        emake
 }
Comment 1 Ulrich Müller gentoo-dev 2014-12-27 14:54:56 UTC
Please attach build.log and emerge --info output.

(In reply to Jeroen Roovers from comment #0)
> +               emake -C tools/wml CC="$(tc-getBUILD_CC)"
> LIBS="-L/usr/$(get_libdir) -lfl" wmluiltok

Hm, we need the native libfl.a here, so -L/usr/$(get_libdir) is not the correct location.
Comment 2 Ulrich Müller gentoo-dev 2014-12-27 15:29:25 UTC
(In reply to Ulrich Müller from comment #1)
> Hm, we need the native libfl.a here, so -L/usr/$(get_libdir) is not the
> correct location.

Does LIBS="-L/usr/$(get_abi_LIBDIR ${DEFAULT_ABI}) -lfl" work for you?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-08 23:33:22 UTC
(In reply to Ulrich Müller from comment #2)
> (In reply to Ulrich Müller from comment #1)
> > Hm, we need the native libfl.a here, so -L/usr/$(get_libdir) is not the
> > correct location.

But it works because it's called for each ABI.

> Does LIBS="-L/usr/$(get_abi_LIBDIR ${DEFAULT_ABI}) -lfl" work for you?

No, that seems to pick lib64 when lib32 is required:

libtool: link: i686-pc-linux-gnu-gcc -frecord-gcc-switches -g -pipe -O2 -Wall -Wformat=2 -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -Wno-comment -fno-strict-aliasing -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I//usr/include/freetype2 -I/usr/include/freetype2 -Wl,-O1 -Wl,--hash-style=gnu -o wmluiltok wmluiltok.o  -Wl,--as-needed -L/usr/lib64 -lfl
/usr/libexec/gcc/i686-pc-linux-gnu/ld: skipping incompatible /usr/lib64/libfl.a when searching for -lfl
/usr/libexec/gcc/i686-pc-linux-gnu/ld: cannot find -lfl
/usr/libexec/gcc/i686-pc-linux-gnu/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
/usr/libexec/gcc/i686-pc-linux-gnu/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-09 00:12:38 UTC
Created attachment 393504 [details]
x11-libs:motif-2.3.4-r2:20150108-232932.log
Comment 5 Ulrich Müller gentoo-dev 2015-01-09 19:40:08 UTC
Created attachment 393580 [details, diff]
Patch for motif-2.3.4-r2.ebuild

Do attached changes to the ebuild fix the issue for you?
Comment 6 Ulrich Müller gentoo-dev 2015-01-12 14:42:18 UTC
(In reply to Ulrich Müller from comment #5)
> Created attachment 393580 [details, diff] [details, diff]
> Patch for motif-2.3.4-r2.ebuild
> 
> Do attached changes to the ebuild fix the issue for you?

This is -r3 now. Please test and report back.