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 linking crashes for utest-proto-heat and other UFEM tests #207

Closed
wdeconinck opened this issue Apr 18, 2012 · 5 comments
Closed

clang linking crashes for utest-proto-heat and other UFEM tests #207

wdeconinck opened this issue Apr 18, 2012 · 5 comments
Assignees

Comments

@wdeconinck
Copy link
Member

Since the last merge from barche, clang crashes again at linking utest-proto-heat, and other utest-proto executables.
Only the UFEM/tests have this problem. The proto tests for cf3/solver don't have any problems.

The crash occurs both with clang 3.0 and clang 3.1.
I realize this is probably a bug in clang, which should give a proper linking error message, but since this crash only started occurring since latest merge, maybe it is possible an error is introduced in cf3 nevertheless.

Since clang is one of our main supported compilers, this issue is marked as fatal and urgent. barche is assigned being the expert proto-clang-crasher :)

[ 85%] Building CXX object plugins/UFEM/test/CMakeFiles/utest-proto-heat.dir/utest-proto-heat.cpp.o
Linking CXX executable utest-proto-heat
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://developer.apple.com/bugreporter/ and include command line arguments and all diagnostic information.
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: note: diagnostic msg: Error generating preprocessed source(s).
make[2]: *** [plugins/UFEM/test/utest-proto-heat] Error 254
make[1]: *** [plugins/UFEM/test/CMakeFiles/utest-proto-heat.dir/all] Error 2
make: *** [all] Error 2
@ghost ghost assigned barche Apr 18, 2012
@tlmquintino
Copy link
Member

Yep, I confirm the same behaviour - is this a clang-macosx thing?
Does clang 3.0 on Linux reproduces the same result?

The linker behaves slightly differently from macosx to Linux.

@barche
Copy link
Member

barche commented Apr 18, 2012

I'm upgrading my home machine to get clang 3.0. On Clang 2.9, I have no problems in linux.

@wdeconinck
Copy link
Member Author

My VUB iMac is up and running again with new hard disk after the crash. Soon this error will appear on dashboards near you. 2 builds are coming: a minimal one having only boost and openmpi, and a recommended build having the recommended deps.

@barche
Copy link
Member

barche commented Apr 19, 2012

This does not happen with clang 3.0 on linux, so it must be mac-specific. Given that it is a segfault, I'd say hunt it down: get a linker with debug symbols, get a backtrace, and send it to the clang developers. Maybe before that, adding the "-v" option to clang will already give more clues.

@wdeconinck
Copy link
Member Author

Miraculously this problem fixed itself, as it also came by itself :) Hurray!

Still using the same configuration as before. Also the OSX dashboard builds show this.

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

No branches or pull requests

3 participants