Matthias Koeppe on Thu, 14 Aug 2025 19:58:20 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: xeus-gp FTBFS on Alpine Linux (musl libc) |
Hi Bill, Meanwhile I have prepared a patch, see https://github.com/passagemath/upstream-xeus-gp/commit/de82ff527cc08aaa1079828c9ad43f58da996f92 I'll also send it to the Xeus project as you suggest. Matthias On Thu, Aug 14, 2025 at 10:54 AM Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote: > > On Wed, Aug 06, 2025 at 12:53:56PM -0700, Matthias Koeppe wrote: > > [xeus_gp-0.1.0] [spkg-install] [1/4] Building CXX object > > CMakeFiles/xeus-gp.dir/src/main.cpp.o > > [xeus_gp-0.1.0] [spkg-install] FAILED: [code=1] > > CMakeFiles/xeus-gp.dir/src/main.cpp.o > > [xeus_gp-0.1.0] [spkg-install] > > /host/sage-musllinux_1_2_aarch64/libexec/ccache/g++ -std=gnu++11 > > -DGUID_LIBUUID -DXEUS_GP_EXPORTS > > -I/host/sage-musllinux_1_2_aarch64/var/tmp/sage/build/xeus_gp-0.1.0/src/include > > -isystem /host/sage-musllinux_1_2_aarch64/include -g -O2 > > -Wunused-parameter -Wextra -Wreorder -std=c++17 -std=gnu++17 > > -Wunused-parameter -Wextra -Wreorder -MD -MT > > CMakeFiles/xeus-gp.dir/src/main.cpp.o -MF > > CMakeFiles/xeus-gp.dir/src/main.cpp.o.d -o > > CMakeFiles/xeus-gp.dir/src/main.cpp.o -c > > /host/sage-musllinux_1_2_aarch64/var/tmp/sage/build/xeus_gp-0.1.0/src/src/main.cpp > > [xeus_gp-0.1.0] [spkg-install] > > /host/sage-musllinux_1_2_aarch64/var/tmp/sage/build/xeus_gp-0.1.0/src/src/main.cpp:22:10: > > fatal error: execinfo.h: No such file or directory > > [xeus_gp-0.1.0] [spkg-install] 22 | #include <execinfo.h> > > This code comes from the cookiecutter example provided by Xeus. > the code is > > #ifdef __GNUC__ > #include <stdio.h> > #include <execinfo.h> > #include <signal.h> > #include <stdlib.h> > #include <unistd.h> > #endif > > ... > > #ifdef __GNUC__ > void handler(int sig) > { > void* array[10]; > > // get void*'s for all entries on the stack > size_t size = backtrace(array, 10); > > // print out all the frames to stderr > fprintf(stderr, "Error: signal %d:\n", sig); > backtrace_symbols_fd(array, size, STDERR_FILENO); > exit(1); > } > #endif > > If the guard __GNUC__ is not correct, then please report it to the Xeus project too! > I do not have enough resource to diverge from the upstream cookiecutter example, given > the frequent API changes. > > Cheers, > Bill. > -- Matthias Koeppe -- http://www.math.ucdavis.edu/~mkoeppe