On Mon, 22 Jul 2013 17:39:37 +0000 Chuck Zhao - SISA <[email protected]> wrote:
> What a surprise! > I wrote a helloworld C program (attached), and use clang to compile > it. And, clang failed at link time. > > This happened with both clang-3.3-shared and clang-3.2-shared build. > (these are PandaBoard/ARM only) > > > [compile with clang-3.2-shared build] > czhao@panda0:~/Test$ clang -v > clang version 3.2 (tags/RELEASE_32/final) > Target: armv7l-unknown-linux-gnueabi > Thread model: posix > czhao@panda0:~/Test$ clang hello.c -o hello.exe > /usr/bin/ld: cannot find -lgcc_s > clang: error: linker command failed with exit code 1 (use -v to see So, what happens if you run 'clang -target armv7-unknown-linux-gnueabi hello.c' ? (i.e. the target triplet without the 'l'). Or just -target armv7. The latter being what pocl does, and which works on my system. kalle ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
