asmium icon indicating copy to clipboard operation
asmium copied to clipboard

does "make test" success on MacOS?

Open DQNEO opened this issue 6 years ago • 2 comments

First, thank you for creating an awesome project. This is very interesting.

I have a question.

When I run make test on MacOS, it fails. (Mac OS Sierra 10.12.6, MacbookPro 13-inch 2017)

$  asmium [master] make test
make -C Tests/
gcc -o Darwin/exit0_asmium.bin Darwin/exit0_asmium.o
ld: warning: ignoring file Darwin/exit0_asmium.o, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): Darwin/exit0_asmium.o
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Darwin/exit0_asmium.bin] Error 1
make: *** [test] Error 2

I know "0x7F 0x45 0x4C 0x46" means ELF, but why ELF is used for a tool "for OSX" ?

On the other hand, when I run it on linux using Docker , it passes.

docker run -it --rm -v `pwd`:/mnt  dqneo/ubuntu-build-essential:go bash -c 'make -C /mnt/ test'

So "How to use" in README.md is supposed to be run on Linux, isn't it?

Thanks in advance!

DQNEO avatar Jul 04 '18 16:07 DQNEO