[Bug libgomp/42125] New: check libgomp fails
bwcc60 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 20 21:25:00 GMT 2009
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
More information about the Gcc-bugs
mailing list