kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
843 stars 36 forks source link

make ends on 'error 2' #1387

Closed dchmelik closed 1 year ago

dchmelik commented 2 years ago

1. Steps to reproduce the problem.

I think the bug happens when make has an error unspecified other than '2'.

2. Which version of Radium are you using? Do you know if an earlier version has worked?

20220802_80aa88d. I've never been able to finish compiling any version (tried latest stable, for which something else happens) but want to (and will consider submitting/suggesting SlackBuild to SlackBuilds.org for automated Slackware GNU/Linux package building & installation).

3. If relevant, which operating system did you run Radium on?

Slackware64 15+current GNU/Linux (can possibly test on 15-stable).

akimaze commented 2 years ago

I don't know you get the same error but after I update to Linux Mint 21 (distro based on ubuntu 22.04 LTS) I have to remove line 45 (#define fsqrt sqrt) from file fiddle~.c from archive libpd-master.tar.gz (this archive is uncompressed and compiled when you run make packages) to get packages compiled.

dchmelik commented 2 years ago

I get similar error as in my original report: make error log gist. When I redirected outout to the TXT apparently some didn't go there rather than stderr, below.

[ 21%] Building CXX object CMakeFiles/faust.dir/home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp.o
/usr/bin/g++ -DCPP_BUILD -DFAUST_SELF_CONTAINED_LIB -DLIBDIR=\"lib\" -DLLVM_140 -DLLVM_BUILD -DLLVM_VERSION=\"14.0.6\" -I/home/d/math/src/audio/radium/bin/packages/faust/compiler -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/boxes -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/documentator -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/draw -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/errors -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/evaluate -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/extended -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/dlang -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/csharp -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/fir -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/julia -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/interpreter -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/rust -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/soul -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/normalize -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/parallelize -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/parser -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/patternmatcher -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/propagate -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/signals -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/tlib -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/transform -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/utils -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/draw/device -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/draw/schema -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/../architecture -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/cpp -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm -I/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/c -mtune=generic -msse2 -mfpmath=sse -fPIC -fno-strict-aliasing -fmax-errors=5 -I/home/kjetil/site_clang10/include -O3 -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-overloaded-virtual -std=gnu++14 -MD -MT CMakeFiles/faust.dir/home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp.o -MF CMakeFiles/faust.dir/home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp.o.d -o CMakeFiles/faust.dir/home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp.o -c /home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp
In file included from /home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_code_container.hh:26,
                 from /home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp:105:
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh: In member function ‘llvm::Value* LLVMInstVisitor::loadStructArrayVarAddress(const std::string&)’:
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:295:43: error: no matching function for call to ‘llvm::IRBuilder<>::CreateInBoundsGEP(llvm::Value*, llvm::ArrayRef<llvm::Value*>)’
  295 |         return fBuilder->CreateInBoundsGEP(loadFunArg("dsp"), MakeIdx(idx, idx + 2));
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:43:
/usr/include/llvm/IR/IRBuilder.h:1742:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&)’
 1742 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note:   candidate expects 4 arguments, 2 provided
/usr/include/llvm/IR/IRBuilder.h:1755:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::Value*, const llvm::Twine&)’
 1755 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, Value *Idx,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1755:10: note:   candidate expects 4 arguments, 2 provided
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh: In member function ‘llvm::Value* LLVMInstVisitor::loadArrayAsPointer(llvm::Value*, bool)’:
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:302:47: error: no matching function for call to ‘llvm::IRBuilder<>::CreateInBoundsGEP(llvm::Value*&, llvm::ArrayRef<llvm::Value*>)’
  302 |             return fBuilder->CreateInBoundsGEP(variable, MakeIdx(idx, idx + 2));
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&)’
 1742 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note:   candidate expects 4 arguments, 2 provided
