-pthread in gcc

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


On 2/14/2015 9:27 AM, Marco Atzeri wrote:
>
> On 2/14/2015 2:07 PM, Ken Brown wrote:
>> On 2/6/2015 4:28 AM, JonY wrote:
>>> On 2/6/2015 16:30, Pavel Fedin wrote:
>>>>   Hello!
>
>>
>> libtool: link: gcc -Wimplicit -Wreturn-type
>> -Wdeclaration-after-statement -Wno-unknown-pragmas -ggdb -O2 -pipe
>> -Wimplicit-function-declaration
>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20140523-2.i686/build=/usr/src/debug/texlive-20140523-2
>>
>> -fdebug-prefix-map=/home/kbrown/src/cygtexlive/texlive/texlive-20140523-2.i686/src/texlive-20140523-source=/usr/src/debug/texlive-20140523-2
>>
>> -o .libs/mpost.exe mpost-mpost.o mpost-mpxout.o  libmplib.a
>> /home/kbrown/src/cygtexlive/texlive/texlive-20140523-2.i686/build/texk/kpathsea/.libs/libkpathsea.dll.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
>>
>> Ken
>>
>
> Ken,
> as workaround
>
> check if the "-pthread" is reported in a /usr/lib/*.la file
> or in a "/usr/lib/pkgconfig/*.pc" and zap it

Thanks, Marco.  The culprit was /usr/lib/libpixman-1.la, which exists in the 
32-bit distro only.

Ken

--
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