2

C コンパイラとして clang を実行しようとすると、エラーが発生します (リンカ エラーだと思います)。

Compilation started at Sun Nov 11 14:34:55

make -k 
clang -std=c99 -ggdb  -o0 -Wall -Werror helloworld.c -o helloworld
clang: warning: unknown platform, assuming -mfloat-abi=soft
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [helloworld] Error 1

Compilation exited abnormally with code 2 at Sun Nov 11 14:34:56

問題が解決するだろうと考えて実際に Raspbian イメージを再インストールしましたが、問題は解決しません。Raspbian バージョンは、最新の Raspbian Wheezy hard float ABI (2012-10-28) です。

4

1 に答える 1

4

あなたが本質的に理解しているように、インストールされたclangは使用できないほど壊れています。パッケージ マネージャーを使用してこれをインストールした場合は、パッケージの配布者に文句を言ってください。

于 2012-11-11T22:24:16.087 に答える