public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* mingw32 subtle build failure
@ 2006-05-31 21:35 FX Coudert
  2006-05-31 21:38 ` FX Coudert
  2006-05-31 22:58 ` Dave Murphy
  0 siblings, 2 replies; 8+ messages in thread
From: FX Coudert @ 2006-05-31 21:35 UTC (permalink / raw)
  To: GCC Development; +Cc: cgf, dannysmith

Hi all, hi mingw32 maintainers,

I'm experiencing a strange bug building mainline as a native compiler  
on i386-pc-mingw32 (with MSYS). It builds fine with the following  
configure line:

> ../gcc/configure   --prefix=/mingw --with-gmp=/home/coudert/local -- 
> disable-nls --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as -- 
> disable-werror --enable-bootstrap --enable-threads --host=i386-pc- 
> mingw32 --enable-languages=c,fortran

If I add the --enable-libgomp option (I know libgomp is not supposed  
to compile, but go on reading) it fails in configure-stage3- 
libdecnumber (that is, even *before* doing anything with libgomp):  
the error (from config.log) is the following:

> configure:1751: error: C compiler cannot create executables
> xgcc.exe: CreateProcess: No such file or directory

Now, if I run the same command line that failed during configure,  
directly inside a shell, it works nicely. To understand this strange  
failure, I changed libiberty/pex-win32.c to print

> printf ("CreateProcess (%s, %s, ...)\n", full_executable, cmdline);

just before the CreateProcess call, I get the following output:

> configure:1706: checking for C compiler default output file name
> configure:1709:  /home/coudert/ibin-openmp/./prev-gcc/xgcc -B/home/ 
> coudert/ibin-
> openmp/./prev-gcc/ -B/mingw/i386-pc-mingw32/bin/ -g -O2    
> conftest.c  >&5
> CreateProcess (C:\msys\1.0.10\home\coudert\ibin-openmp\prev-gcc 
> \cc1.exe, "C:/msy
> s/1.0.10/home/coudert/ibin-openmp/prev-gcc/cc1.exe" "-quiet" "- 
> iprefix" "c:\msys
> \1.0.10\home\coudert\ibin-openmp\prev-gcc\../lib/gcc/i386-pc- 
> mingw32/4.2.0/" "-i
> system" "C:/msys/1.0.10/home/coudert/ibin-openmp/prev-gcc/include"  
> "conftest.c"
> "-quiet" "-dumpbase" "conftest.c" "-mtune=i386" "-auxbase"  
> "conftest" "-g" "-O2"
> "-o" "C:/DOCUME~1/coudert/LOCALS~1/Temp/ccIVaaaa.s", ...)^M
> CreateProcess (C:\msys\1.0.10\home\coudert\ibin-openmp\prev-gcc\as,  
> "C:/msys/1.0
> .10/home/coudert/ibin-openmp/prev-gcc/as" "-o" "C:/DOCUME~1/coudert/ 
> LOCALS~1/Tem
> p/ccgHbaaa.o" "C:/DOCUME~1/coudert/LOCALS~1/Temp/ccIVaaaa.s", ...)^M
> CreateProcess (C:\msys\1.0.10\bin\sh.exe, "\bin\sh" "C:/msys/1.0.10/ 
> home/coudert
> /ibin-openmp/prev-gcc/as" "-o" "C:/DOCUME~1/coudert/LOCALS~1/Temp/ 
> ccgHbaaa.o" "C
> :/DOCUME~1/coudert/LOCALS~1/Temp/ccIVaaaa.s", ...)^M
> xgcc.exe: CreateProcess: No such file or directory^M

I'm trying to understand exactly why all this only happens for -- 
enable-libgomp builds (it's 100% reproducible for me, with different  
versions of mainline, bootstrapping everytime). So, is what I'm  
seeing an expected behaviour? How can I investigate further?

Thanks,
FX

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: mingw32 subtle build failure
@ 2006-05-31 22:18 Ross Ridge
  0 siblings, 0 replies; 8+ messages in thread
From: Ross Ridge @ 2006-05-31 22:18 UTC (permalink / raw)
  To: gcc

FX Coudert wrote:
> -B/mingw/i386-pc-mingw32/bin/

This looks wrong, it should be "/mingw/mingw32/bin".  Putting a copy of
as and ld in "/mingw/i386-pc-mingw32/bin" might work around your problem.

					Ross Ridge

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-01 18:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-31 21:35 mingw32 subtle build failure FX Coudert
2006-05-31 21:38 ` FX Coudert
2006-05-31 23:08   ` Christopher Faylor
2006-06-01  6:29     ` Ranjit Mathew
2006-06-01 18:42       ` Christopher Faylor
2006-05-31 22:58 ` Dave Murphy
2006-05-31 23:06   ` FX Coudert
2006-05-31 22:18 Ross Ridge

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