Project

General

Profile

Do not use GCC 4.9.2 while building in CygWin. Use GCC 4.8.3

Added by Nehal J Wani almost 7 years ago

Apparently, there seems to be some bug in CygWin's latest GCC package (4.9.2). Build fails, with:

libtool: link: g++ -o ../bin/.libs/remotetest ../samples/remotetest.o  -L/home/user/trunk/xmpsdk/src ./.libs/libexiv2.a -lpsapi -lwldap32 -lws2_32 -lintl -liconv -lz -lcurl -lexpat -ldl -L/usr/local/lib
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
Makefile:299: recipe for target 'exifprint' failed
make: *** [exifprint] Error 1
make: *** Waiting for unfinished jobs....
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
Exception: STATUS_ACCESS_VIOLATION at rip=0000000003E
rax=00000001004D1180 rbx=000000060059BAE0 rcx=000000060059BAE0
rdx=00000006005DF048 rsi=0000000000C2A460 rdi=0000000000000012
r8 =0000000000C2A470 r9 =00000000FFFFBFFF r10=0000000000C30000
r11=00000001004BB43E r12=0000000000000001 r13=00000006005DF049
r14=0000000100545960 r15=00000006005DF048
rbp=0000000000C2A470 rsp=0000000000C2A408
program=C:\cygwin64\usr\x86_64-pc-cygwin\bin\ld.exe, pid 3856, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
00000C2A470  0000000003E (00000000000, 01400000001, 001005250E0, 00000000000)
00000C2A470  001004A5704 (00100000000, 006001C24E4, 00000000004, 00000000000)
00000C2A530  00100434E53 (00100433D10, 006000604A0, 001800C1D2C, 00000000000)
00000000000  0010040EA08 (00600053C90, 00600054CA0, 00100437A39, 00000000000)
00000000001  0010040F4C3 (003FFB64759, 001005400E0, 00000C2A770, 003FFB60043)
001004EB5C8  001004115FB (003FFB68180, 00000000000, 00000000000, 00000000000)
001004EB5C8  001004CBDEF (00000C2A8F0, 0018025B080, 0018006B8DE, 00000000001)
00000C2AB90  00180048471 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  0018004625B (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  001800463B4 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  001004CA631 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  00100401010 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  000777B59ED (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  000778EC541 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace
Makefile:291: recipe for target 'exiv2' failed
make: *** [exiv2] Error 1
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
Exception: STATUS_ACCESS_VIOLATION at rip=0000000003E
rax=00000001004D1180 rbx=000000060081B5F0 rcx=000000060081B5F0
rdx=0000000600C1B588 rsi=0000000000C2A470 rdi=0000000000000030
r8 =0000000000C2A480 r9 =00000000FFFFBFFF r10=0000000000C30000
r11=00000001004BB43E r12=0000000000000001 r13=0000000600C1B589
r14=0000000100545960 r15=0000000600C1B588
rbp=0000000000C2A480 rsp=0000000000C2A418
program=C:\cygwin64\usr\x86_64-pc-cygwin\bin\ld.exe, pid 2384, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
00000C2A480  0000000003E (00000000000, 01400000001, 001005250E0, 00000000000)
00000C2A480  001004A5704 (00000000000, 00600332535, 00000000006, 00000000000)
00000C2A540  00100434E53 (00100433D10, 006000604B0, 001800C1D2C, 00000000000)
00000000000  0010040EA08 (00600053C90, 00600054CA0, 00100437A39, 00000000000)
00000000001  0010040F4C3 (003FFB64759, 001005400E0, 00000C2A780, 003FFB60043)
001004EB5C8  001004115FB (003FFB68180, 00000000000, 000777EBA76, 00000000000)
001004EB5C8  001004CBDEF (00000C2A900, 00000000001, 00000000040, 001801D2D80)
00000C2AB90  00180048471 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  0018004625B (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  001800463B4 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  001004CA631 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  00100401010 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  000777B59ED (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  000778EC541 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace
Makefile:303: recipe for target 'remotetest' failed
make: *** [remotetest] Error 1

user@Wani-PC ~/trunk/src

I rolled back to GCC 4.8.3 and build passed.


Replies (2)

RE: Do not use GCC 4.9.2 while building in CygWin. Use GCC 4.8.3 - Added by Robin Mills almost 7 years ago

Thanks, Nehal. Ummm - perhaps your machine needs more memory. Did you build with $ make -j4 ? Try a less stressful $ make

The build server uses GCC 4.8.3 as you can see in a recent log (about 50 lines up from the bottom). http://exiv2.dyndns.org:8080/job/Exiv2-trunk/label=cygwin/1843/consoleText

I don't think we should worry about this. Can you report it to the GCC folks?

RE: Do not use GCC 4.9.2 while building in CygWin. Use GCC 4.8.3 - Added by Thomas Beutlich over 6 years ago

I also had strange observations with GCC 4.9.2-2 of cygwin. These are gone by current 4.9.2-3. You might be lucky, too.

    (1-2/2)