xoreaxeaxeax / movfuscator

The single instruction C compiler
Other
9.29k stars 394 forks source link

softfloat Build Errors #4

Closed mojobojo closed 8 years ago

mojobojo commented 8 years ago

It appears as if the gcc directory isnt created when the build script is ran. So when it comes to building softfloat it errors out. Unsure if this matters, but just in case I should mention, I am trying to compile this on a 64 bit version of LMDE (Linux Mint Debian Edition)

movcc -c -I. -I.. -o softfloat32.o -Wf--q softfloat.c -DFLOAT64=0 -DTRIM=1
movcc: /home/joey/movfuscator/build/gcc/cpp: No such file or directory
Makefile:11: recipe for target 'softfloat32.o' failed

When I make the gcc directory and copy what its looking for into there softfloat fails to build.

movcc -c -I. -I.. -o softfloat32.o -Wf--q softfloat.c -DFLOAT64=0 -DTRIM=1
cpp: softfloat.c:28 Syntax error in #include
cpp: softfloat.c:29 Syntax error in #include
cpp: softfloat.c:30 Syntax error in #include
cpp: softfloat.c:31 Syntax error in #include
) in #if/#elsifc:205 Bad operator (
) in #if/#elsifc:217 Bad operator (
) in #if/#elsifc:228 Bad operator (
) in #if/#elsifc:239 Bad operator (
) in #if/#elsifc:256 Bad operator (
) in #if/#elsifc:299 Bad operator (
) in #if/#elsifc:331 Bad operator (
) in #if/#elsifc:415 Bad operator (
) in #if/#elsifc:464 Bad operator (
) in #if/#elsifc:564 Bad operator (
) in #if/#elsifc:602 Bad operator (
) in #if/#elsifc:632 Bad operator (
) in #if/#elsifc:1004 Bad operator (
) in #if/#elsifc:1089 Bad operator (
) in #if/#elsifc:1215 Bad operator (
) in #if/#elsifc:1235 Bad operator (
) in #if/#elsifc:1262 Bad operator (
) in #if/#elsifc:1291 Bad operator (
) in #if/#elsifc:1363 Bad operator (
) in #if/#elsifc:1414 Bad operator (
) in #if/#elsifc:1444 Bad operator (
) in #if/#elsifc:1546 Bad operator (
) in #if/#elsifc:1623 Bad operator (
) in #if/#elsifc:1705 Bad operator (
) in #if/#elsifc:1726 Bad operator (
) in #if/#elsifc:1747 Bad operator (
) in #if/#elsifc:1811 Bad operator (
) in #if/#elsifc:1893 Bad operator (
) in #if/#elsifc:1999 Bad operator (
) in #if/#elsifc:2071 Bad operator (
) in #if/#elsifc:2099 Bad operator (
) in #if/#elsifc:2131 Bad operator (
) in #if/#elsifc:2164 Bad operator (
) in #if/#elsifc:2193 Bad operator (
) in #if/#elsifc:2230 Bad operator (
Qu4tro commented 8 years ago

Same thing with updated Arch Linux

# Build the M/o/Vfuscator soft float library
# These may give warnings about overflows, they are (mostly) safe to ignore
make -C softfloat clean && make -C softfloat
make: Entering directory '/home/quatro/movfuscator/softfloat'
rm -f *.o *.a timesoftfloat
make: Leaving directory '/home/quatro/movfuscator/softfloat'
make: Entering directory '/home/quatro/movfuscator/softfloat'
movcc -c -I. -I.. -o softfloat32.o -Wf--q softfloat.c -DFLOAT64=0 -DTRIM=1
movcc: /home/quatro/movfuscator/build/gcc/cpp: No such file or directory
Makefile:11: recipe for target 'softfloat32.o' failed
make: *** [softfloat32.o] Error 1
make: Leaving directory '/home/quatro/movfuscator/softfloat'
mkdir -p movfuscator/lib
cp softfloat/softfloat32.o movfuscator/lib/softfloat32.o
cp: cannot stat ‘softfloat/softfloat32.o’: No such file or directory
cp softfloat/softfloat64.o movfuscator/lib/softfloat64.o
cp: cannot stat ‘softfloat/softfloat64.o’: No such file or directory
cp softfloat/softfloatfull.o movfuscator/lib/softfloatfull.o
cp: cannot stat ‘softfloat/softfloatfull.o’: No such file or directory
ghost commented 8 years ago

I get the same as the mojobojo with debian 7

praseodym commented 8 years ago

Resolved on Debian 8 by executing sudo ln -swhich cpp-4.9/usr/lib/gcc/x86_64-linux-gnu/4.9/cpp, then editing build.sh to read GCCLN=/usr/lib/gcc/x86_64-linux-gnu/4.9/. Also needed i386 libraries on amd64.

xoreaxeaxeax commented 8 years ago

Thanks, should be fixed now.