fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 33 forks source link

Error building mccs #46

Closed bryphe closed 6 years ago

bryphe commented 6 years ago

First off, thank you for the work you've done to make these packages available on Cygwin! 💯

I've started experimenting with installing some packages, and most of them work great in my Cygwin environment. However, I was trying to install the mccs library (opam install mccs), and I'm hitting this error:

(cd _build/default/src && C:\cygwin64\bin\x86_64-w64-mingw32-gcc.exe -I C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib/ocaml -march=x86-64 -mtune=generic -O2 -mms-bitfields -I C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib\bytes -I C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib\cudf -I C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib\extlib -I glpk -g -I . -DUSEGLPK -o changed_criteria.o -c changed_criteria.cpp)
x86_64-w64-mingw32-gcc: error: spawn: No such file or directory

REPRO:

The spawn: No such file or directory seems to be due to the fact that it's picking up gcc instead of a C++ compiler like g++. Just curious if anyone has run into an issue like this before? It's quite possibly a misconfiguration on my end.

bryphe commented 6 years ago

Some additional output that might be helpful:

ocamlc.opt.exe -config:

$ /cygdrive/c/cygwin64/home/bryph/.opam/4.06.1+mingw64/bin/ocamlc.opt.exe -config
version: 4.06.1
standard_library_default: C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib/ocaml
standard_library: C:/cygwin64/home/bryph/.opam/4.06.1+mingw64/lib/ocaml
standard_runtime: ocamlrun
ccomp_type: cc
c_compiler: x86_64-w64-mingw32-gcc
ocamlc_cflags: -march=x86-64 -mtune=generic -O2 -mms-bitfields
ocamlc_cppflags:
ocamlopt_cflags: -march=x86-64 -mtune=generic -O2 -mms-bitfields
ocamlopt_cppflags:
bytecomp_c_compiler: x86_64-w64-mingw32-gcc -march=x86-64 -mtune=generic -O2 -mms-bitfields
native_c_compiler: x86_64-w64-mingw32-gcc -march=x86-64 -mtune=generic -O2 -mms-bitfields
bytecomp_c_libraries: -lws2_32 -lversion
native_c_libraries: -lws2_32 -lversion
native_pack_linker: x86_64-w64-mingw32-ld -r -o
ranlib: x86_64-w64-mingw32-ranlib
cc_profile:
architecture: amd64
model: default
int_size: 63
word_size: 64
system: mingw64
asm: x86_64-w64-mingw32-as
asm_cfi_supported: false
with_frame_pointers: false
ext_exe: .exe
ext_obj: .o
ext_asm: .s
ext_lib: .a
ext_dll: .dll
os_type: Win32
default_executable_name: camlprog.exe
systhread_supported: true
host: x86_64-w64-mingw32
target: x86_64-w64-mingw32
profiling: false
flambda: false
spacetime: false
safe_string: false
default_safe_string: true
flat_float_array: true
afl_instrument: false
windows_unicode: true
exec_magic_number: Caml1999X011
cmi_magic_number: Caml1999I022
cmo_magic_number: Caml1999O022
cma_magic_number: Caml1999A022
cmx_magic_number: Caml1999Y022
cmxa_magic_number: Caml1999Z022
ast_impl_magic_number: Caml1999M022
ast_intf_magic_number: Caml1999N022
cmxs_magic_number: Caml1999D022
cmt_magic_number: Caml1999T022

cygcheck -c:

