[Openmp-dev] [PATCH] fix -DARCH=32 build

Jack Howarth howarth.mailing.lists at gmail.com
Thu Jun 5 15:54:57 PDT 2014


       While we wait on the official CMakefiles.txt from Intel to arrive,
attached is a small cleanup of the existing runtime/src/CMakeList.txt which
fixes the IA-32 build of libiomp5. With these changes…

%mkdir build
% cd build
% cmake -DARCH=32 ..
% make VERBOSE=1

will produce a 32-bit libiomp5.

When "cmake -DARCH=64 .." or "cmake .." is used, the Intel® 64 build is
obtained.

         Jack

ps Note that an explicit ARCH_MODE variable is used pass -m32 to assemble
z_Linux_asm.s as passing COMMON_FLAGS with -x assembler-with-cpp produces a
compiler error of…

clang: error: unknown argument: '-fPIC -Wno-unused-value -Wno-switch
-Wno-deprecated-register -fno-exceptions'
[-Wunused-command-line-argument-hard-error-in-future]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140605/4f9ac4ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_arch_32_build.patch
Type: application/octet-stream
Size: 1665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140605/4f9ac4ab/attachment.obj>


More information about the Openmp-dev mailing list