make errors on Cygwin64 terminal

30 views
Skip to first unread message

Chintan Joshi

unread,
Jan 10, 2019, 1:47:00 AM1/10/19
to mpir-devel
Hi guys,
I need MPIR for a package I am trying to use. I have a Windows 10 machine. I start with:

$ ./configure --disable-static --enable-shared

This appears to go without any hiccups. However, when I run "make ". I even tried make install; no luck yet. Any help would be highly appreciated. Please do let me know if I can provide with any information from my end to help troubleshoot this issue. Below is the what I see:

$ make
E:/programs/GnuWin32/bin/make all-recursive
make[1]: Entering directory `E:/mpir-3.0.0'
Making all in tests
make[2]: Entering directory `E:/mpir-3.0.0/tests'
makefile:1309: warning: overriding commands for target `.s.o'
makefile:1294: warning: ignoring old commands for target `.s.o'
makefile:1313: warning: overriding commands for target `.s.obj'
makefile:1296: warning: ignoring old commands for target `.s.obj'
makefile:1317: warning: overriding commands for target `.s.lo'
makefile:1298: warning: ignoring old commands for target `.s.lo'
Making all in .
make[3]: Entering directory `E:/mpir-3.0.0/tests'
makefile:1309: warning: overriding commands for target `.s.o'
makefile:1294: warning: ignoring old commands for target `.s.o'
makefile:1313: warning: overriding commands for target `.s.obj'
makefile:1296: warning: ignoring old commands for target `.s.obj'
makefile:1317: warning: overriding commands for target `.s.lo'
makefile:1298: warning: ignoring old commands for target `.s.lo'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests'
Making all in devel
make[3]: Entering directory `E:/mpir-3.0.0/tests/devel'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/devel'
Making all in mpn
make[3]: Entering directory `E:/mpir-3.0.0/tests/mpn'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/mpn'
Making all in fft
make[3]: Entering directory `E:/mpir-3.0.0/tests/fft'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/fft'
Making all in mpz
make[3]: Entering directory `E:/mpir-3.0.0/tests/mpz'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/mpz'
Making all in mpq
make[3]: Entering directory `E:/mpir-3.0.0/tests/mpq'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/mpq'
Making all in mpf
make[3]: Entering directory `E:/mpir-3.0.0/tests/mpf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/mpf'
Making all in rand
make[3]: Entering directory `E:/mpir-3.0.0/tests/rand'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/rand'
Making all in misc
make[3]: Entering directory `E:/mpir-3.0.0/tests/misc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/misc'
Making all in cxx
make[3]: Entering directory `E:/mpir-3.0.0/tests/cxx'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `E:/mpir-3.0.0/tests/cxx'
make[2]: Leaving directory `E:/mpir-3.0.0/tests'
Making all in mpn
make[2]: Entering directory `E:/mpir-3.0.0/mpn'
makefile:686: warning: overriding commands for target `.s.o'
makefile:671: warning: ignoring old commands for target `.s.o'
makefile:690: warning: overriding commands for target `.s.obj'
makefile:673: warning: ignoring old commands for target `.s.obj'
makefile:694: warning: overriding commands for target `.s.lo'
makefile:675: warning: ignoring old commands for target `.s.lo'
E:/cygwin64/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo dummy1 | sed 's/_$//'` -O2 -c -o dummy1.lo dummy1.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dummy1 -O2 -c dummy1.c -DDLL_EXPORT -DPIC -o .libs/dummy1.o
E:/cygwin64/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo add | sed 's/_$//'` -O2 -c -o add.lo add.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_add -O2 -c add.c -DDLL_EXPORT -DPIC -o .libs/add.o
add.c:1:1: error: expected identifier or '(' before '!' token
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:11: error: stray '\377' in program
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:12: error: stray '\376' in program
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:14: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:16: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:18: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:20: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:22: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:24: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:26: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:28: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:30: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:32: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:34: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:36: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:38: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:40: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:42: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:44: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:46: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:48: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:50: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
add.c:1:52: warning: null character(s) ignored
!<symlink>▒▒. . / m p n / g e n e r i c / a d d . c
^
make[2]: *** [add.lo] Error 1
make[2]: Leaving directory `E:/mpir-3.0.0/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `E:/mpir-3.0.0'
make: *** [all] Error 2

Cheers,
Chintan

