Skip to content

Fails to build on MinGW - sys/resource.h: No such file or directory #542

@mkoeppe

Description

@mkoeppe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions