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

Compilation fails with GCC 4.4.5-8 (Debian) #464

Closed
dymk opened this issue Sep 1, 2013 · 4 comments
Closed

Compilation fails with GCC 4.4.5-8 (Debian) #464

dymk opened this issue Sep 1, 2013 · 4 comments

Comments

@dymk
Copy link

dymk commented Sep 1, 2013

LLVM 3.2 installed, as per the wiki

Host machine info:

dymk@deb:~/code/ldc/build$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)

dymk@deb:~/code/ldc/build$ uname -a
Linux deb 3.2.0-042stab078.27 #1 SMP Mon Jul 1 20:48:07 MSK 2013 i686 GNU/Linux
dymk@deb:~/code/ldc/build$ make 
Scanning dependencies of target idgen
[  0%] Building CXX object CMakeFiles/idgen.dir/dmd2/idgen.c.o
Linking CXX executable dmd2/idgen
[  0%] Built target idgen
Scanning dependencies of target impcnvgen
[  1%] Building CXX object CMakeFiles/impcnvgen.dir/dmd2/impcnvgen.c.o
Linking CXX executable dmd2/impcnvgen
[  1%] Built target impcnvgen
[  1%] Generating dmd2/impcnvtab.c
[  1%] Generating dmd2/id.c, dmd2/id.h
Scanning dependencies of target LDCShared
[  1%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/id.c.o
[  1%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/impcnvtab.c.o
[  1%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/mangle.c.o
[  1%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/template.c.o
[  1%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/ctfeexpr.c.o
<snip>
[  7%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/lexer.c.o
[  7%] Building CXX object CMakeFiles/LDCShared.dir/gen/aa.cpp.o
In file included from /home/dymk/code/ldc/gen/aa.cpp:13:
<snip>
[ 30%] Generating src/rt/typeinfo/ti_ireal.o
[ 30%] Generating src/rt/cast_.o
[ 30%] Generating src/rt/image.o
[ 30%] Generating src/rt/arrayassign.o
[ 30%] Generating src/rt/dmain2.o
Scanning dependencies of target druntime-ldc
[ 30%] Building C object runtime/CMakeFiles/druntime-ldc.dir/druntime/src/core/stdc/errno.c.o
[ 30%] Building ASM object runtime/CMakeFiles/druntime-ldc.dir/druntime/src/core/threadasm.S.o
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S: Assembler messages:
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:28: Error: alignment not a power of 2
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:30: Error: junk at end of line, first unrecognized character is `@'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:40: Error: no such instruction: `mflr 0'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:41: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:42: Error: no such instruction: `stdu 1,-256(1)//stack size:18*8+112=256'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:44: Error: bad register expression
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:47: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:48: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:49: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:50: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:51: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:52: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:53: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:54: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:55: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:56: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:57: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:58: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:59: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:60: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:61: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:62: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:63: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:64: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:67: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:68: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:69: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:70: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:71: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:72: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:73: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:74: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:77: Error: too many memory references for `std'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:85: Error: no such instruction: `mr 5,4'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:86: Error: no such instruction: `mr 4,1'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:87: Error: no such instruction: `ld 6,0(5)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:88: Error: no such instruction: `ld 11,16(5)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:89: Error: no such instruction: `ld 2,8(5)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:90: Error: no such instruction: `mtctr 6'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:91: Error: no such instruction: `bctrl'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:95: Error: no such instruction: `ld 2,40(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:98: Error: no such instruction: `ld 3,(256+48+0 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:99: Error: no such instruction: `ld 4,(256+48+1 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:100: Error: no such instruction: `ld 5,(256+48+2 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:101: Error: no such instruction: `ld 6,(256+48+3 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:102: Error: no such instruction: `ld 7,(256+48+4 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:103: Error: no such instruction: `ld 8,(256+48+5 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:104: Error: no such instruction: `ld 9,(256+48+6 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:105: Error: no such instruction: `ld 10,(256+48+7 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:108: Error: no such instruction: `ld 14,(112+0 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:109: Error: no such instruction: `ld 15,(112+1 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:110: Error: no such instruction: `ld 16,(112+2 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:111: Error: no such instruction: `ld 17,(112+3 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:112: Error: no such instruction: `ld 18,(112+4 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:113: Error: no such instruction: `ld 19,(112+5 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:114: Error: no such instruction: `ld 20,(112+6 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:115: Error: no such instruction: `ld 21,(112+7 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:116: Error: no such instruction: `ld 22,(112+8 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:117: Error: no such instruction: `ld 23,(112+9 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:118: Error: no such instruction: `ld 24,(112+10 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:119: Error: no such instruction: `ld 25,(112+11 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:120: Error: no such instruction: `ld 26,(112+12 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:121: Error: no such instruction: `ld 27,(112+13 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:122: Error: no such instruction: `ld 28,(112+14 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:123: Error: no such instruction: `ld 29,(112+15 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:124: Error: no such instruction: `ld 30,(112+16 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:125: Error: no such instruction: `ld 31,(112+17 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:127: Error: no such instruction: `addi 1,1,256'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:128: Error: no such instruction: `ld 0,16(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:129: Error: no such instruction: `mtlr 0'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:130: Error: no such instruction: `blr'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:153: Error: no such instruction: `mflr 0'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:154: Error: no such instruction: `mfcr 5'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:155: Error: no such instruction: `stw 0,8(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:156: Error: no such instruction: `stw 5,4(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:159: Error: no such instruction: `stw 11,(-1 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:160: Error: no such instruction: `stw 13,(-2 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:161: Error: no such instruction: `stw 14,(-3 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:162: Error: no such instruction: `stw 15,(-4 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:163: Error: no such instruction: `stw 16,(-5 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:164: Error: no such instruction: `stw 17,(-6 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:165: Error: no such instruction: `stw 18,(-7 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:166: Error: no such instruction: `stw 19,(-8 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:167: Error: no such instruction: `stw 20,(-9 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:168: Error: no such instruction: `stw 21,(-10 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:169: Error: no such instruction: `stw 22,(-11 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:170: Error: no such instruction: `stw 23,(-12 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:171: Error: no such instruction: `stw 24,(-13 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:172: Error: no such instruction: `stw 25,(-14 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:173: Error: no such instruction: `stw 26,(-15 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:174: Error: no such instruction: `stw 27,(-16 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:175: Error: no such instruction: `stw 28,(-17 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:176: Error: no such instruction: `stw 29,(-18 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:177: Error: no such instruction: `stw 30,(-19 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:178: Error: no such instruction: `stwu 31,(-20 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:184: Error: no such instruction: `stfd 14,(-1 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:185: Error: no such instruction: `stfd 15,(-2 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:186: Error: no such instruction: `stfd 16,(-3 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:187: Error: no such instruction: `stfd 17,(-4 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:188: Error: no such instruction: `stfd 18,(-5 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:189: Error: no such instruction: `stfd 19,(-6 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:190: Error: no such instruction: `stfd 20,(-7 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:191: Error: no such instruction: `stfd 21,(-8 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:192: Error: no such instruction: `stfd 22,(-9 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:193: Error: no such instruction: `stfd 23,(-10 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:194: Error: no such instruction: `stfd 24,(-11 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:195: Error: no such instruction: `stfd 25,(-12 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:196: Error: no such instruction: `stfd 26,(-13 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:197: Error: no such instruction: `stfd 27,(-14 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:198: Error: no such instruction: `stfd 28,(-15 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:199: Error: no such instruction: `stfd 29,(-16 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:200: Error: no such instruction: `stfd 30,(-17 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:201: Error: no such instruction: `stfd 31,(-18 * 8)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:204: Error: no such instruction: `stw 1,0(3)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:207: Error: no such instruction: `addi 1,4,20 * 4'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:210: Error: no such instruction: `lwz 0,8(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:211: Error: no such instruction: `lwz 5,4(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:214: Error: no such instruction: `lwz 11,(-1 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:215: Error: no such instruction: `lwz 13,(-2 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:216: Error: no such instruction: `lwz 14,(-3 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:217: Error: no such instruction: `lwz 15,(-4 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:218: Error: no such instruction: `lwz 16,(-5 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:219: Error: no such instruction: `lwz 17,(-6 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:220: Error: no such instruction: `lwz 18,(-7 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:221: Error: no such instruction: `lwz 19,(-8 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:222: Error: no such instruction: `lwz 20,(-9 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:223: Error: no such instruction: `lwz 21,(-10 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:224: Error: no such instruction: `lwz 22,(-11 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:225: Error: no such instruction: `lwz 23,(-12 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:226: Error: no such instruction: `lwz 24,(-13 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:227: Error: no such instruction: `lwz 25,(-14 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:228: Error: no such instruction: `lwz 26,(-15 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:229: Error: no such instruction: `lwz 27,(-16 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:230: Error: no such instruction: `lwz 28,(-17 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:231: Error: no such instruction: `lwz 29,(-18 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:232: Error: no such instruction: `lwz 30,(-19 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:233: Error: no such instruction: `lwz 31,(-20 * 4)(1)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:237: Error: no such instruction: `lfd 14,(-1 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:238: Error: no such instruction: `lfd 15,(-2 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:239: Error: no such instruction: `lfd 16,(-3 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:240: Error: no such instruction: `lfd 17,(-4 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:241: Error: no such instruction: `lfd 18,(-5 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:242: Error: no such instruction: `lfd 19,(-6 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:243: Error: no such instruction: `lfd 20,(-7 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:244: Error: no such instruction: `lfd 21,(-8 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:245: Error: no such instruction: `lfd 22,(-9 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:246: Error: no such instruction: `lfd 23,(-10 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:247: Error: no such instruction: `lfd 24,(-11 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:248: Error: no such instruction: `lfd 25,(-12 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:249: Error: no such instruction: `lfd 26,(-13 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:250: Error: no such instruction: `lfd 27,(-14 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:251: Error: no such instruction: `lfd 28,(-15 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:252: Error: no such instruction: `lfd 29,(-16 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:253: Error: no such instruction: `lfd 30,(-17 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:254: Error: no such instruction: `lfd 31,(-18 * 8)(4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:257: Error: no such instruction: `mtcr 5'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:258: Error: no such instruction: `mtlr 0'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:261: Error: no such instruction: `blr'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:278: Error: no such instruction: `addiu $sp,$sp,-(10 * 4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:286: Error: no such instruction: `sdcl $f20,(0 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:287: Error: no such instruction: `sdcl $f22,(1 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:288: Error: no such instruction: `sdcl $f24,(2 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:289: Error: no such instruction: `sdcl $f26,(3 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:290: Error: no such instruction: `sdcl $f28,(4 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:291: Error: no such instruction: `sdcl $f30,(5 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:293: Error: no such instruction: `sw $ra,-4($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:295: Error: no such instruction: `sw $s0,(0 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:296: Error: no such instruction: `sw $s1,(1 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:297: Error: no such instruction: `sw $s2,(2 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:298: Error: no such instruction: `sw $s3,(3 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:299: Error: no such instruction: `sw $s4,(4 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:300: Error: no such instruction: `sw $s5,(5 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:301: Error: no such instruction: `sw $s6,(6 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:302: Error: no such instruction: `sw $s7,(7 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:303: Error: no such instruction: `sw $s8,(8 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:304: Error: no such instruction: `sw $gp,(9 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:307: Error: no such instruction: `sw $sp,0($a0)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:308: Error: no such instruction: `move $sp,$a1'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:311: Error: no such instruction: `ldcl $f20,(0 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:312: Error: no such instruction: `ldcl $f22,(1 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:313: Error: no such instruction: `ldcl $f24,(2 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:314: Error: no such instruction: `ldcl $f26,(3 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:315: Error: no such instruction: `ldcl $f28,(4 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:316: Error: no such instruction: `ldcl $f30,(5 * 8 - BELOW)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:318: Error: no such instruction: `lw $ra,-4($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:320: Error: no such instruction: `lw $s0,(0 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:321: Error: no such instruction: `lw $s1,(1 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:322: Error: no such instruction: `lw $s2,(2 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:323: Error: no such instruction: `lw $s3,(3 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:324: Error: no such instruction: `lw $s4,(4 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:325: Error: no such instruction: `lw $s5,(5 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:326: Error: no such instruction: `lw $s6,(6 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:327: Error: no such instruction: `lw $s7,(7 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:328: Error: no such instruction: `lw $s8,(8 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:329: Error: no such instruction: `lw $gp,(9 * 4)($sp)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:331: Error: no such instruction: `addiu $sp,$sp,(10 * 4)'
/home/dymk/code/ldc/runtime/druntime/src/core/threadasm.S:333: Error: no such instruction: `jr $ra//return'
make[2]: *** [runtime/CMakeFiles/druntime-ldc.dir/druntime/src/core/threadasm.S.o] Error 1
make[1]: *** [runtime/CMakeFiles/druntime-ldc.dir/all] Error 2
make: *** [all] Error 2

According to some individuals on IRC, these are instructions for MIPS. The host machine, however, is x86.

@redstar
Copy link
Member

redstar commented Sep 1, 2013

I never tried to build LDC with a gcc version less than 4.6.
The above error message sems to be caused by a preprocessor problem. I think the quick fix is to empty the file or remove it from CMakeLists.txt. On x86/x86_64 the file is not needed.

@dymk
Copy link
Author

dymk commented Sep 2, 2013

You're right; clearing the file fixed the errors and LDC compiled just fine.

@redstar
Copy link
Member

redstar commented Sep 2, 2013

I install this version of gcc now. If it is really a problem of the compiler then we should blacklist this version (in addition to the list of broken compilers for LLVM, see here: http://www.llvm.org/docs/GettingStarted.html#id10)

@redstar
Copy link
Member

redstar commented Dec 7, 2013

I got the same error now. It has nothing to do with the compiler. The cmake version of Debian sqeeze is 2.8.2. This versions passes the assembler file to /usr/bin/as instead of /usr/bin/gcc. This results in the error message above.

The assembler support in cmake was reworked in 2.8.5. I think this is the minimum version required to compile the file.

I update CMakeLists.txt accordingly.

@redstar redstar closed this as completed in 0628a1f Dec 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants