Skip to content

Disable lto when building sys-cluster/glusterfs#458

Merged
InBetweenNames merged 2 commits into
InBetweenNames:masterfrom
janlam7:glusterfs
Jan 17, 2020
Merged

Disable lto when building sys-cluster/glusterfs#458
InBetweenNames merged 2 commits into
InBetweenNames:masterfrom
janlam7:glusterfs

Conversation

@janlam7
Copy link
Copy Markdown
Contributor

@janlam7 janlam7 commented Dec 28, 2019

Title: sys-cluster/glusterfs:

Bulding glusterfs with flto enabled fails with:

libtool: link:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/api_la-glfs-master.o   -Wl,-rpath -Wl,/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/libglusterfs/src/.libs -Wl,-rpath -Wl,/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/rpc-lib/src/.libs -Wl,-rpath -Wl,/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/xdr/src/.libs -Wl,-rpath -Wl,/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/api/src/.libs -L/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/libglusterfs/src/.libs -L/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/rpc-lib/src/.libs -L/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/xdr/src/.libs -Wl,--as-needed ../../libglusterfs/src/.libs/libglusterfs.so ../../rpc/rpc-lib/src/.libs/libgfrpc.so ../../rpc/xdr/src/.libs/libgfxdr.so ../../api/src/.libs/libgfapi.so -lacl /temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/rpc-lib/src/.libs/libgfrpc.so /temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/rpc/xdr/src/.libs/libgfxdr.so /temp/mediacenter/portage/sys-cluster/glusterfs-7.1/work/glusterfs-7.1/libglusterfs/src/.libs/libglusterfs.so -ltirpc -lz -lm -luuid -lrt -ldl -lpthread -lcrypto  -mtune=bdver2 -O2 -O3 -flto=2 -fuse-linker-plugin -Wl,-O1 -Wl,--no-undefined -Wl,-O1 -mtune=bdver2 -O2 -O3 -flto=2 -fuse-linker-plugin   -Wl,-soname -Wl,api.so -Wl,-version-script -Wl,.libs/api.ver -o .libs/api.so
/temp/mediacenter/portage/sys-cluster/glusterfs-7.1/temp/api.so.qgr86j.ltrans0.ltrans.o: In function `notify':
<artificial>:(.text+0x1a3): undefined reference to `glfs_subvol_done'
<artificial>:(.text+0x1ad): undefined reference to `glfs_init_done'
<artificial>:(.text+0x23a): undefined reference to `glfs_init_done'
<artificial>:(.text+0x2b7): undefined reference to `glfs_process_upcall_event'

The 7.1 version is not in portage yet, but the 6.5 build from portage fails similarly.

@janlam7 janlam7 changed the title Disable flto when building sys-cluster/glusterfs Disable lto when building sys-cluster/glusterfs Dec 28, 2019
@InBetweenNames
Copy link
Copy Markdown
Owner

Thank you!

@InBetweenNames InBetweenNames merged commit d2d7316 into InBetweenNames:master Jan 17, 2020
@janlam7 janlam7 deleted the glusterfs branch January 22, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants