Repository navigation
Fails to build on MinGW - sys/resource.h: No such file or directory #542
Copy link
Copy link
Open
Description
Building on MinGW gives an easy route to supporting native Windows
But currently fplll FTBFS because it uses sys/resource.h
[fplll-5.5.0] [spkg-install] In file included from bkz_param.h:23,
[fplll-5.5.0] [spkg-install] from bkz.h:21,
[fplll-5.5.0] [spkg-install] from fplll.h:25,
[fplll-5.5.0] [spkg-install] from main.h:21,
[fplll-5.5.0] [spkg-install] from main.cpp:18:
[fplll-5.5.0] [spkg-install] defs.h:47:10: fatal error: sys/resource.h: No such file or directory
[fplll-5.5.0] [spkg-install] 47 | #include <sys/resource.h>
[fplll-5.5.0] [spkg-install] | ^~~~~~~~~~~~~~~~
[fplll-5.5.0] [spkg-install] compilation terminated.
[fplll-5.5.0] [spkg-install] make[6]: *** [Makefile:1419: main.o] Error 1
[fplll-5.5.0] [spkg-install] make[6]: *** Waiting for unfinished jobs....
[fplll-5.5.0] [spkg-install] libtool: compile: g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. -DFPLLL_DEFAULT_STRATEGY_PATH=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies\" -DFPLLL_DEFAULT_STRATEGY=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies/default.json\" -I./.. -I/d/a/fpylll/fpylll/sage-local/include/ -pthread -g -O2 -fPIC -I/d/a/fpylll/fpylll/sage-local/include/ -L/d/a/fpylll/fpylll/sage-local/lib -c util.cpp -DDLL_EXPORT -DPIC -o .libs/libfplll_la-util.o
[fplll-5.5.0] [spkg-install] libtool: compile: g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. -DFPLLL_DEFAULT_STRATEGY_PATH=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies\" -DFPLLL_DEFAULT_STRATEGY=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies/default.json\" -I./.. -I/d/a/fpylll/fpylll/sage-local/include/ -pthread -g -O2 -fPIC -I/d/a/fpylll/fpylll/sage-local/include/ -L/d/a/fpylll/fpylll/sage-local/lib -c fplll.cpp -DDLL_EXPORT -DPIC -o .libs/libfplll_la-fplll.o
[fplll-5.5.0] [spkg-install] libtool: compile: g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. -DFPLLL_DEFAULT_STRATEGY_PATH=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies\" -DFPLLL_DEFAULT_STRATEGY=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies/default.json\" -I./.. -I/d/a/fpylll/fpylll/sage-local/include/ -pthread -g -O2 -fPIC -I/d/a/fpylll/fpylll/sage-local/include/ -L/d/a/fpylll/fpylll/sage-local/lib -c lll.cpp -DDLL_EXPORT -DPIC -o .libs/libfplll_la-lll.o
[fplll-5.5.0] [spkg-install] libtool: compile: g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. -DFPLLL_DEFAULT_STRATEGY_PATH=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies\" -DFPLLL_DEFAULT_STRATEGY=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies/default.json\" -I./.. -I/d/a/fpylll/fpylll/sage-local/include/ -pthread -g -O2 -fPIC -I/d/a/fpylll/fpylll/sage-local/include/ -L/d/a/fpylll/fpylll/sage-local/lib -c bkz.cpp -DDLL_EXPORT -DPIC -o .libs/libfplll_la-bkz.o
[fplll-5.5.0] [spkg-install] libtool: compile: g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. -DFPLLL_DEFAULT_STRATEGY_PATH=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies\" -DFPLLL_DEFAULT_STRATEGY=\"/d/a/fpylll/fpylll/sage-local/share/fplll/strategies/default.json\" -I./.. -I/d/a/fpylll/fpylll/sage-local/include/ -pthread -g -O2 -fPIC -I/d/a/fpylll/fpylll/sage-local/include/ -L/d/a/fpylll/fpylll/sage-local/lib -c wrapper.cpp -DDLL_EXPORT -DPIC -o .libs/libfplll_la-wrapper.o
[fplll-5.5.0] [spkg-install] In file included from nr/nr.h:7,
[fplll-5.5.0] [spkg-install] from nr/numvect.h:19,
[fplll-5.5.0] [spkg-install] from nr/matrix.h:21,
[fplll-5.5.0] [spkg-install] from util.h:23,
[fplll-5.5.0] [spkg-install] from util.cpp:16:
[fplll-5.5.0] [spkg-install] nr/../defs.h:47:10: fatal error: sys/resource.h: No such file or directory
[fplll-5.5.0] [spkg-install] 47 | #include <sys/resource.h>
[fplll-5.5.0] [spkg-install] | ^~~~~~~~~~~~~~~~
[fplll-5.5.0] [spkg-install] compilation terminated.
https://github.com/fplll/fpylll/actions/runs/15957602543/job/45005950350#step:10:1718
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
mkoeppe commentedon Jun 29, 2025
Can provide a CI for minGW if there's interest
malb commentedon Jun 30, 2025
I don't think, at least, I would have the capacity to support Windows builds. I'm happy to accept PRs and offer Windows builds on a best effort basis, but if things were to break, I'd just remove Windows support. If someone else wants to be the maintainer of this part, different story, though :)