public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* error with libmoldname.a
@ 2013-07-13 11:47 Florent Monnier
  2013-07-13 14:25 ` JonY
  2013-07-17 11:55 ` Altgr
  0 siblings, 2 replies; 8+ messages in thread
From: Florent Monnier @ 2013-07-13 11:47 UTC (permalink / raw)
  To: cygwin

Hi,
One week ago a project compiled under Cygwin with CC defined as bellow
was compiling just fust fine,
CC = c:/cygwin/bin/i686-w64-mingw32-gcc.exe

But since yesterday, after a cygwin update, I get the following error:

Fatal error: Error while reading:
 C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
 end-of-file

$ ll C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a
-rw-r--r-- 1 Seven None 8  7 juil. 13:36
C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a

$ md5sum C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a
ab0a4c8c62da160eaae565341c07f202

$ xxd C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a
0000000: 213c 6172 6368 3e0a                      !<arch>.

Does someone know what's wrong, and how to fix it?

-- 
Regards

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-13 11:47 error with libmoldname.a Florent Monnier
@ 2013-07-13 14:25 ` JonY
  2013-07-13 18:19   ` Florent Monnier
  2013-07-17 11:55 ` Altgr
  1 sibling, 1 reply; 8+ messages in thread
From: JonY @ 2013-07-13 14:25 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

On 7/13/2013 17:46, Florent Monnier wrote:
> Hi,
> One week ago a project compiled under Cygwin with CC defined as bellow
> was compiling just fust fine,
> CC = c:/cygwin/bin/i686-w64-mingw32-gcc.exe
> 
> But since yesterday, after a cygwin update, I get the following error:
> 
> Fatal error: Error while reading:
>  C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
>  end-of-file
> 

How are you causing the error? Please show the full command line.




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-13 14:25 ` JonY
@ 2013-07-13 18:19   ` Florent Monnier
  2013-07-13 21:02     ` JonY
  0 siblings, 1 reply; 8+ messages in thread
From: Florent Monnier @ 2013-07-13 18:19 UTC (permalink / raw)
  To: cygwin

2013/07/13, JonY wrote:
> On 7/13/2013 17:46, Florent Monnier wrote:
>> Hi,
>> One week ago a project compiled under Cygwin with CC defined as bellow
>> was compiling just fust fine,
>> CC = c:/cygwin/bin/i686-w64-mingw32-gcc.exe
>>
>> But since yesterday, after a cygwin update, I get the following error:
>>
>> Fatal error: Error while reading:
>>  C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
>>  end-of-file
>>
>
> How are you causing the error? Please show the full command line.

This is a compilation of ocaml and SDL2 together
(SDL2 from the scm of 2013-07-07, and protz OCaml (not cygwin one)
version 4.00.1)
the project is this one:
https://github.com/blue-prawn/OCamlSDL2

Again this project was compiling just fine one week ago, and after a
Cygwin update, I now get this error:

-v turns verbosity on so the second line that starts with + is the
underlying command called by the first one

$ ocamlmklib -v -ocamlc 'ocamlc -cc
"c:/cygwin/bin/i686-w64-mingw32-gcc.exe -g "' -ocamlopt 'ocamlopt -cc
"c:/cygwin/bin/i686-w64-mingw32-gcc.exe -g " -g' -o sdl2 -oc
sdl2_stubs  sdlinit_stub.o  sdlquit_stub.o  sdlrect_stub.o
sdlblendMode_stub.o  sdlsurface_stub.o  sdlwindow_stub.o
sdlrender_stub.o  sdltexture_stub.o  sdlpixel_stub.o  sdlevent_stub.o
sdlkeyboard_stub.o  sdlkeymod_stub.o  sdlmouse_stub.o
sdljoystick_stub.o  sdlinput_stub.o  sdlclipboard_stub.o
sdltimer_stub.o  sdlgl_stub.o  sdlaudio_stub.o  sdlversion_stub.o
sdlcpuinfo_stub.o  sdlpower_stub.o  sdlerror_stub.o
sdl_platform_stub.o -L/usr/local/lib -lmingw32 -lSDL2main -lSDL2 -lm
-luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32
-lversion -luuid

+ flexlink -chain mingw -stack 16777216 -o .\dllsdl2_stubs.dll
sdlinit_stub.o sdlquit_stub.o sdlrect_stub.o sdlblendMode_stub.o
sdlsurface_stub.o sdlwindow_stub.o sdlrender_stub.o sdltexture_stub.o
sdlpixel_stub.o sdlevent_stub.o sdlkeyboard_stub.o sdlkeymod_stub.o
sdlmouse_stub.o sdljoystick_stub.o sdlinput_stub.o sdlclipboard_stub.o
sdltimer_stub.o sdlgl_stub.o sdlaudio_stub.o sdlversion_stub.o
sdlcpuinfo_stub.o sdlpower_stub.o sdlerror_stub.o sdl_platform_stub.o
  -L/usr/local/lib -lmingw32 -lSDL2main -lSDL2 -lm -luser32 -lgdi32
-lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid

** Fatal error: Error while reading
C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
End_of_file

Do you know what the problem could be? and how to fix it?

