[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25205] New: relocation truncated to fit: R_RISCV_JAL against und
From: |
address@hidden |
Subject: |
[Bug ld/25205] New: relocation truncated to fit: R_RISCV_JAL against undefined symbol `pthread_once' |
Date: |
Tue, 19 Nov 2019 10:07:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25205
Bug ID: 25205
Summary: relocation truncated to fit: R_RISCV_JAL against
undefined symbol `pthread_once'
Product: binutils
Version: 2.33
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: address@hidden
CC: wilson at gcc dot gnu.org
Target Milestone: ---
Target: riscv64-*-*
When building llvm on riscv64 from current master I'm getting this error:
: &&
/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0git.10074.g5edf964fccf/llvm/stage1/bin/clang++
-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=0
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -fPIC -fvisibility-inlines-hidden
-Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O2
-g -DNDEBUG -Wl,--as-needed -Wl,--build-id=sha1 -Wl,-allow-shlib-undefined
-Wl,--export-dynamic
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0git.10074.g5edf964fccf/llvm/build/./lib64
-Wl,-O3 tools/opt/CMakeFiles/opt.dir/AnalysisWrappers.cpp.o
tools/opt/CMakeFiles/opt.dir/BreakpointPrinter.cpp.o
tools/opt/CMakeFiles/opt.dir/GraphPrinters.cpp.o
tools/opt/CMakeFiles/opt.dir/NewPMDriver.cpp.o
tools/opt/CMakeFiles/opt.dir/PassPrinters.cpp.o
tools/opt/CMakeFiles/opt.dir/PrintSCC.cpp.o
tools/opt/CMakeFiles/opt.dir/opt.cpp.o -o bin/opt
-Wl,-rpath,"\$ORIGIN/../lib64" -lpthread lib64/libPolly.a
lib64/libLLVM.so.10git lib64/libPollyISL.a && :
lib64/libPolly.a(ScopDetection.cpp.o): in function `__gthread_once(int*, void
(*)())':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm38initializeScopDetectionWrapperPassPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(ScopInfo.cpp.o): in function `__gthread_once(int*, void
(*)())':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm32initializeScopInfoRegionPassPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm33initializeScopInfoWrapperPassPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(IslAst.cpp.o): in function `__gthread_once(int*, void (*)())':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm35initializeIslAstInfoWrapperPassPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(CodeGeneration.cpp.o): in function
`llvm::TrackingMDRef::untrack()':
/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0git.10074.g5edf964fccf/llvm/build/../include/llvm/IR/TrackingMDRef.h:89:(.text._ZN4llvm28initializeCodeGenerationPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(JSONExporter.cpp.o): in function
`llvm::raw_ostream::operator<<(llvm::StringRef)':
/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0git.10074.g5edf964fccf/llvm/build/../include/llvm/Support/raw_ostream.h:189:(.text._ZN4llvm26initializeJSONExporterPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(JSONExporter.cpp.o): in function
`__gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long)':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/ext/new_allocator.h:128:(.text._ZN4llvm26initializeJSONImporterPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(PruneUnprofitable.cpp.o): in function `__gthread_once(int*,
void (*)())':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm31initializePruneUnprofitablePassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
lib64/libPolly.a(CodegenCleanup.cpp.o): in function `__gthread_once(int*, void
(*)())':
/usr/lib64/gcc/riscv64-suse-linux/9/../../../../include/c++/9/riscv64-suse-linux/bits/gthr-default.h:700:(.text._ZN4llvm28initializeCodegenCleanupPassERNS_12PassRegistryE+0x5c):
relocation truncated to fit: R_RISCV_JAL against undefined symbol
`pthread_once'
That looks similar to bug 23244, as it is a weak reference, too.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/25205] New: relocation truncated to fit: R_RISCV_JAL against undefined symbol `pthread_once',
address@hidden <=