Greetings,
I ran into problems compiling the latest version of Gambit on Windows 7 using mingw and msys. When I could not compile the released version 4.7.1 I tried the github master (revision 4dacc59db8fb9c0fbedd32da0fe9801d466f7404) with the same results. I am using the latest release of mingw gcc (4.8.1).
The configure script completes successfully and I have tried it with and without the --enable-single-host flag.
When running "make from-scratch" the build fails with the error below:
<Snip> ... gcc -D_WINDOWS -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-ins ns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-keep-inline-dllexport -f no-common -mieee-fp -I"../include" -o "gsi.exe" _gsi.o _gsi_.o "../lib/lib gambc.a" -lws2_32 libgambcgsi.a ../lib/libgambc.a(os.o):os.c:(.text+0x70d): undefined reference to `getaddrinfo' ../lib/libgambc.a(os.o):os.c:(.text+0x78b): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x7dd): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x88a): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x8d2): undefined reference to `freeaddrinfo'
c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: ../lib /libgambc.a(os.o): bad reloc address 0x14 in section `.data' c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status make[2]: *** [gsi.exe] Error 1 make[2]: Leaving directory `/c/Users/lahsp/Downloads/gambit/gambit-master/gsi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/Users/lahsp/Downloads/gambit/gambit-master' make: *** [from-scratch] Error 2
After googling I found other people with similar issues when using ws2tcpip in this configuration, although not related to Gambit. I tried adding "#define _WIN32_WINNT 0x0501" to os.h at line 1179 just below the include for windows.h to make sure a compatible windows version is being set. This caused the build to fail earlier with complaints of repeatedly defining _WIN32_WINNT.
The pre-build version of Gambit 4.7.1 works well for me. I am able to build executables from scheme with no issues, so I don't think gcc is having problems locating the includes or libraries.
Has anyone else ran into this issue building Gambit in this configuration?
Are there any windows specific options I should be passing to configure?
Thanks for your help. Bob
Afficher les réponses par date
Weird.
Technically this is a C problem.
For doublechecking, you could try your same compilation procedure with MingW on a Windows Vista machine and see if the result is the same.
Would using MSVC be an option to you?
2014/1/24 Bob Coleman bobcolem@yahoo.com
Greetings,
I ran into problems compiling the latest version of Gambit on Windows 7 using mingw and msys. When I could not compile the released version 4.7.1 I tried the github master (revision 4dacc59db8fb9c0fbedd32da0fe9801d466f7404) with the same results. I am using the latest release of mingw gcc (4.8.1).
The configure script completes successfully and I have tried it with and without the --enable-single-host flag.
When running "make from-scratch" the build fails with the error below:
<Snip> ... gcc -D_WINDOWS -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-ins ns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-keep-inline-dllexport -f no-common -mieee-fp -I"../include" -o "gsi.exe" _gsi.o _gsi_.o "../lib/lib gambc.a" -lws2_32 libgambcgsi.a ../lib/libgambc.a(os.o):os.c:(.text+0x70d): undefined reference to `getaddrinfo' ../lib/libgambc.a(os.o):os.c:(.text+0x78b): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x7dd): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x88a): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x8d2): undefined reference to `freeaddrinfo'
c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: ../lib /libgambc.a(os.o): bad reloc address 0x14 in section `.data' c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status make[2]: *** [gsi.exe] Error 1 make[2]: Leaving directory `/c/Users/lahsp/Downloads/gambit/gambit-master/gsi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/Users/lahsp/Downloads/gambit/gambit-master' make: *** [from-scratch] Error 2
After googling I found other people with similar issues when using ws2tcpip in this configuration, although not related to Gambit. I tried adding "#define _WIN32_WINNT 0x0501" to os.h at line 1179 just below the include for windows.h to make sure a compatible windows version is being set. This caused the build to fail earlier with complaints of repeatedly defining _WIN32_WINNT.
The pre-build version of Gambit 4.7.1 works well for me. I am able to build executables from scheme with no issues, so I don't think gcc is having problems locating the includes or libraries.
Has anyone else ran into this issue building Gambit in this configuration?
Are there any windows specific options I should be passing to configure?
Thanks for your help. Bob
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I agree it's a C problem. There's seems to be a complication with the winsock and ws2tcpip libraries in Windows 7 and beyond. Unfortunately, I don't have access to a vista machine or MSVC.
Are the pre-built windows binaries for Gambit built on Vista?
I was hoping someone else had ran into this problem before. I'll continue to play around with it and report back if I can pin it down.
Thanks!
On Friday, January 24, 2014 2:46 PM, Mikael mikael.rcv@gmail.com wrote:
Weird.
Technically this is a C problem.
For doublechecking, you could try your same compilation procedure with MingW on a Windows Vista machine and see if the result is the same.
Would using MSVC be an option to you?
2014/1/24 Bob Coleman bobcolem@yahoo.com
Greetings,
I ran into problems compiling the latest version of Gambit on Windows 7 using mingw and msys. When I could not compile the released version 4.7.1 I tried the github master (revision 4dacc59db8fb9c0fbedd32da0fe9801d466f7404) with the same results. I am using the latest release of mingw gcc (4.8.1).
The configure script completes successfully and I have tried it with and without the --enable-single-host flag.
When running "make from-scratch" the build fails with the error below:
<Snip> ... gcc -D_WINDOWS -Wno-unused -Wno-write-strings -O1 -fno-math-errno -fschedule-ins ns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-keep-inline-dllexport -f no-common -mieee-fp -I"../include" -o
"gsi.exe" _gsi.o _gsi_.o "../lib/lib
gambc.a" -lws2_32 libgambcgsi.a ../lib/libgambc.a(os.o):os.c:(.text+0x70d): undefined reference to `getaddrinfo' ../lib/libgambc.a(os.o):os.c:(.text+0x78b): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x7dd): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x88a): undefined reference to `freeaddrinfo'
../lib/libgambc.a(os.o):os.c:(.text+0x8d2): undefined reference to `freeaddrinfo'
c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: ../lib /libgambc.a(os.o): bad reloc address 0x14 in section `.data' c:/apps/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status make[2]: *** [gsi.exe] Error 1 make[2]: Leaving directory
`/c/Users/lahsp/Downloads/gambit/gambit-master/gsi'
make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/Users/lahsp/Downloads/gambit/gambit-master' make: *** [from-scratch] Error 2
After googling I found other people with similar issues when using ws2tcpip in this configuration, although not related to Gambit. I tried adding "#define _WIN32_WINNT 0x0501" to os.h at line 1179 just below the include for windows.h to make sure a compatible windows version is being set. This caused the build to fail earlier with complaints of repeatedly defining _WIN32_WINNT.
The pre-build version of Gambit 4.7.1 works well for me. I am able to build executables from scheme with no issues, so I don't think gcc is having problems locating the includes or libraries.
Has anyone else ran into this issue building Gambit in this configuration?
Are there any windows specific options I should be passing to
configure?
Thanks for your help. Bob
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
In article 1390599240.54030.YahooMailNeo@web120505.mail.ne1.yahoo.com, bobcolem@yahoo.com says...
I agree it's a C problem. There's seems to be a complication with the winsock and ws2tcpip libraries in Windows 7 and beyond. Unfortunately, I don't have access to a vista machine or MSVC.
It seems there are a number of issues with the 4.8.1-x releases. It's probably best to revert back to 4.7.2 if you do not need 4.8.1 specifics.
I tried to "upgrade" from mingw 4.8.1 to 4.7.2, but had no luck. There seems to be an unresolved problem with the packaging on the 4.8.1 release that prevents a change back to previous versions.
This definitely seems to be a mingw problem.
On Sunday, January 26, 2014 2:55 AM, Jerry van DIjk jdijk59@hotmail.com wrote:
In article 1390599240.54030.YahooMailNeo@web120505.mail.ne1.yahoo.com, bobcolem@yahoo.com says...
I agree it's a C problem. There's seems to be a complication with the winsock and ws2tcpip libraries in Windows 7 and beyond. Unfortunately, I don't have access to a vista machine or MSVC.
It seems there are a number of issues with the 4.8.1-x releases. It's probably best to revert back to 4.7.2 if you do not need 4.8.1 specifics.