Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] matplotlib build fails: link using /usr/lib instead of /usr/lib64
Date: Wed, 27 May 2020 15:45:16
Message-Id: 73HKFXJU.CIF6WQKB.SA4ZCK46@EHDXAJVZ.SYTKNJWT.N4LFXYJF
In Reply to: [gentoo-user] matplotlib build fails: link using /usr/lib instead of /usr/lib64 by Grant Edwards
1 On 2020.05.27 10:26, Grant Edwards wrote:
2 > I tried to emerge matplotlib today, and it failed because it's linking
3 > in 32-bit libraries instead of 64 bit ones:
4 >
5 > x86_64-pc-linux-gnu-g++ -shared -Wl,-O1 -Wl,--as-needed
6 > -march=native -O2 -pipe -fno-strict-aliasing -DNDEBUG
7 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/mplutils.o
8 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/py_converters.o
9 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg.o
10 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/src/_backend_agg_wrapper.o
11 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_bezier_arc.o
12 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_curves.o
13 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/bui
14 > ld/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_image_filters.o
15 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_trans_affine.o
16 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_contour.o
17 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_dash.o
18 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vcgen_stroke.o
19 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/temp.linux-x86_64-3.7/extern/agg24-svn/src/agg_vpgen_segmentator.o
20 > -L/usr/lib -L/usr/lib64 -L/usr/lib64 -lfreetype -lpython3.7m -o
21 > /var/tmp/portage/dev-python/matplotlib-2.2.2-r1/work/matplotlib-2.2.2-python3_7/build/lib/matplotlib/backends/_backend_agg.
22 > cpython-37m-x86_64-linux-gnu.so
23 >
24 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
25 > skipping incompatible /usr/lib/libm.so when searching for -lm
26 >
27 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
28 > skipping incompatible /usr/lib/libm.a when searching for -lm
29 >
30 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
31 > skipping incompatible /usr/lib/libc.so when searching for -lc
32 >
33 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
34 > skipping incompatible /usr/lib/libc.a when searching for -lc
35 > error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
36 >
37 > What would cause that?
38 >
39 > It doesn't appear that it's being build for both 32-bit and 64-bit
40 > targets:
41 >
42 > These are the packages that would be merged, in order:
43 >
44 > Calculating dependencies... done!
45 > [ebuild N ] dev-python/matplotlib-2.2.2-r1::gentoo
46 > USE="-cairo (-doc) -examples -excel -gtk2 -gtk3 -latex -qt5 -test -tk
47 > -wxwidgets" PYTHON_TARGETS="python2_7 python3_7 -python3_6" 0 KiB
48 >
49 > Total: 1 package (1 new), Size of downloads: 0 KiB
50 >
51 > Would you like to merge these packages? [Yes/No]
52 Is it possible that it simply has not been properly updated for
53 Profiles 17.1? Might it be worth trying one of the testing versions?