tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

Issue Compiling #195

Closed aperotte closed 5 years ago

aperotte commented 5 years ago

Hi, I am not able to compile dale on my Ubuntu system. Do you have a sense of what might be the issue? Here are the configuration details:

-- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done fatal: not a git repository (or any of the parent directories): .git -- LLVM version: 6.0.0 -- LLVM version major: 6 -- LLVM version minor: 0 -- System name: Linux -- System processor: x86_64 -- System version: 4.15.0-32-generic -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for one of the modules 'libffi' -- Build type: RELEASE -- Configuring done -- Generating done

And here is the error:

dalec: /usr/lib/llvm-6.0/include/llvm/Support/Casting.h:106: static bool llvm::isa_impl_cl<To, const From>::doit(const From) [with To = llvm::PointerType; From = llvm::Type]: Assertion `Val && "isa<> used on a null pointer"' failed.

aperotte commented 5 years ago

As an update, I don't get this compilation error if I downgrade to llvm 4.0.1. I get a different error when compiling against llvm 5.

tomhrr commented 5 years ago

Thanks for this. I can replicate the error on Debian with GCC 7.3 and LLVM 6.0.1, but no fix as yet (still working on it).

tomhrr commented 5 years ago

This should be fine now (as at https://github.com/tomhrr/dale/commit/c866080de853c7ee5de41a00eb661094d2a10363).

aperotte commented 5 years ago

I tested it with LLVM 6.0.0 again and all is well. Thanks.