Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 636314

Summary: sys-apps/which-2.21 fails to build with CFLAGS=-flto: In function `find_command_in_path': <artificial>:(.text+0x71b): undefined reference to `tilde_expand'
Product: Gentoo Linux Reporter: cryptopsy
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description cryptopsy 2017-11-02 20:23:03 UTC
Created attachment 501946 [details]
emerge --info

When giving -flto CFLAGS in make.conf, this package fails to build. There are other pkgs which fail as well, is this expected?

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -pipe -flto -march=native -c -o getopt1.o getopt1.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -pipe -flto -march=native -c -o bash.o bash.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -O2 -pipe -flto -march=native -c -o which.o which.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -flto -march=native  -Wl,-O1 -Wl,--as-needed -o which getopt.o getopt1.o bash.o which.o ./tilde/libtilde.a /usr/lib/libiberty.a 
/tmp/.portage/portage/sys-apps/which-2.21/temp/cc1KeTgX.ltrans0.ltrans.o: In function `find_command_in_path':
<artificial>:(.text+0x71b): undefined reference to `tilde_expand'
Comment 1 cryptopsy 2017-11-02 20:24:23 UTC
Created attachment 501950 [details]
Comment 2 cryptopsy 2017-12-27 12:29:13 UTC
i was able to build successfully now with -flto. Don't know what happened since the package is still the same version. You may close.