[Openmp-dev] An -O0 build fails when OpenMP offload flags are enabled

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Oct 24 22:06:08 PDT 2018


Hi,
To suppress optimizations so I can see parameters in normal builds
with -O3 (or -O2) optimized out, I am trying to build my application with
-O0, but this configuration, while higher -O2 and -O3 builds succeed, fails
with the following messages:

 [  3%] Linking CXX shared library libsli.so
nvlink error   : Undefined reference to '_ZN14SLIInterpreter9ArraytypeE' in
'/tmp/arraydatum-674e43.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter13ProceduretypeE' in '/tmp/arraydatum-674e43.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter16LitproceduretypeE' in '/tmp/arraydatum-674e43.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter13IntVectortypeE' in '/tmp/arraydatum-674e43.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter16DoubleVectortypeE' in '/tmp/arraydatum-674e43.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter14DictionarytypeE' in '/tmp/dictdatum-978310.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10DoubletypeE'
in '/tmp/doubledatum-c94ef1.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11IntegertypeE'
in '/tmp/integerdatum-3593a0.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11IstreamtypeE'
in '/tmp/iostreamdatum-3a3968.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter12XIstreamtypeE' in '/tmp/iostreamdatum-3a3968.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11OstreamtypeE'
in '/tmp/iostreamdatum-3a3968.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter8NametypeE' in
'/tmp/namedatum-1437b3.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11LiteraltypeE'
in '/tmp/namedatum-1437b3.cubin'
nvlink error   : Undefined reference to '_ZN12RegexpModule9RegexTypeE' in
'/tmp/sliregexp-99b2e4.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10StringtypeE'
in '/tmp/stringdatum-823e31.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10SymboltypeE'
in '/tmp/symboldatum-98a922.cubin'
clang-8: error: nvlink command failed with exit code 255 (use -v to see
invocation)
make[2]: *** [sli/libsli.so] Error 255
make[2]: *** Deleting file `sli/libsli.so'
make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
make: *** [all] Error 2

I suspect there's something wrong with the OpenMP runtime library, but
I appreciate experts can take a look at the above.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20181025/c8327da3/attachment.html>


More information about the Openmp-dev mailing list