bryph@DESKTOP-RE9FFOM ~/ocaml-mccs
$ cygcheck -c
Cygwin Package Information
Package                                 Version               Status
_autorebase                             001007-1              OK
alternatives                            1.3.30c-10            OK
base-cygwin                             3.8-1                 OK
base-files                              4.2-4                 OK
bash                                    4.4.12-3              OK
binutils                                2.29-1                OK
bzip2                                   1.0.6-3               OK
ca-certificates                         2.22-1                OK
coreutils                               8.26-2                OK
csih                                    0.9.11-1              OK
curl                                    7.59.0-1              OK
cygrunsrv                               1.62-1                OK
cygutils                                1.4.16-2              OK
cygwin                                  2.10.0-1              OK
cygwin-devel                            2.10.0-1              OK
dash                                    0.5.9.1-1             OK
diffutils                               3.5-2                 OK
editrights                              1.03-1                OK
expect                                  5.45-3                OK
file                                    5.32-1                OK
findutils                               4.6.0-1               OK
gawk                                    4.2.1-1               OK
gcc-core                                7.3.0-2               OK
gcc-g++                                 6.4.0-5               OK
getent                                  2.18.90-4             OK
git                                     2.17.0-1              OK
grep                                    3.0-2                 OK
groff                                   1.22.3-1              OK
gzip                                    1.8-1                 OK
hostname                                3.13-1                OK
info                                    6.5-2                 OK
ipc-utils                               1.0-2                 OK
less                                    530-1                 OK
libargp                                 20110921-3            OK
libatomic1                              7.3.0-2               OK
libattr1                                2.4.46-1              OK
libblkid1                               2.25.2-2              OK
libbz2_1                                1.0.6-3               OK
libcom_err2                             1.42.12-2             OK
libcrypt0                               2.1-1                 OK
libcurl4                                7.59.0-1              OK
libdb5.3                                5.3.28-2              OK
libedit0                                20130712-1            OK
libexpat1                               2.2.3-1               OK
libffi6                                 3.2.1-2               OK
libgc2                                  7.6.2-3               OK
libgcc1                                 7.3.0-2               OK
libgdbm4                                1.12-1                OK
libgmp10                                6.1.2-1               OK
libgnutls30                             3.5.18-1              OK
libgomp1                                7.3.0-2               OK
libgssapi_krb5_2                        1.15.2-2              OK
libguile2.0_22                          2.0.14-2              OK
libhogweed4                             3.4-1                 OK
libiconv                                1.14-3                OK
libiconv2                               1.14-3                OK
libidn2_0                               2.0.4-1               OK
libintl8                                0.19.8.1-2            OK
libisl13                                0.14.1-1              OK
libisl15                                0.16.1-1              OK
libk5crypto3                            1.15.2-2              OK
libkrb5_3                               1.15.2-2              OK
libkrb5support0                         1.15.2-2              OK
libltdl7                                2.4.6-6               OK
liblzma5                                5.2.3-1               OK
libmetalink3                            0.1.2-1               OK
libmpc3                                 1.1.0-1               OK
libmpfr4                                3.1.6-1p1             OK
libmpfr6                                4.0.1-3p6             OK
libncursesw10                           6.0-12.20171125       OK
libnettle6                              3.4-1                 OK
libnghttp2_14                           1.31.0-1              OK
libopenldap2_4_2                        2.4.42-1              OK
libopenssl100                           1.0.2o-1              OK
libp11-kit0                             0.23.10-1             OK
libpcre1                                8.40-3                OK
libpipeline1                            1.4.0-1               OK
libpopt-common                          1.16-2                OK
libpopt0                                1.16-2                OK
libpsl5                                 0.18.0-1              OK
libquadmath0                            7.3.0-2               OK
libreadline7                            7.0.3-3               OK
librsync-devel                          1.0.0-1               OK
librsync2                               1.0.0-1               OK
libsasl2_3                              2.1.26-11             OK
libsigsegv2                             2.10-2                OK
libsmartcols1                           2.25.2-2              OK
libssh2_1                               1.7.0-1               OK
libssp0                                 6.4.0-4               OK
libstdc++6                              7.3.0-2               OK
libtasn1_6                              4.13-1                OK
libunistring2                           0.9.8-1               OK
libuuid1                                2.25.2-2              OK
login                                   1.12-1                OK
m4                                      1.4.18-1              OK
make                                    4.2.1-2               OK
man-db                                  2.7.6.1-1             OK
mingw64-x86_64-binutils                 2.29.1.787c9873-1     OK
mingw64-x86_64-gcc-core                 6.4.0-2               OK
mingw64-x86_64-headers                  5.0.4-1               OK
mingw64-x86_64-runtime                  5.0.4-1               OK
mingw64-x86_64-windows-default-manifest 6.4-1                 OK
mingw64-x86_64-winpthreads              5.0.4-1               OK
mintty                                  2.8.5-0               OK
ncurses                                 6.0-12.20171125       OK
openssh                                 7.7p1-1               OK
openssl                                 1.0.2o-1              OK
p11-kit                                 0.23.10-1             OK
p11-kit-trust                           0.23.10-1             OK
patch                                   2.7.4-1               OK
perl                                    5.26.2-1              OK
perl-Error                              0.17026-1             OK
perl-Scalar-List-Utils                  1.50-1                OK
perl-TermReadKey                        2.37-2                OK
perl_autorebase                         5.26.2-1              OK
perl_base                               5.26.2-1              OK
publicsuffix-list-dafsa                 20180328-1            OK
rebase                                  4.4.4-1               OK
rsync                                   3.1.2-1               OK
run                                     1.3.4-2               OK
sed                                     4.4-1                 OK
tar                                     1.29-1                OK
tcl                                     8.6.8-1               OK
terminfo                                6.0-12.20171125       OK
tzcode                                  2018e-1               OK
tzdata                                  2018e-1               OK
unzip                                   6.0-17                OK
util-linux                              2.25.2-2              OK
vim-minimal                             8.0.1567-1            OK
w32api-headers                          5.0.4-1               OK
w32api-runtime                          5.0.4-1               OK
wget                                    1.19.1-2              OK
which                                   2.20-2                OK
windows-default-manifest                6.4-1                 OK
xz                                      5.2.3-1               OK
zlib0                                   1.2.11-1              OK
fdopen commented 6 years ago

g++ is not installed, the necessary cygwin package is either mingw64-x86_64-gcc-g++ or mingw64-i686-gcc-g++. I've added a depext edc66b9b122de9333bd8b23549db624612118eb4 , so you can install mccs with:

opam update
opam install depext depext-cygwinports
opam depext -i -y mccs
bryphe commented 6 years ago

Awesome, worked great @fdopen ! Thank you very much for the help! 💯