2010/1/25 Joern Rennecke:
> Quoting Dave Korn <dave.korn.cyg...@googlemail.com>:
>
>> On 25/01/2010 14:04, Joern Rennecke wrote:
>>>
>>> Quoting Christian Joensson <christian.joens...@gmail.com>:
>>>>>
>>>>> -Xlinker .libs/libgomp-1.dll
>>>>> xgcc: unrecognized option '-pthread'
>>>
>>> Oops, we can't actually always bootstrap libgomp - we shouldn't try if
>>> it's
>>> not in target_configdirs.
>>>
>>> Does the cygwin build work with the attached patch?
>>
>>  Was this question and/or patch inspired by the "unrecognized option
>> -pthread" warning above?
>
> Well, I though the reason why you ended up with an unrecognized type
> libgomp-1.dll was that this diagnostic indicatde a serious problem.
>
>> Only we've always gotten that on cygwin and it's
>> always been harmless up til now.
>
> So how is a build with r156189 different from a build with provious
> revision?  > (I'm not up-to-date with head,
>>
>> right now I'm
>> still on r.156105 where the problem apparently arose at r.156189; I'll
>> update
>> to head and get a build going.)
>
> I've now committed the patch as r156218, but we'd still like to know if that
> fixes cygwin builds.

FWIW, I still get a problem, this:

/bin/sh ./libtool --tag CC   --mode=link
/usr/local/src/trunk/objdir/./gcc/xgcc
-B/usr/local/src/trunk/objdir/./gcc/
-B/usr/local/gnu/i686-pc-cygwin/bin/
-B/usr/local/gnu/i686-pc-cygwin/lib/ -isystem
/usr/local/gnu/i686-pc-cygwin/include -isystem
/usr/local/gnu/i686-pc-cygwin/sys-include    -Wall -Werror
-Wc,-pthread -g -O2   -Wl,-O1   -o libgomp.la -version-info 1:0:0
-no-undefined -bindir "/usr/local/gnu/bin" -rpath
/usr/local/gnu/lib/gcc/i686-pc-cygwin/4.5.0 alloc.lo barrier.lo
critical.lo env.lo error.lo iter.lo iter_ull.lo loop.lo loop_ull.lo
ordered.lo parallel.lo sections.lo single.lo task.lo team.lo work.lo
lock.lo mutex.lo proc.lo sem.lo bar.lo ptrlock.lo time.lo fortran.lo
affinity.lo
libtool: link: /usr/local/src/trunk/objdir/./gcc/xgcc
-B/usr/local/src/trunk/objdir/./gcc/
-B/usr/local/gnu/i686-pc-cygwin/bin/
-B/usr/local/gnu/i686-pc-cygwin/lib/ -isystem
/usr/local/gnu/i686-pc-cygwin/include -isystem
/usr/local/gnu/i686-pc-cygwin/sys-include    -shared  .libs/alloc.o
.libs/barrier.o .libs/critical.o .libs/env.o .libs/error.o
.libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ull.o
.libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o
.libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o
.libs/proc.o .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o
.libs/fortran.o .libs/affinity.o    -pthread -Wl,-O1   -o
.libs/libgomp-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib
-Xlinker .libs/libgomp-1.dll
xgcc: unrecognized option '-pthread'
Creating library file: .libs/libgomp-1.dll
libtool: link: (cd ".libs" && rm -f "libgomp.lib" && ln -s
"libgomp-1.dll" "libgomp.lib")
libtool: link: ar rc .libs/libgomp.lib  alloc.o barrier.o critical.o
env.o error.o iter.o iter_ull.o loop.o loop_ull.o ordered.o parallel.o
sections.o single.o task.o team.o work.o lock.o mutex.o proc.o sem.o
bar.o ptrlock.o time.o fortran.o affinity.o
ar: .libs/libgomp.lib: File format not recognized
make[5]: *** [libgomp.la] Error 1
make[5]: Leaving directory `/usr/local/src/trunk/objdir/i686-pc-cygwin/libgomp'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/trunk/objdir/i686-pc-cygwin/libgomp'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/trunk/objdir/i686-pc-cygwin/libgomp'
make[2]: *** [all-stage1-target-libgomp] Error 2
make[2]: Leaving directory `/usr/local/src/trunk/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/local/src/trunk/objdir'
make: *** [all] Error 2

(and, yes, I've been building with libgomp for quite a while on
cygwin, and, yes, I do remember the pthread warning showing up before,
mentioned it to Dave, and it hadn't caused me problems before to my
understanding)

-- 
Cheers,

/ChJ

Reply via email to