public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/22259] New: spawnv cannot execute gcc/as
@ 2005-06-30 20:10 fxcoudert at gcc dot gnu dot org
  2005-06-30 20:16 ` [Bug bootstrap/22259] " fxcoudert at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-30 20:10 UTC (permalink / raw)
  To: gcc-bugs

Building gcc on i686-pc-mingw32 fails with:

/home/FX/ibin/./gcc/xgcc -B/home/FX/ibin/./gcc/ -B/mingw/i686-pc-mingw32/bin/
-B/mingw/i686-pc-mingw32/lib/ -isystem /mingw/i686-pc-mingw32/include -isystem
/mingw/i686-pc-mingw32/sys-include -O2 -I../../gcc/gcc/../winsup/w32api/include
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I./../intl -I../../gcc/gcc/../libcpp/include 
-DL_chkstk -xassembler-with-cpp -c ../../gcc/gcc/config/i386/cygwin.asm -o
libgcc/./_chkstk.o
executable: C:/msys/1.0/home/FX/ibin/gcc/cc1.exe
executable: C:/msys/1.0/home/FX/ibin/gcc/as
xgcc.exe: _spawnv: No such file or directory

[lines beginning with "executable:" are debug statements printing the executable
argument to pex_win32_exec_child, in libiberty/pex-win32.c]

In fact, xgcc cannot be used. It tries to execute gcc/cc1.exe, which works fine,
then gcc/as. gcc/as is a script, and not a real win32 executable program. Thus
the spawn fails.

I don't know when this stopped to work. Seems that "before", the assembler was
called directly and not by this script. Does someone know when this changed, and
does someone have an idea on how to fix this?

-- 
           Summary: spawnv cannot execute gcc/as
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-mingw32


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


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

* [Bug bootstrap/22259] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
@ 2005-06-30 20:16 ` fxcoudert at gcc dot gnu dot org
  2005-06-30 20:20 ` [Bug bootstrap/22259] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-30 20:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-06-30 20:16 -------
Looks related to bonzini's 2005-06-16 patch
(http://gcc.gnu.org/ml/gcc-cvs/2005-06/msg00667.html). Adding him to Cc list.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gcc dot gnu dot
                   |                            |org


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
  2005-06-30 20:16 ` [Bug bootstrap/22259] " fxcoudert at gcc dot gnu dot org
@ 2005-06-30 20:20 ` pinskia at gcc dot gnu dot org
  2005-07-01 21:34 ` ian at airs dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-30 20:20 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|spawnv cannot execute gcc/as|[4.1 Regression] spawnv
                   |                            |cannot execute gcc/as
   Target Milestone|---                         |4.1.0


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
  2005-06-30 20:16 ` [Bug bootstrap/22259] " fxcoudert at gcc dot gnu dot org
  2005-06-30 20:20 ` [Bug bootstrap/22259] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-01 21:34 ` ian at airs dot com
  2005-07-01 21:45 ` dje at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ian at airs dot com @ 2005-07-01 21:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-01 21:34 ` ian at airs dot com
@ 2005-07-01 21:45 ` dje at gcc dot gnu dot org
  2005-07-02  2:49 ` dannysmith at users dot sourceforge dot net
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-07-01 21:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-07-01 21:44 -------
One option: have gcc/Makefile stamp-as target test "build" and output
appropriate script to MS Windows BATCH file as.bat.

*) case "$build" in \
    *mingw32*) echo 'XXX' > as.bat \
       ... ;;
    *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \
       chmod +x as ;; \
    esac
esac

assuming that GCC execing "as" will find as.bat.  The link/copy for other
directories using as$(exeext) might also cause problems.  So one might need to
place the mingw32 test as the outer case and separate the entire logic for ./*,
../*, and * between mingw32 and everything else.

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-01 21:45 ` dje at gcc dot gnu dot org
@ 2005-07-02  2:49 ` dannysmith at users dot sourceforge dot net
  2005-07-02  8:08 ` fxcoudert at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2005-07-02  2:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dannysmith at users dot sourceforge dot net  2005-07-02 02:49 -------
A workaround is to specify the full path to as in configure script, eg

--with-as=/mingw/bin/as.exe --with-ld=/mingw.bin/ld.exe --
with /nm=/mingw/bin/ld.exe

Danny

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-07-02  2:49 ` dannysmith at users dot sourceforge dot net
@ 2005-07-02  8:08 ` fxcoudert at gcc dot gnu dot org
  2005-07-02  8:55 ` fxcoudert at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-07-02  8:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-07-02 08:08 -------
> One option: have gcc/Makefile stamp-as target test "build" and output
> appropriate script to MS Windows BATCH file as.bat.

I tried to copy the assembler in the tree, instead of making a script pointing
to it. It works. Is there any drawback to this approach?

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-07-02  8:08 ` fxcoudert at gcc dot gnu dot org
@ 2005-07-02  8:55 ` fxcoudert at gcc dot gnu dot org
  2005-07-02 17:18 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-07-02  8:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-07-02 08:55 -------
Created an attachment (id=9192)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9192&action=view)
Patch

Attached patch implements the idea of making a special case for mingw32 in
stamp-as, stamp-collect-ld and stamp-nm (gcc/Makefile.in).

It does fix this problem.

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-07-02  8:55 ` fxcoudert at gcc dot gnu dot org
@ 2005-07-02 17:18 ` pinskia at gcc dot gnu dot org
  2005-07-21  7:47 ` bonzini at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02 17:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 17:18 -------
