[Bug ipa/92553] OpenMP offload static linking error, ICE in inline_read_section, at ipa-fnsummary.c:3332

xw111luoye at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 12 06:17:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92553

--- Comment #2 from Ye Luo <xw111luoye at gmail dot com> ---
PR92357 mentioned that you backported a fix to the gcc 9 branch and how I'm
getting the following error

/home/yeluo/opt/gcc-9-branch/bin/g++   -fopenmp -foffload=nvptx-none
-foffload=-lm -fomit-frame-pointer -finline-limit=1000 -fstrict-aliasing
-funroll-all-loops -D__forceinline=inline -Wno-deprecated -march=native -O3
-DNDEBUG -ffast-math   CMakeFiles/check_spo_batched.dir/check_spo_batched.cpp.o
 -o ../../bin/check_spo_batched
-Wl,-rpath,/opt/math-libraries/OpenBLAS/current/lib ../../lib/libqmcwfs.a
../../lib/libqmcbase.a ../../lib/libqmcutil.a
/opt/math-libraries/OpenBLAS/current/lib/libopenblas.so
/opt/math-libraries/OpenBLAS/current/lib/libopenblas.so 
lto1: fatal error: CMakeFiles/check_spo_batched.dir/check_spo_batched.cpp.o:
section
_ZN11qmcplusplus17einspline_spo_ompIdE17evaluateDetRatiosERKNS_18VirtualParticleSetERNS_6VectorIdSaIdEEERKS7_RSt6vectorIdS6_E$_omp_fn$1
is missing
compilation terminated.
mkoffload: fatal error:
/home/yeluo/opt/gcc-9-branch/bin/x86_64-pc-linux-gnu-accel-nvptx-none-gcc
returned 1 exit status
compilation terminated.
lto-wrapper: fatal error:
/home/yeluo/opt/gcc-9-branch/libexec/gcc/x86_64-pc-linux-gnu/9.2.1//accel/nvptx-none/mkoffload
returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status


More information about the Gcc-bugs mailing list