[cfe-users] trying to distcc compile for os x on ubuntu, but getting errors on __builtin_ia32_undef128 and objc_bridge

Zac Hansen via cfe-users cfe-users at lists.llvm.org
Thu May 5 03:18:36 PDT 2016


I'm using distcc from my mac laptop to an ubuntu desktop.   I installed
clang on ubuntu by running "sudo apt-get install clang".

Initially I was also getting an error about "blocks".   I don't really know
what that means, but adding -fblocks fixed it.   However, I'm still getting
the two following errors (only when remote compiling on ubuntu):

clang++ -fblocks -fsanitize=address -g -std=gnu++14 -o
/tmp/distccd_ab2d19b4.o -c /tmp/distccd_a8a919b4.ii

...a bunch of my files...

In file included from /Users/xaxxon/apb/./glm/glm.hpp:90:

In file included from /Users/xaxxon/apb/./glm/fwd.hpp:35:

In file included from /Users/xaxxon/apb/./glm/detail/type_int.hpp:35:

In file included from /Users/xaxxon/apb/./glm/detail/setup.hpp:454:

In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/pmmintrin.h:27:

In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/emmintrin.h:27:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/xmmintrin.h:582:18:
error:

      use of undeclared identifier '__builtin_ia32_undef128'

  return (__m128)__builtin_ia32_undef128();


and


...a bunch of my files...

In file included from
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:8:

/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:428:30:
error: 'objc_bridge' attribute only applies to struct, union or

      class

typedef const __attribute__((objc_bridge(id))) void * CFTypeRef;


Can anyone help me figure out how to solve them?


Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160505/c95f69ac/attachment.html>


More information about the cfe-users mailing list