Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin: Fix spkg-configure.m4 for iconv #29532

Closed
mkoeppe opened this issue Apr 19, 2020 · 11 comments
Closed

cygwin: Fix spkg-configure.m4 for iconv #29532

mkoeppe opened this issue Apr 19, 2020 · 11 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 19, 2020

Follow-up from #27823 (spkg-configure.m4 for iconv), comment 46:

It seems that, at least on Cygwin, AM_ICONV will pass, somehow, even if iconv.h is installed, thus making the libicon-devel package on Cygwin a requirement, at least when it comes to building R (which otherwise fails at #include <iconv.h>).

For now I'll just update the Cygwin build instructions to require libiconv-devel as a prerequisite which is preferable anyways. But maybe this still needs to be checked for somehow...

Indeed this needs fixing:

configure:21635: g++ -std=gnu++11 -o conftest.exe -g -O2    conftest.cpp -lglpk -lreadline -lcurl -lbz2 -lflint -lmpfr -lgmp -lm  -lntl -liconv >&5
conftest.cpp:68:10: fatal error: iconv.h: No such file or directory
   68 | #include <iconv.h>
      |          ^~~~~~~~~
compilation terminated.
...

configure:21645: result: no, consider installing GNU libiconv
## ------------------------------------------------------ ##
## Checking whether SageMath should install SPKG iconv... ##
## ------------------------------------------------------ ##
configure:21940: will use system package and not install SPKG iconv
## ---------------------------------------------------- ##


CC: @embray @orlitzky @dimpase

Component: build: configure

Author: Matthias Koeppe

Branch/Commit: 49c8e4d

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29532

@mkoeppe mkoeppe added this to the sage-9.1 milestone Apr 19, 2020
@dimpase
Copy link
Member

dimpase commented Apr 19, 2020

comment:1

hmm, so you are not running ./bootstrap on Cygwin?

@dimpase
Copy link
Member

dimpase commented Apr 19, 2020

comment:2

note that spkg-install says

    echo "iconv will be installed as the operating system is Cygwin, HP-UX or Solaris."
    echo "These systems either lack iconv, or do not have a sufficiently capable"

Is this no longer true for Cygwin?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

comment:3

Gettext is installed, bootstrap worked.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

New commits:

49c8e4dbuild/pkgs/iconv/spkg-configure.m4: Fix quoting bug

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

Commit: 49c8e4d

@dimpase
Copy link
Member

dimpase commented Apr 19, 2020

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Apr 19, 2020

comment:7

OK, good catch.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2020

comment:8

Thanks!

@vbraun
Copy link
Member

vbraun commented Apr 22, 2020

Changed branch from u/mkoeppe/cygwin__fix_spkg_configure_m4_for_iconv to 49c8e4d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants