Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos x86_64 11.7.10 build failed #246

Open
Angluca opened this issue Apr 25, 2024 · 3 comments
Open

macos x86_64 11.7.10 build failed #246

Angluca opened this issue Apr 25, 2024 · 3 comments

Comments

@Angluca
Copy link

Angluca commented Apr 25, 2024

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
@Angluca Angluca closed this as completed Apr 26, 2024
@Angluca Angluca reopened this Apr 26, 2024
@Angluca Angluca changed the title macos x86_64 11.7.10 build error macos x86_64 11.7.10 build failed Apr 26, 2024
@titzer
Copy link
Owner

titzer commented Apr 26, 2024

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
Copy link
Author

Angluca commented Apr 26, 2024

/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
Copy link
Author

Angluca commented Apr 27, 2024

/```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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants