build error on mac osx (Matthias Kretz)
Tijskens Engelbert
[please enable javascript to see the address]
Sun Jan 19 08:22:49 CET 2014
Hi Matthias,
many thanks for your quick reply, in time i have run some very satisfactory tests. :) This looks to me as a library that provides substantial help to write machine independent code that gets the most out of the cpu for which it is compiled.
kindest regards, bert
[please enable javascript to see the address][please enable javascript to see the address]> wrote:
> Send Vc mailing list submissions to
>[please enable javascript to see the address]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://compeng.uni-frankfurt.de/mailman/listinfo/vc
> or, via email, send a message with subject or body 'help' to
>[please enable javascript to see the address]
>
> You can reach the person managing the list at
>[please enable javascript to see the address]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Vc digest..."
>
>
> Today's Topics:
>
> 1. build error on mac osx (Tijskens Engelbert)
> 2. vc examples build error on mac os x (Tijskens Engelbert)
> 3. Re: build error on mac osx (Matthias Kretz)
> 4. Re: vc examples build error on mac os x (Matthias Kretz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 17 Jan 2014 12:42:45 +0000
>[please enable javascript to see the address]>
>[please enable javascript to see the address][please enable javascript to see the address]>
> Subject: build error on mac osx
>[please enable javascript to see the address]>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi all,
> I wanted to evaluate the Vc library. Got some build errors in
>
> In file included from /Users/etijskens/Downloads/vc-vc/build/trigonometric_AVX+XOP+FMA4.cpp:20:
> In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:
> In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:32:
> In file included from /Users/etijskens/Downloads/vc-vc/avx/vector.h:23:
> /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5: error: use of undeclared identifier '_mm_comlt_epu32'
> AVX_TO_SSE_2(comlt_epu32)
> ^
> (Similar errors from the three succeeding lines as well)
> I checked the CMake files for any variables that could solve the problem. As suggested in the documentation (portability issues/compiler flags) I added
> CMAKE_CXX_FLAGS -march=corei7-avx -mavx
>
> The errors go away when i #undef VC_IMPL_XOP just before /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581
>
> As far as i know XOP is for AMD cpus and should not be activated in my build. CMake detects
> TARGET_ARCHITECTURE=ivy-bridge
>
> i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.
> I am not sure that
> a) the problem is correctly solved by undefining VC_IMPL_XOP
> b) there is not a more elegant solution
> Any help is very much appreciated.
> bert
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/4b6ae908/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 17 Jan 2014 13:15:21 +0000
>[please enable javascript to see the address]>
>[please enable javascript to see the address][please enable javascript to see the address]>
> Subject: vc examples build error on mac os x
>[please enable javascript to see the address]>
> Content-Type: text/plain; charset="windows-1252"
>
> dear all
>
> When building the examples the following error comes up
>
> [ 65%] Building CXX object examples/polarcoord/CMakeFiles/example_polarcoord_scalar.dir/main.cpp.o
> In file included from /Users/etijskens/Downloads/vc-vc/examples/polarcoord/main.cpp:26:
> In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:
> In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:26:
> In file included from /Users/etijskens/Downloads/vc-vc/scalar/vector.h:495:
> /Users/etijskens/Downloads/vc-vc/scalar/math.h:77:7: error: no member named 'sincos' in the global namespace; did you mean '__sincos'?
> ::sincos(x.data(), &sin->data(), &cos->data());
> ~~^~~~~~
> __sincos
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/math.h:647:29: note: '__sincos' declared here
> __header_always_inline void __sincos(double __x, double *__sinp, double *__cosp) {
>
> After replacing sincos with __sincos as suggested, everything builds fine, but maybe this breaks the code on other systems
>
> i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.
>
> kindest regards,
> bert
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/7068a1d6/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 17 Jan 2014 14:59:13 +0100
>[please enable javascript to see the address]>
>[please enable javascript to see the address]
> Subject: Re: build error on mac osx
>[please enable javascript to see the address]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Tijskens,
>
> welcome to the list! :)
>
> On Friday 17 January 2014 12:42:45 Tijskens Engelbert wrote:
>> /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5: error: use of
>> undeclared identifier '_mm_comlt_epu32' AVX_TO_SSE_2(comlt_epu32)
>> ^
>> (Similar errors from the three succeeding lines as well)
>> I checked the CMake files for any variables that could solve the problem.
>> As suggested in the documentation (portability issues/compiler flags) I
>> added CMAKE_CXX_FLAGS -march=corei7-avx -mavx
>>
>> The errors go away when i #undef VC_IMPL_XOP just before
>> /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581
>>
>> As far as i know XOP is for AMD cpus and should not be activated in my
>> build. CMake detects TARGET_ARCHITECTURE=ivy-bridge
>>
>> i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS
>> X (maverick) using the clang 5.0 compiler. I am not sure that
>> a) the problem is correctly solved by undefining VC_IMPL_XOP
>> b) there is not a more elegant solution
>
> I never can remember the mapping of Apples clang version to the actual clang
> version. The latest released version of clang is 3.4
> (http://llvm.org/releases/download.html). I think clang --version should print
> the actual version somewhere.
>
> In any case, you are right that your system doesn't need the XOP stuff. The
> XOP code is compiled because the libVc library is supposed to work for any
> target system. Thus you can build build applications for different hosts on
> your machine without having to recompile libVc. But if your compiler doesn't
> do XOP anyway then this feature is moot. So disabling XOP support is the right
> way to go.
>
> We have two options to fix this:
> a) quick: call set(Vc_XOP_INTRINSICS_BROKEN true) in cmake/VcMacros.cmake for
> depending on the clang version on Apple systems
> b) more generic: make the -mxop compiler flag check more thorough. Right now
> it only tests whether the compiler barfs with the flag. But it doesn't check
> that with -mxop it also supports the XOP intrinsics. There's a similar check
> in cmake/AddCompilerFlag.cmake for -mfma already. Should be easy to copy and
> adjust.
>
> Cheers,
> Matthias
>
> --
> ?????????????????????????????????????????????????????????????
> Dipl.-Phys. Matthias Kretz
>
> Web: http://compeng.uni-frankfurt.de/?mkretz
>
> SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
> ?????????????????????????????????????????????????????????????
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 198 bytes
> Desc: This is a digitally signed message part.
> URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/ffecd488/attachment-0001.pgp>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 17 Jan 2014 15:01:31 +0100
>[please enable javascript to see the address]>
>[please enable javascript to see the address]
> Subject: Re: vc examples build error on mac os x
>[please enable javascript to see the address]>
> Content-Type: text/plain; charset="utf-8"
>
> I have a feeling Khouri and I fixed this before. What Vc branch did you check
> out? Could you try 0.8 please? 0.8 is mostly 0.7 but with a bit more freedom
> for MacOS and Windows fixes.
>
> Cheers,
> Matthias
>
> On Friday 17 January 2014 13:15:21 Tijskens Engelbert wrote:
>> dear all
>>
>> When building the examples the following error comes up
>>
>> [ 65%] Building CXX object
>> examples/polarcoord/CMakeFiles/example_polarcoord_scalar.dir/main.cpp.o In
>> file included from
>> /Users/etijskens/Downloads/vc-vc/examples/polarcoord/main.cpp:26: In file
>> included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22: In file
>> included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:26: In
>> file included from /Users/etijskens/Downloads/vc-vc/scalar/vector.h:495:
>> /Users/etijskens/Downloads/vc-vc/scalar/math.h:77:7: error: no member named
>> 'sincos' in the global namespace; did you mean '__sincos'?
>> ::sincos(x.data(), &sin->data(), &cos->data());
>>
>> ~~^~~~~~
>> __sincos
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
>> er/SDKs/MacOSX10.9.sdk/usr/include/math.h:647:29: note: '__sincos' declared
>> here __header_always_inline void __sincos(double __x, double *__sinp,
>> double *__cosp) {
>>
>> After replacing sincos with __sincos as suggested, everything builds fine,
>> but maybe this breaks the code on other systems
>>
>> i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS
>> X (maverick) using the clang 5.0 compiler.
>>
>> kindest regards,
>> bert
>
> --
> ?????????????????????????????????????????????????????????????
> Dipl.-Phys. Matthias Kretz
>
> Web: http://compeng.uni-frankfurt.de/?mkretz
>
> SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
> ?????????????????????????????????????????????????????????????
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 198 bytes
> Desc: This is a digitally signed message part.
> URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/fc5a8883/attachment-0001.pgp>
>
> ------------------------------
>
> _______________________________________________
> Vc mailing list
>[please enable javascript to see the address]
> https://compeng.uni-frankfurt.de/mailman/listinfo/vc
>
>
> End of Vc Digest, Vol 15, Issue 1
> *********************************
More information about the Vc
mailing list