gcc g ++中间程序集错误

时间:2013-01-07 12:12:26

标签: build llvm-gcc

偶尔,我会尝试编译一些代码,但g ++似乎会创建错误的临时程序集:

$ g++ -m32 -o foobar foo.cc bar.cc -O2 -lm -Wall
/var/folders/dz/yk2hf77n13x362dhx14czh4r0000gn/T//cc08wrgL.s:6011:FATAL:Symbol label already defined.

如何调试?

gcc configuration =

Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/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-2336.11~67/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 2336.11.00)

补充意见: 我使用-m32开关构建32位(上面更新的示例)。如果我编译-O1-O4,那么我就没有这个问题。

0 个答案:

没有答案