/usr/include/llvm/IR/IRBuilder.h:1755:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::Value*, const llvm::Twine&)’
 1755 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, Value *Idx,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1755:10: note:   candidate expects 4 arguments, 2 provided
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:304:40: error: no matching function for call to ‘llvm::IRBuilder<>::CreateLoad(llvm::Value*&, bool&)’
  304 |             return fBuilder->CreateLoad(variable, is_volatile);
      |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1659:13: note: candidate: ‘llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Type*, llvm::Value*, const char*)’
 1659 |   LoadInst *CreateLoad(Type *Ty, Value *Ptr, const char *Name) {
      |             ^~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1659:13: note:   candidate expects 3 arguments, 2 provided
/usr/include/llvm/IR/IRBuilder.h:1663:13: note: candidate: ‘llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Type*, llvm::Value*, const llvm::Twine&)’
 1663 |   LoadInst *CreateLoad(Type *Ty, Value *Ptr, const Twine &Name = "") {
      |             ^~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1663:30: note:   no known conversion for argument 1 from ‘llvm::Value*’ to ‘llvm::Type*’
 1663 |   LoadInst *CreateLoad(Type *Ty, Value *Ptr, const Twine &Name = "") {
      |                        ~~~~~~^~
/usr/include/llvm/IR/IRBuilder.h:1667:13: note: candidate: ‘llvm::LoadInst* llvm::IRBuilderBase::CreateLoad(llvm::Type*, llvm::Value*, bool, const llvm::Twine&)’
 1667 |   LoadInst *CreateLoad(Type *Ty, Value *Ptr, bool isVolatile,
      |             ^~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1667:13: note:   candidate expects 4 arguments, 2 provided
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh: In member function ‘llvm::Value* LLVMInstVisitor::visitIndexedAddressAux(IndexedAddress*)’:
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:604:47: error: no matching function for call to ‘llvm::IRBuilder<>::CreateInBoundsGEP(llvm::Value*&, llvm::ArrayRef<llvm::Value*>)’
  604 |             return fBuilder->CreateInBoundsGEP(load_ptr, MakeIdx(idx, idx + 2));
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&)’
 1742 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note:   candidate expects 4 arguments, 2 provided
/usr/include/llvm/IR/IRBuilder.h:1755:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::Value*, const llvm::Twine&)’
 1755 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, Value *Idx,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1755:10: note:   candidate expects 4 arguments, 2 provided
/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:606:47: error: no matching function for call to ‘llvm::IRBuilder<>::CreateInBoundsGEP(llvm::Value*&, llvm::Value*&)’
  606 |             return fBuilder->CreateInBoundsGEP(load_ptr, fCurValue);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&)’
 1742 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1742:10: note:   candidate expects 4 arguments, 2 provided
