Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782124 - sys-cluster/ceph-16.2.0 undefined reference to `rados_version'
Summary: sys-cluster/ceph-16.2.0 undefined reference to `rados_version'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-11 18:34 UTC by Alessandro Barbieri
Modified: 2021-04-12 21:22 UTC (History)
3 users (show)

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


Attachments
emerge_info (emerge_info,17.81 KB, text/plain)
2021-04-11 18:35 UTC, Alessandro Barbieri
Details
ceph-16.2.0:20210411-163902.log.xz (ceph-16.2.0:20210411-163902.log.xz,87.84 KB, application/x-xz)
2021-04-11 18:35 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-04-11 18:34:51 UTC
This package fails to compile on an unstable system. Attached relevant logs and emerge --info
Comment 1 Alessandro Barbieri 2021-04-11 18:35:05 UTC
Created attachment 699306 [details]
emerge_info

emerge --info
Comment 2 Alessandro Barbieri 2021-04-11 18:35:07 UTC
Created attachment 699309 [details]
ceph-16.2.0:20210411-163902.log.xz

build log (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Alessandro Barbieri 2021-04-11 18:37:02 UTC
[ 80%] Linking CXX static library ../../lib/libclient.a                                                                                                                                                                                       
cd /var/tmp/notmpfs/portage/sys-cluster/ceph-16.2.0/work/ceph-16.2.0_build/src/client && /usr/bin/cmake -P CMakeFiles/client.dir/cmake_clean_target.cmake                                                                                     
cd /var/tmp/notmpfs/portage/sys-cluster/ceph-16.2.0/work/ceph-16.2.0_build/src/client && /usr/bin/cmake -E cmake_link_script CMakeFiles/client.dir/link.txt --verbose=1                                                                       
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/librados-config.dir/librados-config.cc.o: in function `main':                                                                                      
librados-config.cc:(.text.startup+0x1f3): undefined reference to `rados_version'
Comment 4 Ionen Wolkens gentoo-dev 2021-04-12 03:24:02 UTC
Same USE builds fine for me with a normal setup.

ceph is already a difficult package to handle, and there seem to be an accumulation of many custom things.

I'm seeing a few like llvm-{ar,ranlib} being used, USE=custom-cflags doesn't help, and I suspect there's other variables set that should preferably be entirely unset.
Comment 5 Ionen Wolkens gentoo-dev 2021-04-12 21:22:19 UTC
As far as I can tell, this was caused by CXXFLAGS="... -fno-plt"

Considering this would've been stripped if not for USE=custom-cflags, I don't think there's anything to do here (just don't use it), so I'll take the liberty to close this.