[Openmp-dev] Broken cmake logic after recent changes

Peyton, Jonathan L jonathan.l.peyton at intel.com
Mon Jul 20 09:39:14 PDT 2015


> Is this missing an else block to catch the case where it is not win32 and is Apple?
No, all the Apple linker flags have been "CMakeified" where CMake will either define them to be available or not based on the OS.

> I have a doubt libomp_check_linker_flag is working as expected...
Because I don't have a pathscale compiler, I will need some help debugging this issue with check_linker_flag.  When looking at it closely, I don't see any issue with it when using clang or gcc.
Can you do these steps to help me find out the problem?

1) apply the attached small patch.
2) create a build directory, call CMake with appropriate flags.
3) cd check_LIBOMP_HAVE_STATIC_LIBGCC_FLAG/build
4) make clean
5) make VERBOSE=1
6) echo $?

If you could send me the output of steps 5) and 6) that would be of great help.

-- Johnny

-----Original Message-----
From: openmp-dev-bounces at cs.uiuc.edu [mailto:openmp-dev-bounces at cs.uiuc.edu] On Behalf Of C Bergström
Sent: Saturday, July 18, 2015 1:49 AM
To: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: [Openmp-dev] Broken cmake logic after recent changes

.....

Is this missing an else block to catch the case where it is not win32 and is Apple?

# Check linker flags
if(WIN32)
  libomp_check_linker_flag(/SAFESEH LIBOMP_HAVE_SAFESEH_FLAG) elseif(NOT APPLE)
-------------
I have a doubt libomp_check_linker_flag is working as expected.

Our compiler does *not* support this flag and if you pass it to our compiler it will fail. However it's still being used and part of the reason the build is broken for us.

Linking C shared library libomp.so
pathcc ERROR parsing -static-libgcc: unknown flag
---------
I'll try to give more feedback on Power7, Power8, Aarch64 (native and cross compiler and Solaris after the above are fixed.

It would be good if BSD, UH and or others could help test and see if things are actually working for them.
_______________________________________________
Openmp-dev mailing list
Openmp-dev at dcs-maillist2.engr.illinois.edu
http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_check_linker_flag.patch
Type: application/octet-stream
Size: 824 bytes
Desc: debug_check_linker_flag.patch
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150720/94e6c777/attachment.obj>


More information about the Openmp-dev mailing list