Created
August 3, 2022 18:35
-
-
Save nrnrnr/999c4b20411dcd0a1cd11eabc33d33ab to your computer and use it in GitHub Desktop.
Transcript of trying to run clang on tweag builder 01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nr@nixos:~]$ clang --target=wasm32-wasi -o evil.o -c evil.s | |
clang-14: warning: argument unused during compilation: '-fstack-protector-strong' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '--param ssp-buffer-size=4' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-D _FORTIFY_SOURCE=2' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-idirafter /nix/store/b3pqkywjwzqpq4vi5yffncdbywwpbrmk-glibc-2.33-117-dev/include' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-frandom-seed=0wq5q21c7f' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-isystem /nix/store/jg2hvh556ppf0xz47iszgbl79fsng2d1-compiler-rt-libc-14.0.0-rc4-dev/include' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-isystem /nix/store/jg2hvh556ppf0xz47iszgbl79fsng2d1-compiler-rt-libc-14.0.0-rc4-dev/include' [-Wunused-command-line-argument] | |
clang-14: warning: argument unused during compilation: '-isystem /nix/store/jg2hvh556ppf0xz47iszgbl79fsng2d1-compiler-rt-libc-14.0.0-rc4-dev/include' [-Wunused-command-line-argument] | |
evil.s:2:1: error: unknown directive | |
.functype foo () -> (i32) | |
^ | |
evil.s:4:1: error: invalid instruction mnemonic 'i32.const' | |
i32.const 42 | |
^~~~~~~~~ | |
evil.s:5:1: error: invalid instruction mnemonic 'if' | |
if i32 | |
^~ | |
evil.s:7:3: error: invalid instruction mnemonic 'i32.const' | |
i32.const 42 | |
^~~~~~~~~ | |
evil.s:8:3: error: invalid instruction mnemonic 'return' | |
return | |
^~~~~~ | |
evil.s:9:1: error: invalid instruction mnemonic 'else' | |
else | |
^~~~ | |
evil.s:11:3: error: invalid instruction mnemonic 'i32.const' | |
i32.const 42 | |
^~~~~~~~~ | |
evil.s:12:3: error: invalid instruction mnemonic 'if' | |
if | |
^~ | |
evil.s:13:3: error: invalid instruction mnemonic 'else' | |
else | |
^~~~ | |
evil.s:15:3: error: invalid instruction mnemonic 'end_if' | |
end_if | |
^~~~~~ | |
evil.s:17:3: error: invalid instruction mnemonic 'i32.const' | |
i32.const 42 | |
^~~~~~~~~ | |
evil.s:18:3: error: invalid instruction mnemonic 'return' | |
return | |
^~~~~~ | |
evil.s:19:1: error: invalid instruction mnemonic 'end_if' | |
end_if | |
^~~~~~ | |
evil.s:20:1: error: invalid instruction mnemonic 'end_function' | |
end_function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment