xoreaxeaxeax / movfuscator

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

Compiling with movcc fails #37

Open mkb2091 opened 4 years ago

mkb2091 commented 4 years ago

I've tried movcc -s ./validation/prime.c -o prime_mov movcc validation/aes/aes.c validation/aes/test.c -o validation/aes/aes -s movcc -s hello_world.c -o hello_world with the program "#include int main(){ printf("Hello World"); return 0;}"

All of them fail with errors like (but with different c files):

`M/o/Vfuscation started...

hello_world.c: /usr/include/bits/alltypes.h:6: syntax error; found va_list' expecting;'

M/o/Vfuscation failed.`

I'm using Void Linux with MUSL as libc on a 64bit system

edcdecl commented 2 months ago

see the readme:

Building The M/o/Vfuscator uses LCC as the compiler frontend. The included build script will automatically download LCC, configure it for the mov backend, and build the M/o/Vfuscator tool.

If you are building on a 64 bit system, ensure that you have a 32 bit libc available (for example, 'apt-get install libc6-dev-i386' or 'yum install glibc-devel.i686').

git clone https://github.com/xoreaxeaxeax/movfuscator cd movfuscator ./build.sh sudo ./install.sh If you have trouble building LCC, you can get more details on the LCC build process at: https://drh.github.io/lcc/current/doc/install.html

Azzydon commented 2 months ago

The LCC build process link you sent is a 404.

On Thu, May 2, 2024 at 9:16 AM E O @.***> wrote:

see the readme:

Building The M/o/Vfuscator uses LCC as the compiler frontend. The included build script will automatically download LCC, configure it for the mov backend, and build the M/o/Vfuscator tool.

If you are building on a 64 bit system, ensure that you have a 32 bit libc available (for example, 'apt-get install libc6-dev-i386' or 'yum install glibc-devel.i686').

git clone https://github.com/xoreaxeaxeax/movfuscator cd movfuscator ./build.sh sudo ./install.sh If you have trouble building LCC, you can get more details on the LCC build process at: https://drh.github.io/lcc/current/doc/install.html

— Reply to this email directly, view it on GitHub https://github.com/xoreaxeaxeax/movfuscator/issues/37#issuecomment-2090475286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSORE3YU35ODR533GNBDGDZAI4CDAVCNFSM4KWP2R5KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBZGA2DONJSHA3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

edcdecl commented 2 months ago

fixed https://github.com/drh/lcc/blob/master/doc/install.html

Azzydon commented 2 months ago

Awesome, thanks!

On Thu, May 2, 2024 at 9:25 AM E O @.***> wrote:

fixed https://github.com/drh/lcc/blob/master/doc/install.html

— Reply to this email directly, view it on GitHub https://github.com/xoreaxeaxeax/movfuscator/issues/37#issuecomment-2090494112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSORE5D3YWMVTF6GYHVNETZAI5DPAVCNFSM4KWP2R5KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBZGA2DSNBRGEZA . You are receiving this because you commented.Message ID: @.***>