Terence Parr

Results 554 comments of Terence Parr

Wow. Is this really the right command? Seems very repetitive: ``` swift build -c release -Xswiftc -I/Users/parrt/antlr/code/antlr4/runtime/Swift/.build/release -Xlinker -L/Users/parrt/antlr/code/antlr4/runtime/Swift/.build/release -Xlinker -lAntlr4 -Xlinker -rpath -Xlinker /Users/parrt/antlr/code/antlr4/runtime/Swift/.build/release ``` Anyway from a test...

There's definitely something wrong with the way we are running test because they refer to .build in runtime/Swift but the build directories actually up at the root.

@nesevis any chance you could figure out what's the right command line option should be to run the tests? The relevant file is `runtime-testsuite/test/org/antlr/v4/test/runtime/swift/SwiftRunner.java`

After moving the file back to the root position: ``` beast:/var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/SwiftRunner-ForkJoinPool-1-worker-3-1668971122442 $ swift build -c release -Xswiftc -I/Users/parrt/antlr/code/antlr4/.build/release -Xlinker -L/Users/parrt/antlr/code/antlr4/.build/release -Xlinker -lAntlr4 -Xlinker -rpath -Xlinker /Users/parrt/antlr/code/antlr4/.build/release Building for production... /private/var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/SwiftRunner-ForkJoinPool-1-worker-3-1668971122442/MParser.swift:168:19:...

ok, i'm giving up... Hopefully somebody else can fix this.

ah. a clue. When I run from intellij, @KvanTTT, the build is for x86 despite being on an M1 mac: ``` /Users/parrt/antlr/code/antlr4/.build/release@ -> x86_64-apple-macosx/release ``` when I build with plain...

ah! My java was x86. damn. ok, so now it is building arm64 properly in .build. :) still getting the same error is however ``` Building for production... remark: Incremental...

``` org.opentest4j.AssertionFailedError: Test: LRWithLabels; State: Compile; java.lang.Exception: command "swift build -c release -Xswiftc -I/Users/parrt/antlr/code/antlr4/.build/release -Xlinker -L/Users/parrt/antlr/code/antlr4/.build/release -Xlinker -lAntlr4 -Xlinker -rpath -Xlinker /Users/parrt/antlr/code/antlr4/.build/release" in /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/SwiftRunner-ForkJoinPool-1-worker-23-1669064769634 failed Cause: java.lang.InterruptedException: Exit code 1...

This should be simple: `ld: library not found for -lAntlr4` must be just an -I or -L issue right?