[Bug c/89066] New: After creating valid paths, the \ in source directory are / which creates "No such file or directory"

2019-01-25 Thread icypawn at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89066

Bug ID: 89066
   Summary: After creating valid paths, the \ in source directory
are / which creates "No such file or directory"
   Product: gcc
   Version: 8.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: icypawn at aol dot com
  Target Milestone: ---

In my direcory:
N:\nesys\asm6\src

after typing:
gcc -v -save-temps good.c -o good > ok.txt 2>&1

ok.txt reads:
Using built-in specs.
COLLECT_GCC=gcc
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/c/mingw810/i686-810-win32-sjlj-rt_v6-rev0/mingw32
--enable-shared --enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=win32 --enable-libgomp --enable-libatomic --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --enable-sjlj-exceptions
--disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686
--with-arch-64=nocona --with-tune-32=generic --with-tune-64=core2
--with-libiconv --with-system-zlib
--with-gmp=/c/mingw810/prerequisites/i686-w64-mingw32-static
--with-mpfr=/c/mingw810/prerequisites/i686-w64-mingw32-static
--with-mpc=/c/mingw810/prerequisites/i686-w64-mingw32-static
--with-isl=/c/mingw810/prerequisites/i686-w64-mingw32-static
--with-pkgversion='i686-win32-sjlj-rev0, Built by MinGW-W64 project'
--with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe
-fno-ident -I/c/mingw810/i686-810-win32-sjlj-rt_v6-rev0/mingw32/opt/include
-I/c/mingw810/prerequisites/i686-zlib-static/include
-I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2
-pipe -fno-ident
-I/c/mingw810/i686-810-win32-sjlj-rt_v6-rev0/mingw32/opt/include
-I/c/mingw810/prerequisites/i686-zlib-static/include
-I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS='
-I/c/mingw810/i686-810-win32-sjlj-rt_v6-rev0/mingw32/opt/include
-I/c/mingw810/prerequisites/i686-zlib-static/include
-I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' LDFLAGS='-pipe
-fno-ident -L/c/mingw810/i686-810-win32-sjlj-rt_v6-rev0/mingw32/opt/lib
-L/c/mingw810/prerequisites/i686-zlib-static/lib
-L/c/mingw810/prerequisites/i686-w64-mingw32-static/lib
-Wl,--large-address-aware'
Thread model: win32
gcc version 8.1.0 (i686-win32-sjlj-rev0, Built by MinGW-W64 project) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-o' 'good.exe' '-mtune=generic'
'-march=i686'
 cc1 -E -quiet -v -iprefix N:/nesys/asm6/src/../lib/gcc/i686-w64-mingw32/8.1.0/
-U_REENTRANT good.c -mtune=generic -march=i686 -fpch-preprocess -o good.i
gcc: error: CreateProcess: No such file or directory
*eof

And so I think this happens because the second to last line beginning with
"cc1" has the directory after -iprefix "N:/nesys/asm6/src/.." and in cmd the
directories have to use \.  I noticed this after looking though someone else's
post in a forum citing output from a "gcc -v" line.  Their text had "-iprefix
c:\mingw.4.7.2\bin\../lib/gcc/i686-pc-mingw32/4.7.2/" and my slashes from my -v
response, in the source directory, are backwards... so I think it's a bug.

Sorry, if this isn't a bug.
Matthew

p.s. The -save-temps didn't return a *.i* file; I think that's because good.c
is 0kb or empty.  I received the exact same -v response when using my source
file and didn't think this "bug" has anything to do with the gcc compiler
compiling... so I substituted my empty good.c.  Hope that's ok. :)

[Bug driver/89066] After creating valid paths, the \ in source directory are / which creates "No such file or directory"

2019-01-25 Thread icypawn at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89066

--- Comment #3 from Matthew Wuensche  ---
I ran the online installer... and received this file mingw-w64-install.exe. 
And I reran the file to make sure all of those files were added.  I found cc1
and added that path before submitting my "bug" report.

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"C:\Program
Files (x86)\ATI Technologies\ATI.ACE\Core-Static";"C:\Program Files
(x86)\Common
Files\lenovo\easyplussdk\bin";C:\WINDOWS\System32\OpenSSH\;C:\Users\auser\AppData\Local\Microsoft\WindowsApps;"C:\Program
Files (x86)\mingw-w64\i686-8.1.0-win32-sjlj-rt_v6-rev0\mingw32\bin";"C:\Program
Files
(x86)\mingw-w64\i686-8.1.0-win32-sjlj-rt_v6-rev0\mingw32\libexec\gcc\i686-w64-mingw32\8.1.0"

see the last path?  That's where cc1.exe is. :)

[Bug driver/89066] After creating valid paths, the \ in source directory are / which creates "No such file or directory"

2019-01-25 Thread icypawn at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89066

--- Comment #4 from Matthew Wuensche  ---
(In reply to Andrew Pinski from comment #2)
> >Built by MinGW-W64 project
> 
> Can you make sure you downloaded all of the correct binaries.

Hi, um... I just uninstalled my online download... then downloaded
i686-8.1.0-release-win32-sjlj-rt_v6-rev0.7z and after running 7-zip and
installing it to the same directory so that the paths would still be valid, I
receive the same response when running gcc in N:\nesys\asm6\src; however, I
still receive an exe if I run gcc from its folder.  Though, the line is
adjusted to:

gcc -v n:\nesys\asm6\src\myfile.c -o myfile

It just doesn't work when it has to use the path to find gcc.  I wish it would
use the path successfully.

That cc1.exe line is now, when not using the path:

C:/Program Files
(x86)/mingw-w64/i686-8.1.0-win32-sjlj-rt_v6-rev0/mingw32/bin/../libexec/gcc/i686-8.1.0-win32-w64-mingw32/8.1.0/cc1.exe
-quiet -v -iprefix C:/Program Files
(x86)/mingw-w64/i686-8.1.0-win32-sjlj-rt_v6-rev0/ming32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/
-U_REENTRANT n:\nesys\asm6\src\myfile.c -quiet -dumpbase myfile.c
-mtune=generic -march=i686 -auxbase myfile -version -o
C:\Users\auser\AppData\Local\Temp\cc14fjys.s

and then it says:

GNU C17 (i686-win32-sjlj-rev0, Built by MinGW-W64 project) version 8.1.0
(i686-w64-mingw32)
compiled by GNU C version 8.1.0, GMP version 6.1.2, MPFR version 4.0.1,
MPC version 1.1.0, isl version isl-0.18-GMP

and then two sections of "GCC heuristics" follow.