Le lundi 01 décembre 2025 à 18:46 +0100, Markus Muetzel a écrit :
> Am 30.11.2025 um 22:02 schrieb Sébastien Villemot:
> > Le mercredi 12 novembre 2025 à 10:55 +0100, Markus Muetzel a écrit :
> > > Am 10.11.2025 um 14:13 schrieb Sébastien Villemot:
> > > > Le lundi 10 novembre 2025 à 12:22 +0100, BERENGUIER Baptiste a écrit :
> > > > >   
> > > > > I am using debian trixie with the official package for octave.
> > > > >   
> > > > > I try to port a matlab code using ode15s and encounter this error:
> > > > >   
> > > > > error: __ode15__: support for sundials_ida, sundials_nvecserial was 
> > > > > unavailable or disabled when Octave was built
> > > > >   
> > > > > error: called from
> > > > >   
> > > > >      ode15s at line 324 column 22
> > > > >   
> > > > > Should I do a bug report?
> > > >   
> > > >    This is a known issue, see 
> > > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082580
> > > >    Unfortunately there is no fix yet. And it is unlikely it will ever 
> > > > be fixed in trixie.
> > >   
> > > I posted a potential fix/workaround on Octave's discourse forum:
> > >   
> > > Improving MPI detection - maintainers - GNU Octave
> > >   
> > > Could that patch be used to enable these functions in Debian Trixie?
> > >   You'd need to regenerate the configure script after applying that 
> > > change. Something like "autoreconf -fi" should do that.
> > Thanks for suggesting this workaround, and sorry for my late reply.
> > 
> > I’ve tried to rebuild the octave in Debian unstable, using your
> > proposed patch.
> > 
> > Sundials is correctly detected at the configure step, but then I get
> > the following compilation error:
> > 
> > libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Iliboctave -I./liboctave 
> > -I./liboctave/array -Iliboctave/numeric -I./liboctave/numeric 
> > -Iliboctave/operators -I./liboctave/operators -I./liboctave/system 
> > -I./liboctave/util -I./libinterp/octave-value -Ilibinterp -I./libinterp 
> > -I./libinterp/operators -Ilibinterp/parse-tree -I./libinterp/parse-tree 
> > -Ilibinterp/corefcn -I./libinterp/corefcn -I./liboctave/wrappers 
> > -I/usr/include/hdf5/serial -I/usr/include/GraphicsMagick 
> > -I./libinterp/dldfcn/replace-mpi -I/usr/include/suitesparse -Wdate-time 
> > -D_FORTIFY_SOURCE=2 -fPIC -pthread -fopenmp -Wall -W -Wshadow 
> > -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith 
> > -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 
> > -ffile-prefix-map=/home/sebastien/debian/octave=. -flto=auto 
> > -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection 
> > -Wformat -Werror=format-security -fcf-protection -c 
> > libinterp/dldfcn/__ode15__.cc  -fPIC -DPIC -o 
> > libinterp/dldfcn/.libs/__ode15___la-__ode15__.o
> > In file included from /usr/include/sundials/priv/sundials_context_impl.h:25,
> >                   from /usr/include/sundials/sundials_context.h:22,
> >                   from /usr/include/sundials/sundials_nvector.h:51,
> >                   from /usr/include/nvector/nvector_serial.h:42,
> >                   from libinterp/dldfcn/__ode15__.cc:50:
> > libinterp/dldfcn/__ode15__.cc: In member function 'void 
> > octave::IDA::initialize()':
> > libinterp/dldfcn/__ode15__.cc:593:26: error: 'MPI_COMM_NULL' was not 
> > declared in this scope; did you mean 'SUN_COMM_NULL'?
> >    593 |   if (SUNContext_Create (SUN_COMM_NULL, &m_sunContext) < 0)
> >        |                          ^~~~~~~~~~~~~
> > 
> 
> Thank you for testing the patch. Sorry, it didn't work.
> 
> For some reason, that wasn't an issue when I tested in Ubuntu 25.10. 
> Maybe, they have a different version of SUNDIALS? Or something else is 
> different on my test system.
> 
> Does the attached updated version of the patch work for you? With that 
> patch, I'm still able to build Octave using the SUNDIALS 7.1.1+dsfg1-10 
> packages from Ubuntu 25.10.

This new version of the patch seems to work as expected, thanks.

Do you recommend that I apply it to the Debian package, to restore
ode15s functionality?

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to