-
Notifications
You must be signed in to change notification settings - Fork 839
Closed
Description
Running check.py on macOS fails on gcc torture tests.
build: /usr/bin/gcc /Users/pepyakin/dev/etc/binaryen/test/example/c-api-hello-world.c -c -o example.o -I/Users/pepyakin/dev/etc/binaryen/src -g -Lbin/../lib -pthread
clang: warning: argument unused during compilation: '-Lbin/../lib' [-Wunused-command-line-argument]
c-api-hello-world.c /Users/pepyakin/dev/etc/binaryen/test/example/c-api-hello-world.c /Users/pepyakin/dev/etc/binaryen/test/example/c-api-hello-world.txt
link: /usr/bin/g++ -std=c++11 example.o -lbinaryen -I/Users/pepyakin/dev/etc/binaryen/src -g -lasmjs -lsupport -Lbin/../lib -pthread -o bin/example -Wl,-rpath=$ORIGIN/../lib
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ld: unknown option: -rpath=$ORIGIN/../lib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "./check.py", line 740, in <module>
run_gcc_torture_tests()
File "./check.py", line 584, in run_gcc_torture_tests
os.remove(output_file)
OSError: [Errno 2] No such file or directory: 'bin/example'
Seems like it happens because clang pretends to be gcc.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels