Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
This is fixed for me now, the test is properly quoted because the shell variable may not exist (one test done conditionally inside another test).
Thanks for catching this error.
Confirmed here with sundials 3.1.2. The syntax error shows in the configure output. However the results are correct for me. With sundials 3.x it is supposed to fail to include sunlinsol_klu.h even though the file exists.
So the only issue here is silencing the "test: =: unary operator expected" message, not changing any behavior.
I built sundials (4.1.0 now) with -DKLU_INCLUDE_DIR=install_prefix/include/suitesparse
The suitesparse part does not propagate to the sunlinsol_klu header, so klu.h is not found. I replaced <klu.h> with <suitesparse/klu.h> after installation in the installed sunlinsol_klu.h, and then the build configures and compiles successfully.
Without that edit I get the "unary operator expected" error from the configure script.
It doesn't find sunlinsol/sunlinsol_klu.h because of this
configure:76957: checking sunlinsol/sunlinsol_klu.h usability configure:76957: gcc -std=gnu11 -c -O2 -pthread -fopenmp -DQT_NO_DEBUG=1 -I/home/dusk/aburgers/x86_64/include conftest.c >&5 In file included from conftest.c:599:0: /home/dusk/aburgers/x86_64/include/sunlinsol/sunlinsol_klu.h:46:17: fatal error: klu.h: No such file or directory #include "klu.h"
my klu.h, or at least a klu.h, dwells in include/suitesparse/klu.h
I was still at sundials 2.7.1, but dev would not build anymore with https://savannah.gnu.org/bugs/?55911. I upgraded sundials to 3.2.1, and now I can build again, however there are some issues.
checking for sunlinsol/sunlinsol_dense.h... yes checking whether SUNDIALS IDA includes the SUNLINSOL_DENSE linear solver... yes checking sunlinsol/sunlinsol_klu.h usability... no checking sunlinsol/sunlinsol_klu.h presence... no checking for sunlinsol/sunlinsol_klu.h... no ../octave/configure: line 77091: test: =: unary operator expected configure: WARNING: SUNDIALS IDA library not configured with SUNLINSOL_KLU or sunlinksol_klu.h is not usable; ode15i and ode15s will not support the sparse Jacobian feature
line 77091 in the configure is the first line of this piece of configure code:
if test $octave_cv_sundials_sunlinsol_klu = yes \ && test "x$ac_cv_header_sunlinsol_sunlinsol_klu_h" = xyes; then $as_echo "#define HAVE_SUNDIALS_SUNLINSOL_KLU 1" >>confdefs.h else warn_sundials_sunlinsol_klu="SUNDIALS IDA library not configured with SUNLINSOL_KLU or sunlinksol_klu.h is not usable; ode15i and ode15s will not support the sparse Jacobian feature" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $warn_sundials_sunlinsol_klu" >&5 $as_echo "$as_me: WARNING: $warn_sundials_sunlinsol_klu" >&2;} fi
I don't understand yet why it doesn't detect the sunlinsol_klu stuff since I have in my installation dir:
./include/sunlinsol/sunlinsol_klu.h ./lib/libsundials_sunlinsolklu.so ./lib/libsundials_sunlinsolklu.so.1 ./lib/libsundials_sunlinsolklu.so.1.2.1
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 6 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9