[llvm-bugs] [Bug 43634] New: llvm fails to bootstrap on RISC-V

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 10 03:15:55 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43634

            Bug ID: 43634
           Summary: llvm fails to bootstrap on RISC-V
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: schwab at suse.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

FAILED: bin/opt 
: &&
/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0svn.7016.gd1170dbe583/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
-std=c++14 -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,--build-id=sha1 -Wl,-allow-shlib-undefined  
-Wl,--export-dynamic 
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/llvm-project-10.0.0svn.7016.gd1170dbe583/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/Debugify.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.10svn 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.0svn.7016.gd1170dbe583/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.0svn.7016.gd1170dbe583/llvm/build/../include/llvm/Support/raw_ostream.h:188:(.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'
clang-10: error: linker command failed with exit code 1 (use -v to see
invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191010/d7fd9a3f/attachment.html>


More information about the llvm-bugs mailing list