https://bugzilla.novell.com/show_bug.cgi?id=893359 https://bugzilla.novell.com/show_bug.cgi?id=893359#c0 Summary: clang fails to compile helloworld on ARM Classification: openSUSE Product: openSUSE Factory Version: 201408* Platform: armv7 OS/Version: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: josua.m@t-online.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Trying to build a simple C++ or C hello-world program with clang, it fails to compile it. The same source files build fine using gcc. c++: #include <iostream> using namespace std; int main() { cout << "Hello, World!" << endl; return 0; } c: #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; } Reproducible: Always Steps to Reproduce: 1. install clang 2. create c++ hello-world application 3. try to compile it (clang++ -o test test.cpp) Actual Results: clang++ -o test test.cpp test.cpp:1:10: fatal error: 'iostream' file not found #include <iostream> ^ 1 error generated. clang -o test test.c In file included from test.c:1: In file included from /usr/include/stdio.h:27: In file included from /usr/include/features.h:402: /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found # include <gnu/stubs-soft.h> ^ 1 error generated. clang -mfloat-abi=hard -o test test.c /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s clang-3.4: error: linker command failed with exit code 1 (use -v to see invocation) Expected Results: created executable All information above comes from tests on an opensuse-factory image built today, tests performed on CuBox-i and Hummingboard (i.MX6, armv7l) But opensuse 13.1 has similar issues: on my tests, the c hello-world worked fine, but the c++-one causes the same error. Also I have a configure-script that, told to use clang, will fail the "C-compiler create executables" test. config.log shows the same linker errors as the c-hello-world above. The pkg can be found here: https://build.opensuse.org/package/show/home:mayerjosua:mozilla/mclinker -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.