<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi folks,<br>
<br>
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:<br>
<br>
####################<br>
....<br>
Linking CXX executable zfs<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_linearscalaradv.cpp.o:(.opd+0xc18): multiple definition of `.omp_reduction_op.'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_linearscalaradv.cpp.o:(.opd+0xe28): multiple definition of `.omp_reduction_op..377'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_acousticperturb.cpp.o:(.opd+0xc48): multiple definition of `.omp_reduction_op.'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_acousticperturb.cpp.o:(.opd+0xe58): multiple definition of `.omp_reduction_op..377'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_acousticperturb.cpp.o:(.opd+0xc48): multiple definition of `.omp_reduction_op.'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xc18): first defined here<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_3d_acousticperturb.cpp.o:(.opd+0xe70): multiple definition of `.omp_reduction_op..377'<br>
CMakeFiles/zfs.dir/zfsdgblock_inst_2d_linearscalaradv.cpp.o:(.opd+0xe28): first defined here<br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
make[2]: *** [src/zfs] Error 1<br>
make[1]: *** [src/CMakeFiles/zfs.dir/all] Error 2<br>
make: *** [all] Error 2<br>
####################<br>
<br>
This occurs with r246622-2015090. Trying a previous version of bgclang (r236977-20150511) works fine.<br>
<br>
Does anyone here have the same problem or knows a workaround?<br>
<br>
Regards,<br>
<br>
Michael<br>
</div>
</body>
</html>