Patch here but you forgot the changeLog :).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |07/msg00086.html
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-02 17:18:36
               date|                            |


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-07-02 17:18 ` pinskia at gcc dot gnu dot org
@ 2005-07-21  7:47 ` bonzini at gcc dot gnu dot org
  2005-08-02 21:31 ` fxcoudert at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-07-21  7:47 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bonzini at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-07-02 17:18:36         |2005-07-21 07:38:20
               date|                            |


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-07-21  7:47 ` bonzini at gcc dot gnu dot org
@ 2005-08-02 21:31 ` fxcoudert at gcc dot gnu dot org
  2005-08-06 11:39 ` fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-08-02 21:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-08-02 21:31 -------
bonzini, you assigned the bug to yourself, but I haven't seen any patch or
comment to my proposed patch. I'm still looking for someone to okay that patch,
or propose a better way to do it. The number of patches needed to build mingw32
is still growing, so i'd like to get this one fixed.

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-08-02 21:31 ` fxcoudert at gcc dot gnu dot org
@ 2005-08-06 11:39 ` fxcoudert at gcc dot gnu dot org
  2005-08-08 16:32 ` bonzini at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-08-06 11:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-08-06 11:39 -------
Patch pinged (for the second time). ChangeLog entry provided.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|http://gcc.gnu.org/ml/gcc-  |http://gcc.gnu.org/ml/gcc-
                   |patches/2005-               |patches/2005-
                   |07/msg00086.html            |08/msg00379.html


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-08-06 11:39 ` fxcoudert at gcc dot gnu dot org
@ 2005-08-08 16:32 ` bonzini at gcc dot gnu dot org
  2005-09-03 19:58 ` fxcoudert at gcc dot gnu dot org
  2005-09-15 22:36 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-08 16:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bonzini at gcc dot gnu dot org  2005-08-08 16:32 -------
I don't like the patch, the correct way is to teach pex-win32.c about '#!'
because GCC is built under a Unix-like environment (MSYS).

Paolo

-- 


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-08-08 16:32 ` bonzini at gcc dot gnu dot org
@ 2005-09-03 19:58 ` fxcoudert at gcc dot gnu dot org
  2005-09-15 22:36 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-03 19:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-09-03 19:58 -------
>From what I have seen on the gcc ml, it looks like the opposition to a
pex-win32.c patch (Mark) agrees on it, and Christopher said in
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg00513.html he could do it. Adding
him to the PR. Maybe the assignment should be changed, too.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cgf at alum dot bu dot edu


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


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

* [Bug bootstrap/22259] [4.1 Regression] spawnv cannot execute gcc/as
  2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2005-09-03 19:58 ` fxcoudert at gcc dot gnu dot org
@ 2005-09-15 22:36 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-15 22:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-15 22:36 -------
Fixed by:
2005-09-14  Christopher Faylor  <cgf@timesys.com>

        * pex-win32.c: Include "windows.h".
        (backslashify): New function.
        (fix_argv): Use backslashify to convert path to windows format.
        Allocate one more place in new argv for potential executable from '#!'
        parsing.
        (tack_on_executable): New function.  Conditional on USE_MINGW_MSYS
        (openkey): Ditto.
        (mingw_rootify): Ditto.
        (msys_rootify): Ditto.
        (spawn_script): New function.
        (pex_win32_exec_child): Save translated argv in newargv.  Pass to
        spawn_script if spawnv* fails.
        (main): New function.  Conditional on MAIN.  Useful for testing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-09-15 22:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30 20:10 [Bug bootstrap/22259] New: spawnv cannot execute gcc/as fxcoudert at gcc dot gnu dot org
2005-06-30 20:16 ` [Bug bootstrap/22259] " fxcoudert at gcc dot gnu dot org
2005-06-30 20:20 ` [Bug bootstrap/22259] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-01 21:34 ` ian at airs dot com
2005-07-01 21:45 ` dje at gcc dot gnu dot org
2005-07-02  2:49 ` dannysmith at users dot sourceforge dot net
2005-07-02  8:08 ` fxcoudert at gcc dot gnu dot org
2005-07-02  8:55 ` fxcoudert at gcc dot gnu dot org
2005-07-02 17:18 ` pinskia at gcc dot gnu dot org
2005-07-21  7:47 ` bonzini at gcc dot gnu dot org
2005-08-02 21:31 ` fxcoudert at gcc dot gnu dot org
2005-08-06 11:39 ` fxcoudert at gcc dot gnu dot org
2005-08-08 16:32 ` bonzini at gcc dot gnu dot org
2005-09-03 19:58 ` fxcoudert at gcc dot gnu dot org
2005-09-15 22:36 ` pinskia at gcc dot gnu dot org

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