Build problem on mingw64

42 views
Skip to first unread message

Reuben Thomas

unread,
Nov 12, 2019, 6:01:02 AM11/12/19
to racke...@googlegroups.com
I'm trying to build racket on mingw64, and get this error that I don't understand:

make[8]: Entering directory '/home/rrt/repo/racket/racket/src/build/racket/gc2'
env XFORM_PRECOMP=yes ../racketcgc -G /home/rrt/repo/racket/build/config -O "info@compiler/cm error" -l- setup --boot /home/rrt/repo/racket/racket/src/build/../racket/gc2/../../setup-go.rkt ../../compiled --tag ++out /home/rrt/repo/racket/racket/src/build/../racket/gc2/xform-mod.rkt --depends --cpp "gcc -E -I./.. -I/home/rrt/repo/racket/racket/src/build/../racket/gc2/../include -I/home/rrt/repo/racket/racket/src/build/../racket/gc2/../../rktio -I../../rktio -g -O2  -IC:/msys64/mingw64/lib/libffi-3.2.1/include  -DUSE_SENORA_GC   -fno-omit-frame-pointer "  --keep-lines -o ++out xsrc/precomp.h /home/rrt/repo/racket/racket/src/build/../racket/gc2/precomp.c
In file included from C:/msys64/home/rrt/repo/racket/racket/src/build/../racket/gc2/precomp.c:2:
C:/msys64/home/rrt/repo/racket/racket/src/racket/src/schpriv.h:10:10: fatal error: scheme.h: No such file or directory
   10 | #include "scheme.h"
      |          ^~~~~~~~~~
compilation terminated.
xform: cpp failed
make[8]: *** [Makefile:205: xsrc/precomp.h] Error 1

The key thing here is that the file that can't be found, scheme.h, is indeed in a directory for which there is a -I flag, which I've highlighted in bold above, so I don't understand why it's not found.

I can't find any specific instructions in the docs or mailing list archives that seem to pertain to this, so I assume I'm doing something wrong, but I'm unsure what: I just git cloned racket and ran "make".

--

Reuben Thomas

unread,
Nov 12, 2019, 6:01:02 AM11/12/19
to racke...@googlegroups.com
I tried building from a racket-minimal tarball instead of git checkout, and got exactly the same error.

Reuben Thomas

unread,
Nov 12, 2019, 10:57:12 AM11/12/19
to racke...@googlegroups.com
In the end I managed to follow the AppVeyor script, and build with VS2013.

It might be good to have some hints about this in the documentation. For example, it's not clear to me that building under msys is actually supported. I'd be happy to write something, but it would be good if it were based on knowledge of what is supposed to work, rather than merely what worked for me!
--

Paulo Matos

unread,
Nov 12, 2019, 5:20:07 PM11/12/19
to Reuben Thomas, 'Reuben Thomas' via Racket Developers
Hi

I am not sure how supported this configuration is but I can take a look at it soonish. Could you please open an issue for this at github.com/racket/racket ?

Thanks.
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reuben Thomas

unread,
Nov 12, 2019, 5:24:35 PM11/12/19
to Paulo Matos, 'Reuben Thomas' via Racket Developers
Done, many thanks. Issue #2906.
--
Reply all
Reply to author
Forward
0 new messages