dworkin / lpc-ext

Extension modules for Hydra and DGD
The Unlicense
9 stars 5 forks source link

'use of undefined value' with JIT #3

Closed november-kilo closed 4 years ago

november-kilo commented 4 years ago

I see an error message in the DGD console using latest from dgd and lpc-ext repositories (only JIT extension is used) and my cloud-server fork (also occurs in base cloud-server repository with the same changes) using my mac. The message appears only once with a new cache.

I'm unable to try on another computer for a while.

Procedure:

Files:

Compiler:

$ uname -s
Darwin
$ which cc
/usr/bin/cc
$ cc -v
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ which g++
/usr/bin/g++
$ g++ -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
dworkin commented 4 years ago

Haven't been able to reproduce it exactly yet, but another error popped up that could be caused by a JIT compiler problem.

It seems like you are using macOS 10.14 but with older Xcode?

dworkin commented 4 years ago

Reproduced on 10.13 with Xcode 10.1.

november-kilo commented 4 years ago

I'm using macOS version 10.14.6

I use the Xcode standalone command line developer tools. I removed them and installed with xcode-select --install. I get xcode-select version 2354, which is the same as before, and the same results after recompiling DGD and LPC-ext. Perhaps it doesn't install the correct command line tools for this mac.

I just now installed Xcode 11.3.1 but haven't figured out how to use it yet.

dworkin commented 4 years ago

I can reproduce it with Xcode 11.3.1 now.

dworkin commented 4 years ago

This is actually a DGD issue.

Duplicate of https://github.com/dworkin/dgd/issues/30