Opened 5 years ago
Closed 4 years ago
#5722 closed defect (wontfix)
Compilation error: kinsol_sparse.h missing
Reported by: | anonymous | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | Installation program | Version: | |
Keywords: | Cc: |
Description
Sind I've not found packaged files for Debian Bullseye (testing) I'm trying to compile OM on this operating system.
When I run
git clone --recursive https://openmodelica.org/git-readonly/OpenModelica.git OpenModelica cd OpenModelica autoconf ./configure --prefix=/usr/local --disable-modelica3d make -j4
the compilation gets aborted due to the following error:
In file included from ./simulation/solver/kinsolSolver.c:70: <SOME-PATH>/OpenModelica/build/include/omc/c/sundials/kinsol/kinsol_klu.h:25:10: fatal error: kinsol/kinsol_sparse.h: No such file or directory 25 | #include "kinsol/kinsol_sparse.h" | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
The same error is described in a forum discussion: https://openmodelica.org/forum/default-topic/2576-error-when-building-from-source. There, it is mentioned to use clang
instead of gcc
as a possible workaround. I've tried changing CC=gcc
to CC=clang
and CXX=gcc++
to CXX=gclang++
in the makefiles but the error persists.
Am I doing something wrong or is this file really missing?
My OS is updated and has gcc 9.2.1 as well as clang 8.0.1-4
Attachments (3)
Change History (8)
follow-up: 2 comment:1 by , 5 years ago
comment:2 by , 5 years ago
I reran ./configure
as you wrote. Attached the trace
Replying to adrpo:
You don't edit the makefiles, you configure with
./configure CC=clang CXX=clang++
.
I suggest you do:
make -j4 > trace.txt 2>&1and then attach the trace here. I think your problem is with cmake detection of sparse solvers during compilation of sundials.
comment:3 by , 5 years ago
Thanks, but we need the build from scratch, you need to cleanup first. Can you do:
> make gitclean > autoconf > ./configure CC=clang CXX=clang++ -prefix=/usr/local --disable-modelica3d > trace-config.txt 2>&1 > make -j4 > trace.txt 2>&1 }} And then attach trace-config.txt and trace.txt.
by , 5 years ago
Attachment: | trace.2.txt added |
---|
by , 5 years ago
Attachment: | trace-config.txt added |
---|
comment:4 by , 5 years ago
That seems to solve the problem with kinsol. However, it still doesn't compile (Project ERROR: Unknown module(s) in QT: core gui printsupport concurrent svg
- perhaps a missing library or wrong path specification?). I'll try to fix it and will get back to you.
comment:5 by , 4 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing this issue because it is out of date. If it is still relevant please open a new ticket.
You don't edit the makefiles, you configure with
./configure CC=clang CXX=clang++
.I suggest you do:
and then attach the trace here. I think your problem is with cmake detection of sparse solvers during compilation of sundials.