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

Bug 745330

Summary: app-benchmarks/libc-bench-20110206 fails to compile with compiler-rt
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 745039    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-09-29 05:47:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-benchmarks/libc-bench-20110206 fails to compile with compiler-rt.
Discovered on: amd64 (internal ref: tinderbox)
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-29 05:47:36 UTC
Created attachment 663016 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-29 05:47:39 UTC
Possible context of error(s):

(.text.unlikely+0x37): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x37): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x3a): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x37): undefined reference to `_Unwind_Resume'
(.text+0x1c5): undefined reference to `__multf3'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x21b): undefined reference to `__addtf3'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x35b): undefined reference to `__multf3'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x3f0): undefined reference to `__multf3'
(.text+0x15f0): undefined reference to `__multf3'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1a2d): undefined reference to `__multf3'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x2264): undefined reference to `__multf3'
(.text+0x547): undefined reference to `__unordtf2'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x57d): undefined reference to `__unordtf2'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x5a3): undefined reference to `__letf2'
(.text+0xab): undefined reference to `__unordtf2'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0xea): undefined reference to `__unordtf2'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x107): undefined reference to `__letf2'
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x36): undefined reference to `_Unwind_Resume'
(.text.unlikely+0x3b): undefined reference to `_Unwind_Resume'
(.text+0x48): undefined reference to `_Unwind_GetCFA'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0xb1): undefined reference to `_Unwind_GetCFA'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x105): undefined reference to `_Unwind_GetCFA'
(.text+0x17c): undefined reference to `_Unwind_ForcedUnwind'
(.text+0x27): undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x40): undefined reference to `_Unwind_GetIP'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x4d): undefined reference to `_Unwind_GetRegionStart'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x194): undefined reference to `_Unwind_SetGR'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1a3): undefined reference to `_Unwind_SetGR'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text+0x1b3): undefined reference to `_Unwind_SetIP'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 3 David Seifert gentoo-dev 2020-10-29 22:22:31 UTC
False positive.
Comment 4 Michael Zavertkin 2024-01-03 09:45:11 UTC
Try to add -lgcc to your LDFLAGS

This should solve at least a half of errors

https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html
https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html