-pthread in gcc

Ken Brown kbrown@cornell.edu
Sat Feb 14 14:56:00 GMT 2015

On 2/6/2015 4:28 AM, JonY wrote:
> On 2/6/2015 16:30, Pavel Fedin wrote:
>>   Hello!
>>> use -2 version
>>> https://cygwin.com/ml/cygwin-announce/2015-02/msg00006.html
>>   I have just checked, i have it installed. I even tried to reinstall it, but
>> the problem is still there:
> Confirmed, looks like the original patch no longer works, I'll need to
> find out how to fix this.

Any progress on this issue?  It's preventing me from rebuilding texlive.  I'm 
trying to find a workaround, but so far I haven't even been able to figure out 
why -pthread is showing up on the link command line.  It happens for only three 
of the executables, and only on 32-bit Cygwin.  For example:

libtool: link: gcc -Wimplicit -Wreturn-type -Wdeclaration-after-statement 
-Wno-unknown-pragmas -ggdb -O2 -pipe -Wimplicit-function-declaration 
-o .libs/mpost.exe mpost-mpost.o mpost-mpxout.o  libmplib.a 
-lcairo -lgobject-2.0 -lffi -lglib-2.0 /usr/lib/libintl.dll.a 
/usr/lib/libiconv.dll.a /usr/lib/libpcre.dll.a /usr/lib/libfontconfig.dll.a 
/usr/lib/libexpat.dll.a /usr/lib/libfreetype.dll.a -lbz2 -lEGL -lGL -lpthread 
/usr/lib/libXdamage.dll.a /usr/lib/libXfixes.dll.a /usr/lib/libX11-xcb.dll.a 
/usr/lib/libxcb-glx.dll.a /usr/lib/libxcb-shm.dll.a /usr/lib/libxcb-render.dll.a 
/usr/lib/libXrender.dll.a /usr/lib/libXext.dll.a /usr/lib/libX11.dll.a 
/usr/lib/libxcb.dll.a /usr/lib/libXau.dll.a /usr/lib/libXdmcp.dll.a 
/usr/lib/libpixman-1.dll.a /usr/lib/libpng16.dll.a -lz -pthread
gcc: error: unrecognized command line option '-pthread'
Makefile:4664: recipe for target 'mpost.exe' failed


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

More information about the Cygwin mailing list