Author Topic: No such file or directory?  (Read 12908 times)

Offline RonG

  • Single posting newcomer
  • *
  • Posts: 2
No such file or directory?
« on: August 19, 2010, 12:04:21 am »
Right now I'm using the TDM-GCC 64 bit compiler and I'm running Windows 7 64 bit.

I changed the toolchain directories to the proper ones.


I start with a console project and when I build I get this build log:


-------------- Build: Debug in test3 ---------------

g++.exe -Wall -fexceptions  -g    -I"C:\Users\ron\Documents\programming projects"  -c C:\Users\ron\Documents\programming_projects\test3\main.cpp -o obj\Debug\main.o
g++.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
 

This is the contents of my project directory:
 
C:\Users\ron\Documents\programming_projects\test3>dir
 Volume in drive C has no label.
 Volume Serial Number is 42B4-A958

 Directory of C:\Users\ron\Documents\programming_projects\test3

08/18/2010  05:21 PM    <DIR>          .
08/18/2010  05:21 PM    <DIR>          ..
08/18/2010  04:55 PM    <DIR>          bin
09/15/2007  11:02 AM               117 main.cpp
08/18/2010  04:55 PM    <DIR>          obj
08/18/2010  04:55 PM             1,100 test3.cbp
08/18/2010  05:21 PM               240 test3.layout
               3 File(s)          1,457 bytes
               4 Dir(s)  32,645,849,088 bytes free

C:\Users\ron\Documents\programming_projects\test3>



I had no problems when running a 32 bit version of mingw from Code::Blocks.
Any changes in main are properly saved.
What am I doing wrong?

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: No such file or directory?
« Reply #1 on: August 19, 2010, 01:43:02 am »
The compiler is having trouble finding one of its helper programs. Have you installed all required packages, including the "core" and "binutils" packages? If so, add the "-v" option to the compiler commands, change the logging to "Full command line" in the last tab of your global compiler settings, and post the output again.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline RonG

  • Single posting newcomer
  • *
  • Posts: 2
Re: No such file or directory?
« Reply #2 on: August 19, 2010, 02:40:15 am »
I have all the same file names in the MinGW64 directory that I have in my mingw directory.
I have already set the ide to full command line.

The version is:

C:\MinGW64\bin>g++ -v
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-w64-mingw32
Configured with: ../gcc-4.5.0/configure --prefix=/crossdev/w64-native --build=x8
6_64-w64-mingw32 --enable-targets=all --enable-languages=c,c++,fortran,objc,obj-
c++ --disable-werror --disable-nls --disable-win32-registry --enable-libgomp --e
nable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libst
dcxx-debug --with-pkgversion=tdm64-1 --with-bugurl=http://tdm-gcc.tdragon.net/bu
gs
Thread model: win32
gcc version 4.5.0 (tdm64-1)

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: No such file or directory?
« Reply #3 on: August 19, 2010, 02:58:21 am »
Actually, I don't need your version information; I want the verbose output of the compilation process, which is what the "-v" switch does when you add it into a normal compilation command.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

mrdude888

  • Guest
Re: No such file or directory?
« Reply #4 on: August 22, 2010, 06:15:36 pm »
I'm actually having the exact same problem, except with the 32-bit version on Windows Vista.  I've verified that Code::Blocks is indeed looking in the correct folder for the compiler, and that all of the files are exactly where it expects them to be, yet I get the same error when I try to build (despite doing everything the exact same way as on my XP machine, which works just fine).  I don't know how to compile using the '-v' switch in Code::Blocks, but if I use the Windows command prompt to compile using mingw32-gcc.exe directly, I get the same error message, with the following information when including the '-v' switch:

C:\MinGW32\bin>mingw32-gcc C:\Users\Scott\programs\strings.c -v
Using built-in specs.
COLLECT_GCC=mingw32-gcc
Target: mingw32
Configured with: ../../gcc-4.5.0/configure --prefix=/mingw --build=mingw32 --ena
ble-languages=c,ada,c++,fortran,objc,obj-c++ --disable-nls --disable-win32-regis
try --enable-libgomp --disable-werror --enable-threads --disable-symvers --enabl
e-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-s
tring --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-pkg
version=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/
bugs
Thread model: win32
gcc version 4.5.0 (tdm-1)
COLLECT_GCC_OPTIONS='-v' '-mtune=i386' '-march=i386'
 cc1 -quiet -v -iprefix c:\mingw32\bin\../lib/gcc/mingw32/4.5.0/ C:\Users\Scott\
programs\strings.c -quiet -dumpbase strings.c -mtune=i386 -march=i386 -auxbase s
trings -version -o C:\Users\Scott\AppData\Local\Temp\cc3wLj3h.s
mingw32-gcc: CreateProcess: No such file or directory

If I try navigating to Code::Blocks using the command prompt I can still attempt to compile, when I add the '-v' switch I get an "Unknown option 'v'" message from Windows.  It actually pops up twice in a row, though I doubt that's significant.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: No such file or directory?
« Reply #5 on: August 22, 2010, 08:08:41 pm »
* Does the executable "C:\MinGW32\libexec\gcc\mingw32\4.5.0\cc1.exe" exist?
* Have you set any environment variables other than PATH that affect GCC (for example, GCC_EXEC_PREFIX)?
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)