public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/42125]  New: check libgomp  fails
@ 2009-11-20 21:25 bwcc60 at hotmail dot com
  0 siblings, 0 replies; only message in thread
From: bwcc60 at hotmail dot com @ 2009-11-20 21:25 UTC (permalink / raw)
  To: gcc-bugs

I downloaded the source code gcc 4.4.2 and compiled at cygwin. I used 

../gcc-4.4.2/configure --enable-shared --enable-threads=posix --enable-libssp
--enable-libgomp --enable-languages=c,c++ --enable-decimal-float
--disable-bootstrap --without-x --enable-version-specific-runtime-libs

to do configure, then make. The first errors are

xgcc -pthread is not recognized
"libgomp.lib: File format not recognized"

so I changed /i686-pc-cygwin/libgomp/libtool file and search for the ".lib"
file extension and change it to ".dll.a". 

and modify file /i686-pc-cygwin/libgomp/Makefile with 

        CFLAGS = -g -O2   -pthread      
        XCFLAGS =  -Wall -Werror -Wc,-pthread   

        changed to  
        CFLAGS = -g -O2   
        XCFLAGS =  -Wall -Werror -Wc,

added -lpthread at line:

libgomp.la: $(libgomp_la_OBJECTS) $(libgomp_la_DEPENDENCIES) 
        $(LINK) -rpath $(toolexeclibdir) $(libgomp_la_LDFLAGS)
$(libgomp_la_OBJECTS) $(libgomp_la_LIBADD) $(LIBS) -lpthread

Then again to do make. This time it goes thought. But when use

make check-target-libgomp

to do check, every case fails. It seems that a thread-support library doesn't
generated with libgomp.


-- 
           Summary: check libgomp  fails
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bwcc60 at hotmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42125


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-20 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-20 21:25 [Bug libgomp/42125] New: check libgomp fails bwcc60 at hotmail dot com

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