-- 
Regards

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-13 18:19   ` Florent Monnier
@ 2013-07-13 21:02     ` JonY
  2013-07-14 10:32       ` [solved] " Florent Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: JonY @ 2013-07-13 21:02 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]

On 7/13/2013 22:25, Florent Monnier wrote:
> + flexlink -chain mingw -stack 16777216 -o .\dllsdl2_stubs.dll
> sdlinit_stub.o sdlquit_stub.o sdlrect_stub.o sdlblendMode_stub.o
> sdlsurface_stub.o sdlwindow_stub.o sdlrender_stub.o sdltexture_stub.o
> sdlpixel_stub.o sdlevent_stub.o sdlkeyboard_stub.o sdlkeymod_stub.o
> sdlmouse_stub.o sdljoystick_stub.o sdlinput_stub.o sdlclipboard_stub.o
> sdltimer_stub.o sdlgl_stub.o sdlaudio_stub.o sdlversion_stub.o
> sdlcpuinfo_stub.o sdlpower_stub.o sdlerror_stub.o sdl_platform_stub.o
>   -L/usr/local/lib -lmingw32 -lSDL2main -lSDL2 -lm -luser32 -lgdi32
> -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
> 
> ** Fatal error: Error while reading
> C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
> End_of_file
> 

Maybe flexlink needs to learn to handle empty archives? You can copy
libm.a over to libmoldname.a as another workaround.





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [solved] error with libmoldname.a
  2013-07-13 21:02     ` JonY
@ 2013-07-14 10:32       ` Florent Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Florent Monnier @ 2013-07-14 10:32 UTC (permalink / raw)
  To: cygwin

2013/07/13, JonY wrote:
> On 7/13/2013 22:25, Florent Monnier wrote:
>> + flexlink -chain mingw -stack 16777216 -o .\dllsdl2_stubs.dll
>> sdlinit_stub.o sdlquit_stub.o sdlrect_stub.o sdlblendMode_stub.o
>> sdlsurface_stub.o sdlwindow_stub.o sdlrender_stub.o sdltexture_stub.o
>> sdlpixel_stub.o sdlevent_stub.o sdlkeyboard_stub.o sdlkeymod_stub.o
>> sdlmouse_stub.o sdljoystick_stub.o sdlinput_stub.o sdlclipboard_stub.o
>> sdltimer_stub.o sdlgl_stub.o sdlaudio_stub.o sdlversion_stub.o
>> sdlcpuinfo_stub.o sdlpower_stub.o sdlerror_stub.o sdl_platform_stub.o
>>   -L/usr/local/lib -lmingw32 -lSDL2main -lSDL2 -lm -luser32 -lgdi32
>> -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
>>
>> ** Fatal error: Error while reading
>> C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
>> End_of_file
>>
>
> Maybe flexlink needs to learn to handle empty archives? You can copy
> libm.a over to libmoldname.a as another workaround.

Indeed your workaround solves the compilation error.
Thank you very much!

I've reported the problem to the author of FlexDLL.

-- 
Regards

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-13 11:47 error with libmoldname.a Florent Monnier
  2013-07-13 14:25 ` JonY
@ 2013-07-17 11:55 ` Altgr
  2013-07-17 12:54   ` JonY
  1 sibling, 1 reply; 8+ messages in thread
From: Altgr @ 2013-07-17 11:55 UTC (permalink / raw)
  To: cygwin

Florent Monnier <monnier.florent <at> gmail.com> writes:

> 
> But since yesterday, after a cygwin update, I get the following error:
> 
> Fatal error: Error while reading:
>  C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
>  end-of-file
>
> Does someone know what's wrong, and how to fix it?
> 


I could temporarily solve the issue by installing the older version of
mingw64-i686-runtime (3.0b_svn5747-1 instead of 3.0b_svn5935-1)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-17 11:55 ` Altgr
@ 2013-07-17 12:54   ` JonY
  2013-07-17 15:53     ` Florent Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: JonY @ 2013-07-17 12:54 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

On 7/17/2013 17:12, Altgr wrote:
> Florent Monnier <monnier.florent <at> gmail.com> writes:
> 
>>
>> But since yesterday, after a cygwin update, I get the following error:
>>
>> Fatal error: Error while reading:
>>  C:/cygwin/usr/i686-w64-mingw32/sys-root/mingw/lib/libmoldname.a:
>>  end-of-file
>>
>> Does someone know what's wrong, and how to fix it?
>>
> 
> 
> I could temporarily solve the issue by installing the older version of
> mingw64-i686-runtime (3.0b_svn5747-1 instead of 3.0b_svn5935-1)
> 

Do not do this, this will break the compiler and some header
dependencies as well. You may need to reinstall all mingw64-* to fix the
problem.

I think flexlink upstream already mentioned this was fixed.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: error with libmoldname.a
  2013-07-17 12:54   ` JonY
@ 2013-07-17 15:53     ` Florent Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Florent Monnier @ 2013-07-17 15:53 UTC (permalink / raw)
  To: cygwin

2013/07/17, JonY wrote:
> On 07/17/2013 17:12, Altgr wrote:
[...]
>> I could temporarily solve the issue by installing the older version of
>> mingw64-i686-runtime (3.0b_svn5747-1 instead of 3.0b_svn5935-1)
>>
>
> Do not do this, this will break the compiler and some header
> dependencies as well. You may need to reinstall all mingw64-* to fix the
> problem.
>
> I think flexlink upstream already mentioned this was fixed.

Yes it does.
How to update is explained in the second answer of this message:
https://sympa.inria.fr/sympa/arc/caml-list/2013-07/msg00098.html

-- 
Regards

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-17 15:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-13 11:47 error with libmoldname.a Florent Monnier
2013-07-13 14:25 ` JonY
2013-07-13 18:19   ` Florent Monnier
2013-07-13 21:02     ` JonY
2013-07-14 10:32       ` [solved] " Florent Monnier
2013-07-17 11:55 ` Altgr
2013-07-17 12:54   ` JonY
2013-07-17 15:53     ` Florent Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).