titzer / virgil

A fast and lightweight native programming language
1.13k stars 40 forks source link

macos x86_64 11.7.10 build failed #246

Open Angluca opened 2 months ago

Angluca commented 2 months ago
virgil % make
bin/dev/aeneas bootstrap
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Compiling (/Users/xxx/SDK/Virgils/virgil/bin/bootstrap -> x86-64-darwin//Aeneas)...
bin/dev/aeneas: line 111: /Users/xxx/SDK/Virgils/virgil/bin/v3c-: No such file or directory
ls: x86-64-darwin//Aeneas*: No such file or directory
Compiling (/Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas -> /Users/xxx/SDK/Virgils/virgil/bin/current/x86-64-darwin/Aeneas)...
/Users/xxx/SDK/Virgils/virgil/bin/v3c-x86-64-darwin: line 7: /Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas: No such file or directory
/Users/xxx/SDK/Virgils/virgil/bin/v3c-x86-64-darwin: line 7: exec: /Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas: cannot execute: No such file or directory
ls: /Users/xxx/SDK/Virgils/virgil/bin/current/x86-64-darwin/Aeneas*: No such file or directory
Compiling (/Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas -> /Users/xxx/SDK/Virgils/virgil/bin/current/jar/Aeneas)...
/Users/xxx/SDK/Virgils/virgil/bin/v3c-jar: line 6: /Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas: No such file or directory
/Users/xxx/SDK/Virgils/virgil/bin/v3c-jar: line 6: exec: /Users/xxx/SDK/Virgils/virgil/bin/bootstrap/x86-64-darwin/Aeneas: cannot execute: No such file or directory
ls: /Users/xxx/SDK/Virgils/virgil/bin/current/jar/Aeneas*: No such file or directory
(cd apps/vctags && v3c-host -output=../../bin/utils/ *.v3 `cat DEPS`)
(cd apps/Progress && v3c-host -program-name=progress -output=../../bin/utils/ *.v3 `cat DEPS`)
(cd apps/NumUtil && v3c-host -program-name=nu -output=../../bin/utils/ *.v3 `cat DEPS`)
bin/dev/aeneas tags
titzer commented 2 months ago

Hmm, looks like a problem with the readlink utility, which is used by several shell scripts to figure out the director in which they reside. Do you have an alias for readlink or is this the behavior you get when you run it directly on the command line?

Angluca commented 2 months ago

/usr/bin/readlink The system itself has this file, It haven't -f and ./virgil/bin/v3c-: No such file... Incomplete display of file names v3c- Maybe bug looks like at aeneas/src/Compiler.v3: 163, I'm newbie, don't know is that so.

Angluca commented 2 months ago

/```zsh Testing wasi v3i g
wasi_environ_get01.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_environ_get01.wasm.out.diff wasi_environ_get02.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_environ_get02.wasm.out.diff wasi_environ_sizes_get00.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_environ_sizes_get00.wasm.exit.diff wasi_environ_sizes_get01.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_environ_sizes_get01.wasm.exit.diff wasi_fd_write00.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_fd_write00.wasm.out.diff wasi_flag_dir00.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_flag_dir00.wasm.out.diff wasi_flag_env00.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_flag_env00.wasm.out.diff wasi_flag_env01.wasm: fail: /tmp/Ac/wizeng-test/wasi/v3i///wasi_flag_env01.wasm.out.diff 4 of 12 passed 8 failed

test all have ```///```,  this sh use readlink too, macos terminal default is zsh 
```sh
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
  DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"

have ext/tail-call, ext/gc but echo ext:tail-call, ext:gc

test/regress/ext:tail-call/rcall2.bin.wast: unterminated test case
  0 of 615 passed 3 failed | test/regress/ext:exception-handling/throw0.bin.wast!NullCheckException

test/regress/ext:exception-handling/throw0.bin.wast: unterminated test case
  0 of 665 passed 4 failed | test/regress/ext:multi-memory/address0.bin.wast!NullCheckExc
/eption

test/regress/ext:multi-memory/address0.bin.wast: unterminated test case
  0 of 677 passed 5 failed | test/regress/ext:gc/array_new_fixed.bin.wast!NullCheckException
    in evalOp() [aeneas/src/core/Eval.v3 @ 783:55]
    in Operator.evaluate() [aeneas/src/core/Operator.v3 @ 58:33]
    in IcInterpreter.evalOp() [aeneas/src/ic/Ic.v3 @ 713:35]
    in IcInterpreter.execute() [aeneas/src/ic/Ic.v3 @ 505:61]
    in IcInterpreter.run() [aeneas/src/ic/Ic.v3 @ 337:58]
    in IcInterpreter.invoke() [aeneas/src/ic/Ic.v3 @ 295:20]
    in Compilation.runMain() [aeneas/src/main/Compiler.v3 @ 254:31]
    in Aeneas.compileAndRun() [aeneas/src/main/Aeneas.v3 @ 98:49]
    in Aeneas.main() [aeneas/src/main/Aeneas.v3 @ 23:62]