/usr/include/llvm/IR/IRBuilder.h:1755:10: note: candidate: ‘llvm::Value* llvm::IRBuilderBase::CreateInBoundsGEP(llvm::Type*, llvm::Value*, llvm::Value*, const llvm::Twine&)’
 1755 |   Value *CreateInBoundsGEP(Type *Ty, Value *Ptr, Value *Idx,
      |          ^~~~~~~~~~~~~~~~~
/usr/include/llvm/IR/IRBuilder.h:1755:10: note:   candidate expects 4 arguments, 2 provided
compilation terminated due to -fmax-errors=5.
gmake[5]: *** [CMakeFiles/faust.dir/build.make:986: CMakeFiles/faust.dir/home/d/math/src/audio/radium/bin/packages/faust/compiler/libcode.cpp.o] Error 1
gmake[5]: Leaving directory '/home/d/math/src/audio/radium/bin/packages/faust/build/faustdir'
gmake[4]: *** [CMakeFiles/Makefile2:156: CMakeFiles/faust.dir/all] Error 2
gmake[4]: Leaving directory '/home/d/math/src/audio/radium/bin/packages/faust/build/faustdir'
gmake[3]: *** [Makefile:156: all] Error 2
gmake[3]: Leaving directory '/home/d/math/src/audio/radium/bin/packages/faust/build/faustdir'
make[2]: *** [Makefile:78: all] Error 2
make[2]: Leaving directory '/home/d/math/src/audio/radium/bin/packages/faust/build'
make[1]: *** [Makefile:33: most] Error 2
make[1]: Leaving directory '/home/d/math/src/audio/radium/bin/packages/faust'
make: *** [Makefile:847: bin/packages/deletemetorebuild] Error 2
akimaze commented 2 years ago

@dchmelik @kmatheussen I think faust in radium have to be updated to compile with LLVM > 13. For example this error:

/home/d/math/src/audio/radium/bin/packages/faust/compiler/generator/llvm/llvm_instructions.hh:604:47: error: no matching function for call to ‘llvm::IRBuilder<>::CreateInBoundsGEP(llvm::Value*&, llvm::ArrayRef<llvm::Value*>)’ 604 | return fBuilder->CreateInBoundsGEP(load_ptr, MakeIdx(idx, idx + 2));

In radium faust this function looks like:

 LLVMValue visitIndexedAddressAux(IndexedAddress* indexed_address)
    {
        NamedAddress* named_address = dynamic_cast<NamedAddress*>(indexed_address->fAddress);
        faustassert(named_address);  // One level indexation for now

        // Compute index, result is in fCurValue
        indexed_address->fIndex->accept(this);
        Address::AccessType access = named_address->fAccess;
        string              name   = named_address->fName;
        LLVMValue           load_ptr;

        if (access & Address::kStruct) {
            load_ptr = loadArrayAsPointer(loadStructArrayVarAddress(name));
        } else if (access & Address::kFunArgs) {
            load_ptr = loadFunArg(name);
        } else if (access & Address::kStack || access & Address::kLoop) {
            // We want to see array like [256 x float] as a float*
            load_ptr = loadArrayAsPointer(fStackVars[name]);
        } else if (access & Address::kGlobal || access & Address::kStaticStruct) {
            // We want to see array like [256 x float] as a float*
            load_ptr = loadArrayAsPointer(fModule->getGlobalVariable(name, true));
        } else {
            faustassert(false);
            return nullptr;
        }

        // Indexed adresses can actually be values in an array or fields in a struct type
        if (isStructType(indexed_address->getName())) {
            LLVMValue idx[] = {genInt32(0), fCurValue};
            return fBuilder->CreateInBoundsGEP(load_ptr, MakeIdx(idx, idx + 2));
        } else {
            return fBuilder->CreateInBoundsGEP(load_ptr, fCurValue);
        }
    }

In current faust master there is llvm 14 support:

LLVMValue visitIndexedAddressAux(IndexedAddress* indexed_address)
    {
        NamedAddress* named_address = dynamic_cast<NamedAddress*>(indexed_address->fAddress);
        faustassert(named_address);  // One level indexation for now

        // Compute index, result is in fCurValue
        indexed_address->getIndex()->accept(this);
        Address::AccessType access = named_address->fAccess;
        string              name   = named_address->fName;
        LLVMValue           load_ptr;

        if (access & Address::kStruct) {
            load_ptr = loadArrayAsPointer(loadStructArrayVarAddress(name));
        } else if (access & Address::kFunArgs) {
            load_ptr = loadFunArg(name);
        } else if (access & Address::kStack || access & Address::kLoop) {
            // We want to see array like [256 x float] as a float*
            load_ptr = loadArrayAsPointer(fStackVars[name]);
        } else if (access & Address::kGlobal || access & Address::kStaticStruct) {
            // We want to see array like [256 x float] as a float*
            load_ptr = loadArrayAsPointer(fModule->getGlobalVariable(name, true));
        } else {
            faustassert(false);
            return nullptr;
        }

        // Indexed adresses can actually be values in an array or fields in a struct type
        if (isStructType(indexed_address->getName())) {
            LLVMValue idx[] = {genInt32(0), fCurValue};
        #if LLVM_VERSION_MAJOR >= 14
            return fBuilder->CreateInBoundsGEP(GetType(load_ptr), load_ptr, MakeIdx(idx, idx + 2));
        #else
            return fBuilder->CreateInBoundsGEP(load_ptr, MakeIdx(idx, idx + 2));
        #endif
        } else {
        #if LLVM_VERSION_MAJOR >= 14
            return fBuilder->CreateInBoundsGEP(GetType(load_ptr), load_ptr, fCurValue);
        #else
            return fBuilder->CreateInBoundsGEP(load_ptr, fCurValue);
        #endif
        }
    }

https://github.com/grame-cncm/faust/blob/master-dev/compiler/generator/llvm/llvm_instructions.hh#L561

dchmelik commented 2 years ago

Alright... well, previously you told me on my GNU/Linux OS distribution (distro) because it's Slackware-current (almost rolling-release) the LLVM is too new for radium or some other dependency... but now I need it for this dependency? I have no idea what to do then! If I could build it I'd likely make the radium.Slackbuild set for SlackBuilds.org so any Slackware use can install & try it and buy it if they like...

kmatheussen commented 2 years ago

Yes, you can't use LLVM 14. But Faust should not be compiled with LLVM when you run

export INCLUDE_FAUSTDEV_BUT_NOT_LLVM=jadda

first, so I don't know what's wrong here.

In your recipe, right before running "make packages", can you post the output of "env |grep LLVM" ? If INCLUDE_FAUSTDEV_BUT_NOT_LLVM is not listed, that's probably the reason the compilation fails.

On Mon, Aug 29, 2022 at 12:03 PM David Chmelik @.***> wrote:

Alright... well, previously you told me on my GNU/Linux OS distribution (distro) because it's Slackware-current (almost rolling-release) the LLVM is too new for radium or some other dependency... but now I need it for this dependency? I have no idea what to do then! If I could build it I'd likely make the radium.Slackbuild set for SlackBuilds.org so any Slackware use can install & try it and buy it if they like...

— Reply to this email directly, view it on GitHub https://github.com/kmatheussen/radium/issues/1387#issuecomment-1230073005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIX3JYIORC4MAM3JMQ5WWDV3SDIDANCNFSM56GR4OZA . You are receiving this because you were mentioned.Message ID: @.***>

dchmelik commented 2 years ago

This is what I've been doing some weeks (now with addition of echo of environment after I watched it happen) and will upload recent error log shortly.

#!/bin/sh
cd radium
make very_clean
export INCLUDE_FAUSTDEV_BUT_NOT_LLVM=jadda
export RADIUM_QT_VERSION=5
export QT_QPA_PLATFORM_PLUGIN_PATH=`$(./find_moc_and_uic_paths.sh qmake) -query QT_INSTALL_PLUGINS`
echo "env: $(env|grep LLVM)"
make packages

Make error log gist.

kmatheussen commented 2 years ago

Can you also show the content of bin/packages/faust/build/backends/most.cmake ?

It should look like this:

@.***:~/radium/bin/packages/faust/build$ more backends/most.cmake

most.cmake : this file selects most backends but not the interpreter

because

it is difficult to compile on Windows.

Possible configuration values are among:

OFF don't include the backend

COMPILER embed the backend in the faust compiler

STATIC embed the backend in the faust static library

DYNAMIC embed the backend in the faust dynamic library

WASM embed the backend in the faust wasm library

set ( C_BACKEND OFF CACHE STRING "Include C backend" FORCE ) set ( CPP_BACKEND COMPILER STATIC CACHE STRING "Include CPP backend" FORCE ) set ( FIR_BACKEND OFF CACHE STRING "Include FIR backend" FORCE ) set ( INTERP_BACKEND STATIC CACHE STRING "Include INTERPRETER backend" FORCE ) set ( JAVA_BACKEND OFF CACHE STRING "Include JAVA backend" FORCE ) set ( LLVM_BACKEND OFF CACHE STRING "Include LLVM backend" FORCE ) set ( OLDCPP_BACKEND OFF CACHE STRING "Include old CPP backend" FORCE ) set ( RUST_BACKEND OFF CACHE STRING "Include RUST backend" FORCE ) set ( SOUL_BACKEND OFF CACHE STRING "Include SOUL backend" FORCE ) set ( WASM_BACKEND OFF CACHE STRING "Include WASM backend" FORCE ) set ( DLANG_BACKEND OFF CACHE STRING "Include DLANG backend" FORCE )

On Mon, Aug 29, 2022 at 3:12 PM David Chmelik @.***> wrote:

This is what I've been doing some weeks and will upload recent error log shortly.

!/bin/sh

cd radium make very_clean export INCLUDE_FAUSTDEV_BUT_NOT_LLVM=jadda export RADIUM_QT_VERSION=5 export QT_QPA_PLATFORM_PLUGIN_PATH=$(./find_moc_and_uic_paths.sh qmake) -query QT_INSTALL_PLUGINS echo "env: $(env|grep LLVM)" make packages

— Reply to this email directly, view it on GitHub https://github.com/kmatheussen/radium/issues/1387#issuecomment-1230277830, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIX3JYZGFXTLWQ2J4SZPZLV3SZKFANCNFSM56GR4OZA . You are receiving this because you were mentioned.Message ID: @.***>

dchmelik commented 2 years ago
# most.cmake [...]
set ( C_BACKEND      OFF                            CACHE STRING  "Include C backend"         FORCE )
set ( CPP_BACKEND    COMPILER STATIC                CACHE STRING  "Include CPP backend"       FORCE )
set ( CSHARP_BACKEND OFF        CACHE STRING  "Include CSharp backend"    FORCE )
set ( DLANG_BACKEND  OFF        CACHE STRING  "Include DLANG backend"     FORCE )
set ( FIR_BACKEND    OFF                            CACHE STRING  "Include FIR backend"       FORCE )
set ( INTERP_BACKEND STATIC                         CACHE STRING  "Include INTERPRETER backend" FORCE )
set ( JAVA_BACKEND   OFF             CACHE STRING  "Include JAVA backend"      FORCE )
set ( JULIA_BACKEND  OFF       CACHE STRING  "Include Julia backend"      FORCE )
#set ( LLVM_BACKEND   COMPILER STATIC CACHE STRING  "Include LLVM backend"      FORCE )
set ( LLVM_BACKEND   OFF CACHE STRING  "Include LLVM backend"      FORCE )
set ( OLDCPP_BACKEND OFF             CACHE STRING  "Include old CPP backend"   FORCE )
set ( RUST_BACKEND   OFF             CACHE STRING  "Include RUST backend"      FORCE )
set ( SOUL_BACKEND   OFF             CACHE STRING  "Include SOUL backend"      FORCE )
set ( WASM_BACKEND   OFF             CACHE STRING  "Include WASM backend"      FORCE )
kmatheussen commented 2 years ago

That seems correct. It doesn't make sense with this line from the build output you posted though: "-- Found LLVM 14.0.6" I don't know what's wrong. Perhaps you could force it not to find llvm by temporarily renaming your llvm-config file or something.

On Tue, Aug 30, 2022 at 12:10 PM David Chmelik @.***> wrote:

most.cmake [...]

set ( C_BACKEND OFF CACHE STRING "Include C backend" FORCE ) set ( CPP_BACKEND COMPILER STATIC CACHE STRING "Include CPP backend" FORCE ) set ( CSHARP_BACKEND OFF CACHE STRING "Include CSharp backend" FORCE ) set ( DLANG_BACKEND OFF CACHE STRING "Include DLANG backend" FORCE ) set ( FIR_BACKEND OFF CACHE STRING "Include FIR backend" FORCE ) set ( INTERP_BACKEND STATIC CACHE STRING "Include INTERPRETER backend" FORCE ) set ( JAVA_BACKEND OFF CACHE STRING "Include JAVA backend" FORCE ) set ( JULIA_BACKEND OFF CACHE STRING "Include Julia backend" FORCE )

set ( LLVM_BACKEND COMPILER STATIC CACHE STRING "Include LLVM backend" FORCE )

set ( LLVM_BACKEND OFF CACHE STRING "Include LLVM backend" FORCE ) set ( OLDCPP_BACKEND OFF CACHE STRING "Include old CPP backend" FORCE ) set ( RUST_BACKEND OFF CACHE STRING "Include RUST backend" FORCE ) set ( SOUL_BACKEND OFF CACHE STRING "Include SOUL backend" FORCE ) set ( WASM_BACKEND OFF CACHE STRING "Include WASM backend" FORCE )

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

dchmelik commented 2 years ago

"-- Found LLVM 14.0.6"

Doesn't seem to say that in build output a couple days ago (just last week... I guess forgot tp exclude it).

kmatheussen commented 1 year ago

Should compile with LLVM 15 now, so I close the issue.