Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang support #53

Closed
jf--- opened this issue Jul 21, 2011 · 9 comments
Closed

clang support #53

jf--- opened this issue Jul 21, 2011 · 9 comments

Comments

@jf---
Copy link

jf--- commented Jul 21, 2011

I noticed that in osx 10.7 python is built with LLVM. Is it worthwhile to test OCE support for this compiler?

@tpaviot
Copy link
Owner

tpaviot commented Jul 21, 2011

Yes it is! Can you paste the output from gcc -v?

@jf---
Copy link
Author

jf--- commented Jul 21, 2011

Yes it is! Can you paste the output from gcc -v?

let me download & install the new Xcode...

@jf---
Copy link
Author

jf--- commented Jul 21, 2011

jelle_laptop:~ localadmin$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2335.1525/src/configure
--disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15
25/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
jelle_laptop:~ localadmin$

@dbarbier
Copy link
Collaborator

Successfully tested on Linux. It emits less warnings than GCC, I will focus on fixing these ones first.

@jf---
Copy link
Author

jf--- commented Jul 21, 2011

Successfully tested on Linux. It emits less warnings than GCC, I will
focus on fixing these ones first.

?! that was amazingly quick!
Thanks for sharing that result...

@dbarbier
Copy link
Collaborator

Update: it worked on an amd64 box, but fails now on x86

Linking CXX shared library Unix/i686-Release-32/libTKService.so
/usr/bin/ld: CMakeFiles/TKService.dir/__/__/__/src/PlotMgt/PlotMgt_fillpolyarc.cxx.o: relocation R_386_GOTOFF against undefined symbol `sin@@GLIBC_2.0' can not be used when making a shared object
/usr/bin/ld: final link failed: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [adm/cmake/TKService/Unix/i686-Release-32/libTKService.so.0.0.0] Erreur 1
make[1]: *** [adm/cmake/TKService/CMakeFiles/TKService.dir/all] Erreur 2

Systems are quite different, so this may not be due to different architectures.

@dbarbier
Copy link
Collaborator

This is a clang bug on x86, see
http://llvm.org/bugs/show_bug.cgi?id=10022

@dbarbier
Copy link
Collaborator

Fortunately there is a trivial workaround, fix committed at b710256. I am closing this issue, please file a new one if there are problems with clang support.
Thanks for your suggestion.

@jf---
Copy link
Author

jf--- commented Jul 22, 2011

Amazing work Denis, wonderful to see this realized so lightning fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants