Opened 8 years ago

Closed 8 years ago

#10132 closed Bugs (fixed)

libs/log/build/Jamfile.v2 contains incorrect options for intel compiler

Reported by: Elmira Semenova <elmira.a.semenova@…> Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

libs/log/build/Jamfile.v2 contains incorrect options "/QxAVX2" and “-mavx2” for Intel Windows and Linux compilers. Correct Intel compiler options are /QxCORE-AVX2 (Windows OS) and -xCORE-AVX2 (Linux OS and Mac OS X).

# cat libs/log/build/Jamfile.v2

254 else if <toolset>intel in $(properties) 255 { 256 if <toolset-intel:platform>win in $(properties) 257 { 258 result = <cxxflags>"/QxAVX2" ; 259 } 260 else 261 { 262 result = <cxxflags>"-march=core-avx2 -mavx -mavx2 -fabi-version=0" ; 263 } 264 } 265 else if <toolset>msvc in $(properties) 266 { 267 result = <cxxflags>"/arch:AVX" ; 268 } 269 }

icl.exe /nologo -Fo"bin.v2/libs/log/config/x86-ext/intel-win/debug/pch-off/avx2.obj" -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /Qwn5 /Qwd985 -Qoption,c,--arg_dep_lookup -D_SECURE_SCL=0 -Qoption,cpp,--arg_dep_lookup -Qpchi- /wd4675 /EHs /QxAVX2 -c -DBOOST_ALL_NO_LIB=1 "-I." -Qvc10 "libs/log/config/x86-ext/avx2.cpp" icl: command line error: Unrecognized keyword 'AVX2' for option '/Qx'

On Linux: icpc -c -xc++ -O0 -g -w1 -inline-level=0 -pthread -fPIC -march=core-avx2 -mavx -mavx2 -fabi-version=0 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -I../../.. -c -o ../../../bin.v2/libs/log/build/intel-linux/debug/address-model-64/log-api-unix/threading-multi/dump_avx2.o ../../../libs/log/src/dump_avx2.cpp icpc: command line warning #10120: overriding '-march=core-avx2' with '-mavx' icpc: command line warning #10353: option '-mavx2' ignored, suggest using '-march=core-avx2'

Change History (4)

comment:1 by Andrey Semashev, 8 years ago

What version of Intel Compiler are you using?

comment:2 by Elmira Semenova <elmira.a.semenova@…>, 8 years ago

It is true for Intel Compiler Versions 12.1, 13.1, 14.0, 15.0

comment:3 by Andrey Semashev, 8 years ago

I've made some changes in https://github.com/boostorg/log/commit/da1f448fd527ac26d8bc1dde90252fbd9ff730ec. Please, verify if it fixes the problem for you.

comment:4 by Andrey Semashev, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.