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

Running test case gives 'no such file' for tester #178

Closed
quanglewangle opened this issue Jul 18, 2020 · 4 comments
Closed

Running test case gives 'no such file' for tester #178

quanglewangle opened this issue Jul 18, 2020 · 4 comments

Comments

@quanglewangle
Copy link
Collaborator

Attempting to do

Running a test case

from file ghul/test/README.md in Visual studio with Tasks: Run Task Run Test

give error:
fixuid: exec: "../tester/tester": stat ../tester/tester: no such file or directory

FYI test case was simple-if

@degory
Copy link
Owner

degory commented Jul 18, 2020

You need to build the tester project separately first:
Either:

  • open the tester folder in VSCode as a folder workspace + then <Ctrl>+<Shift>+B to build it, or
  • cd into the tester folder from a bash shell and run ./build.sh

Let me know if that fixes it

@quanglewangle
Copy link
Collaborator Author

Tried second bullet point. Got error as below

peter@code:~/ghul/tester$ ./build.sh
lcache-test
Building with /usr/bin/ghul (ghūl stable-github-170333714)...
Error opening output file '/tmp/lcache/N2IO4STATE.s'
*** fatal error ***
System.Exception: bitcode compilation of file /tmp/lcache/N2IO4STATE.bc failed with exit status 1
/usr/bin/lc(Parse::CompileState::compileBitcode(System::String)+0x167) [0x5ec667]
/usr/bin/lc(Parse::CompileState::writeOrAssembleBitcode(LLVM::Module, System::String)+0x4b) [0x5ec78b]
/usr/bin/lc(Parse::CompileState::writeOrAssembleBitcode(Parse::Container)+0x58) [0x5ec728]
/usr/bin/lc(Parse::ClassDef::compile2(Parse::CompileState, Parse::Container)+0x866) [0x50ece6]
/usr/bin/lc(Parse::CompileClass::process()+0x1d) [0x5a884d]
/usr/bin/lc(Parse::ProcessPool::submit(Util::Work)+0x49) [0x5d4039]
/usr/bin/lc(Parse::CompileState::submit(Util::Work)+0x8c) [0x5e866c]
/usr/bin/lc(Parse::ClassDef::compile(Parse::CompileState, Parse::Container)+0x40) [0x50d940]
/usr/bin/lc(Parse::ClassDef::compile(Parse::CompileState)+0x27) [0x50c647]
/usr/bin/lc(Parse::BlockStatement::compile(Parse::CompileState)+0x88) [0x57ab98]
/usr/bin/lc(Parse::NameSpace::compile(Parse::CompileState)+0x5e) [0x552e2e]
/usr/bin/lc(Parse::BlockStatement::compile(Parse::CompileState)+0x88) [0x57ab98]
/usr/bin/lc(Parse::Package::compile2(Parse::CompileState)+0x7a) [0x5f61ca]
/usr/bin/lc(Parse::CompileState::compilePending()+0x647) [0x5ea697]
/usr/bin/lc(Parse::Compiler::run2(System::String [])+0x137b) [0x51eb1b]
/usr/bin/lc(Parse::Main::init()+0x43) [0x516743]

/usr/bin/lc(Parse::CompileState::compileBitcode(System::String)+0x167) [0x5ec667]
/usr/bin/lc(Parse::CompileState::writeOrAssembleBitcode(LLVM::Module, System::String)+0x4b) [0x5ec78b]
/usr/bin/lc(Parse::CompileState::writeOrAssembleBitcode(Parse::Container)+0x58) [0x5ec728]
/usr/bin/lc(Parse::ClassDef::compile2(Parse::CompileState, Parse::Container)+0x866) [0x50ece6]
/usr/bin/lc(Parse::CompileClass::process()+0x1d) [0x5a884d]
/usr/bin/lc(Parse::ProcessPool::submit(Util::Work)+0x49) [0x5d4039]
/usr/bin/lc(Parse::CompileState::submit(Util::Work)+0x8c) [0x5e866c]
/usr/bin/lc(Parse::ClassDef::compile(Parse::CompileState, Parse::Container)+0x40) [0x50d940]
/usr/bin/lc(Parse::ClassDef::compile(Parse::CompileState)+0x27) [0x50c647]
/usr/bin/lc(Parse::BlockStatement::compile(Parse::CompileState)+0x88) [0x57ab98]
/usr/bin/lc(Parse::NameSpace::compile(Parse::CompileState)+0x5e) [0x552e2e]
/usr/bin/lc(Parse::BlockStatement::compile(Parse::CompileState)+0x88) [0x57ab98]
/usr/bin/lc(Parse::Package::compile2(Parse::CompileState)+0x7a) [0x5f61ca]
/usr/bin/lc(Parse::CompileState::compilePending()+0x647) [0x5ea697]
/usr/bin/lc(Parse::Compiler::run2(System::String [])+0x137b) [0x51eb1b]
/usr/bin/lc(Parse::Main::init()+0x43) [0x516743]

@degory
Copy link
Owner

degory commented Jul 18, 2020

It's because the Docker volume used to hold temporary files is owned by me I think. I've changed the build script in your workspace to include the user's UID in the volume name. Can you confirm if this fixes, and if so, raise a PR to check this change in?

@quanglewangle
Copy link
Collaborator Author

Fixed by using anonymous volumes docked in build.sh

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