This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc] can't build current trunk: ar: .libs/libgomp.lib: File format not recognized
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: Christian Joensson <christian dot joensson at gmail dot com>, bonzini at gnu dot org
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Date: Mon, 25 Jan 2010 09:04:42 -0500
- Subject: Re: [gcc] can't build current trunk: ar: .libs/libgomp.lib: File format not recognized
- References: <5460e3331001250102l80a6e05j336202d4d74bc360@mail.gmail.com> <5460e3331001250316o408187dcg8858bfc29e23ae2d@mail.gmail.com>
Quoting Christian Joensson <christian.joensson@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?
2010-01-23 Joern Rennecke <amylaar@spamcop.net>
PR libstdc++/36101, PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Make inclusion of
target-libgomp conditional on libgomb being in target_configdirs.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 156191)
+++ configure.ac (working copy)
@@ -1744,7 +1744,7 @@ fi
stage1_languages=,c,
# Target libraries that we bootstrap.
-bootstrap_target_libs=,target-libgcc,target-libgomp,
+bootstrap_target_libs=,target-libgcc,
# Figure out what language subdirectories are present.
# Look if the user specified --enable-languages="..."; if not, use
@@ -2540,6 +2540,11 @@ fi
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
+# If we are building libgomp, bootstrap it.
+if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
+ bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
+fi
+
# Determine whether gdb needs tk/tcl or not.
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
# and in that case we want gdb to be built without tk. Ugh!
Index: configure
===================================================================
--- configure (revision 156191)
+++ configure (working copy)
@@ -6545,7 +6545,7 @@ fi
stage1_languages=,c,
# Target libraries that we bootstrap.
-bootstrap_target_libs=,target-libgcc,target-libgomp,
+bootstrap_target_libs=,target-libgcc,
# Figure out what language subdirectories are present.
# Look if the user specified --enable-languages="..."; if not, use
@@ -7394,6 +7394,11 @@ fi
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
+# If we are building libgomp, bootstrap it.
+if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
+ bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
+fi
+
# Determine whether gdb needs tk/tcl or not.
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
# and in that case we want gdb to be built without tk. Ugh!