Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916264 - sys-devel/llvm-17.0.3 undefined reference to `__atomic_fetch_and_1'
Summary: sys-devel/llvm-17.0.3 undefined reference to `__atomic_fetch_and_1'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 14:01 UTC by Andrew Cameron
Modified: 2024-01-17 11:55 UTC (History)
1 user (show)

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


Attachments
Build log (build.log.gz,145.00 KB, application/gzip)
2023-10-25 14:02 UTC, Andrew Cameron
Details
Info log (info,8.06 KB, text/plain)
2023-10-25 14:02 UTC, Andrew Cameron
Details
Environment (environment,169.13 KB, text/plain)
2023-10-25 14:03 UTC, Andrew Cameron
Details
pqv log (pqv,762 bytes, text/plain)
2023-10-25 14:03 UTC, Andrew Cameron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cameron 2023-10-25 14:01:07 UTC
sys-devel/llvm-17.0.3 build fails with undefined reference to `__atomic_fetch_and_1'

FAILED: bin/dsymutil 
: && /usr/lib/ccache/bin/riscv64-unknown-linux-gnu-g++ -mabi=lp64d -march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fomit-frame-pointer -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wl,-O1 -Wl,--as-needed    -Wl,-rpath-link,/var/tmp/portage/sys-devel/llvm-17.0.3/work/llvm_build-.lp64d/./lib64  -Wl,--gc-sections tools/dsymutil/CMakeFiles/dsymutil.dir/dsymutil.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/BinaryHolder.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/CFBundle.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/DebugMap.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/DwarfLinkerForBinary.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/MachODebugMapParser.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/MachOUtils.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/Reproducer.cpp.o tools/dsymutil/CMakeFiles/dsymutil.dir/SymbolMap.cpp.o -o bin/dsymutil  -Wl,-rpath,"\$ORIGIN/../lib64:/var/tmp/portage/sys-devel/llvm-17.0.3/work/llvm_build-.lp64d/lib64:"  lib64/libLLVM-17.so && :
/usr/lib/gcc/riscv64-unknown-linux-gnu/12/../../../../riscv64-unknown-linux-gnu/bin/ld: tools/dsymutil/CMakeFiles/dsymutil.dir/dsymutil.cpp.o: in function `.L1322':
dsymutil.cpp:(.text._ZZZ4mainENKUlvE_clEvENKUlSt10shared_ptrIN4llvm14raw_fd_ostreamEEE_clES3_+0x238): undefined reference to `__atomic_fetch_and_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/12/../../../../riscv64-unknown-linux-gnu/bin/ld: tools/dsymutil/CMakeFiles/dsymutil.dir/dsymutil.cpp.o: in function `.L1542':
dsymutil.cpp:(.text._ZZZ4mainENKUlvE_clEvENKUlSt10shared_ptrIN4llvm14raw_fd_ostreamEEE_clES3_+0x79e): undefined reference to `__atomic_fetch_and_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/12/../../../../riscv64-unknown-linux-gnu/bin/ld: tools/dsymutil/CMakeFiles/dsymutil.dir/dsymutil.cpp.o: in function `.L1689':
dsymutil.cpp:(.text._ZZ4mainENKUlvE_clEv+0x8e6): undefined reference to `__atomic_fetch_and_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/12/../../../../riscv64-unknown-linux-gnu/bin/ld: tools/dsymutil/CMakeFiles/dsymutil.dir/dsymutil.cpp.o: in function `.L0 ':
dsymutil.cpp:(.text._ZZ4mainENKUlvE_clEv+0x9e8): undefined reference to `__atomic_fetch_and_1'
collect2: error: ld returned 1 exit status
Comment 1 Andrew Cameron 2023-10-25 14:02:20 UTC
Created attachment 873428 [details]
Build log
Comment 2 Andrew Cameron 2023-10-25 14:02:45 UTC
Created attachment 873429 [details]
Info log
Comment 3 Andrew Cameron 2023-10-25 14:03:11 UTC
Created attachment 873430 [details]
Environment
Comment 4 Andrew Cameron 2023-10-25 14:03:33 UTC
Created attachment 873431 [details]
pqv log
Comment 5 Andrew Cameron 2024-01-17 11:55:41 UTC
I have successfully emerged sys-devel/llvm-17.0.6 using sys-devel/gcc-13.2.1_p20231216