Bill Hart

unread,
Jan 10, 2019, 1:53:41 AM1/10/19
to mpir-devel
I don't really know what might be causing this. You might have to ask some Cygwin experts.

But one possibility is that there are some unsupported characters in the path to where you are building MPIR.

Bill.

--
You received this message because you are subscribed to the Google Groups "mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+...@googlegroups.com.
To post to this group, send email to mpir-...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Chintan Joshi

unread,
Jan 10, 2019, 1:21:08 PM1/10/19
to mpir-devel
Hi Bill,
Thanks for the prompt response. Any recommendations on how do I check where the unsupported characters are coming from?
Cheers,
Chintan

Bill Hart

unread,
Jan 10, 2019, 2:44:11 PM1/10/19
to mpir-devel
I don't use Cygwin, so I don't have any suggestions.

It looks to me like the makefile does not like Cygwin symlinks. But that is not a problem I can help solve. I don't know anything about how Cygwin handles this.

--

Dima Pasechnik

unread,
Jan 10, 2019, 2:49:28 PM1/10/19
to mpir-...@googlegroups.com


On Thu, 10 Jan 2019 18:21 Chintan Joshi <cjjo...@gmail.com wrote:
Hi Bill,
Thanks for the prompt response. Any recommendations on how do I check where the unsupported characters are coming from?

Where have you installed your Cygwin64 in?
What is the path? Does it by any chances has non-ascii characters in it, or spaces?
That \377\376 seem to indicate it is unicode, see https://en.m.wikipedia.org/wiki/Byte_order_mark#UTF-16



Apart from this, I can say that symlinks on
Cygwin were always a bit fragile.

--

Bill Hart

unread,
Jan 10, 2019, 2:54:16 PM1/10/19
to mpir-devel
By the way, MPIR does build in the Windows Subsystem for Linux, or with recent MSVC, if either of those are an option for you.

MPIR should in theory build in Cygwin, since Sage has Cygwin support (assuming they are not using GMP instead). However, I don't know if that is 32 or 64 bits.

In theory it also builds with msys/mingw-w64, but I have not done this for ages, and it isn't as easy as it should be. I personally use the WSL and find this to be very practical, however, you must install all the right packages.

Bill.

Samuel Lelièvre

unread,
Jan 12, 2019, 5:31:56 AM1/12/19
to mpir-devel
Thu 2019-01-10 07:47:00 UTC+1, Chintan Joshi:

> I need MPIR for a package I am trying to use.
> I have a Windows 10 machine. I start with: 
>
> $ ./configure --disable-static --enable-shared 
>
> This appears to go without any hiccups. However, when I run "make ".
> I even tried make install; no luck yet. Any help would be highly
> appreciated. Please do let me know if I can provide with any
> information from my end to help troubleshoot this issue.
> Below is the what I see: 
>
> $ make 
> E:/programs/GnuWin32/bin/make  all-recursive 
> make[1]: Entering directory `E:/mpir-3.0.0' 
> Making all in tests 
> make[2]: Entering directory `E:/mpir-3.0.0/tests' 
> makefile:1309: warning: overriding commands for target `.s.o' 
> makefile:1294: warning: ignoring old commands for target `.s.o' 
>
> ...
>
> add.c:1:52: warning: null character(s) ignored 
>  !<symlink>▒▒. . / m p n / g e n e r i c / a d d . c 
>                                                    ^ 
> make[2]: *** [add.lo] Error 1 
> make[2]: Leaving directory `E:/mpir-3.0.0/mpn' 
> make[1]: *** [all-recursive] Error 1 
> make[1]: Leaving directory `E:/mpir-3.0.0' 
> make: *** [all] Error 2 
>
> Cheers, 
> Chintan

Hi,

Replying on behalf of E. M. Bray who is not subscribed to this list:

"""

The issue is that you're not running the `make` from Cygwin, but rather
some other `make.exe` that happens to be on your `$PATH`, possibly
from mingw-w64, or some other program that bundles a make.

When using Cygwin you should make sure that there aren't non-Cygwin
directories earlier in your `$PATH` (normally there wouldn't be,
except for user error :-) 

In fact it's right in the first line of output from your `make` call:

E:/programs/GnuWin32/bin/make  all-recursive 

"""

Cheers,
Samuel
Reply all
Reply to author
Forward
0 new messages