[Llvm-bgq-discuss] Regression when linking with -fopenmp
Schlottke-Lakemper, Michael
m.schlottke-lakemper at aia.rwth-aachen.de
Thu Sep 3 09:53:38 CDT 2015
Hi folks,
There seems to be a regression in bgclang during the linking step after compiling with -fopenmp. With the current nightly build, we get the following errors:
####################
....
Linking CXX executable zfs
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_linearscalaradv.cpp.o:(.opd+0xc18): multiple definition of `.omp_reduction_op.'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_linearscalaradv.cpp.o:(.opd+0xe28): multiple definition of `.omp_reduction_op..377'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_acousticperturb.cpp.o:(.opd+0xc48): multiple definition of `.omp_reduction_op.'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_acousticperturb.cpp.o:(.opd+0xe58): multiple definition of `.omp_reduction_op..377'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_acousticperturb.cpp.o:(.opd+0xc48): multiple definition of `.omp_reduction_op.'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_acousticperturb.cpp.o:(.opd+0xe70): multiple definition of `.omp_reduction_op..377'
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/zfs] Error 1
make[1]: *** [src/CMakeFiles/zfs.dir/all] Error 2
make: *** [all] Error 2
####################
This occurs with r246622-2015090. Trying a previous version of bgclang (r236977-20150511) works fine.
Does anyone here have the same problem or knows a workaround?
Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20150903/4eb5c6f8/attachment.html>
More information about the llvm-bgq-discuss
mailing list