QBPE 3.6.0 compiler error
#18
(03-20-2023, 04:22 PM)bplus Wrote: You say "expand here" what you want is to see is "extract", maybe worth it to just dump last attempt and just try again?
(03-20-2023, 02:16 PM)Jack Wrote: is your c++ compiler intact?
rhe error you got is the same that you would get if cc1.exe is missing
(03-20-2023, 11:21 PM)mnrvovrfc Wrote: There should be no need to change "PATH" environment variable for the sake of QB64PE because the internal scripts for automating the translations and compilations use relative paths, all assumed to be inside of ".../qb64pe/internal".
...
Maybe for you it works this way but for someone else this is unnecessary. The Windows version of QB64PE comes with its own version of MinGW. It shouldn't need any C++ compiler that was already installed in a path that it wasn't told, which could be different for each user. Also it's not recommended to use spaces in filenames while there is a problem that needs to be solved, such as the QB64PE compiler rejecting a simple three-line BASIC program.
(03-20-2023, 11:29 PM)Kernelpanic Wrote: It's possible, but it works for me. And it's always worked that way. Nullo problemo!  Tongue

Thanks everyone for your replies. 

kernelpanic suggested adding something like
  • D:\Program Files\mingw64\bin
to the path, however QB64PE does not include a \mingw64\ folder with a \bin\ directory.
The only mingw64 folder is at 
  • \QB64PE\internal\c\parts\core\gl_headers\mingw64\
containing one file:
  • gl.h

So it looks like kernelpanic and some others are using their own mingw and not the one bundled with QB64PE? 
I would be using the bundled one.

The file "\qb64pe\makefile" has a line:
    CC := $(PATH_INTERNAL_C)\c_compiler\bin\gcc.exe

so maybe we need to add the path for the $(PATH_INTERNAL_C) part, which is
  • C:\Users\{username}\Documents\Code\QB64PE\internal\c\

I tried including that in the system path, but still I got the compile error.

Next I tried adding to system path *all* the folders containing EXE files under QB64PE:

C:\Users\{username}\Documents\Code\QB64PE\
C:\Users\{username}\Documents\Code\QB64PE\internal\c\c_compiler\bin\

C:\Users\{username}\Documents\Code\QB64PE\internal\c\c_compiler\libexec\gcc\x86_64-w64-mingw32\12.2.0\
C:\Users\{username}\Documents\Code\QB64PE\internal\c\c_compiler\opt\bin\
C:\Users\{username}\Documents\Code\QB64PE\internal\c\c_compiler\opt\lib\python3.9\venv\scripts\nt\
C:\Users\{username}\Documents\Code\QB64PE\internal\c\c_compiler\x86_64-w64-mingw32\bin\

and rebooted, but I still get the same file not found error when I try running "helloworld.bas".

So, I started over fresh again, deleted everything, and extracted "qb64pe_win-x64-3.6.0.7z", moved the "QB64PE" folder to 
C:\Users\{username}\Documents\Code\QB64PE\

I run "qb64pe.exe" with all the default options, leaving the above folders in the system path, 
and tried running "helloworld.bas":

Code: (Select All)
Cls
Print "hello world. press any key to quit."
Sleep

and again get the error:
C++ Compilation failed (Check .\internal\temp\compilelog.txt)

[Image: qb64pe-compilation-failed-20230321.png]

Clicking on the error message opens the file 
  • C:\Users\{username}\Documents\Code\QB64PE\internal\temp\compilelog.txt

in Notepad++ which contains:

Code: (Select All)
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/libqb.cpp -c -o internal\c/libqb_make_00000000000000.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/qbx.cpp -c -o internal\c/qbx.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c\libqb/src/threading.cpp -c -o internal\c\libqb/src/threading.o
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:417: internal\c\libqb/src/threading.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Makefile:417: internal\c/qbx.o] Error 1
mingw32-make: *** [Makefile:405: internal\c/libqb_make_00000000000000.o] Error 1

I tried renaming \QB64PE\ to \qb64pe\ (lowercase) just to see if that makes any difference 
(should not matter with Windows), and it failed again. 
The "compilelog.txt" was slightly different this time:
Code: (Select All)
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/libqb.cpp -c -o internal\c/libqb_make_00000000000000.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/qbx.cpp -c -o internal\c/qbx.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c\libqb/src/threading.cpp -c -o internal\c\libqb/src/threading.o
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:405: internal\c/libqb_make_00000000000000.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:417: internal\c/qbx.o] Error 1
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:417: internal\c\libqb/src/threading.o] Error 1

I am about at the end of my rope... What could I be doing wrong??

Any suggestions appreciated - help me, Obi Wan!

UPDATE: I tried even more paths! Every permutation under \QB64PE\ that has an EXE under it:

[Image: setting-path-try-everything-2.png]

and am still getting a compile error, here is the "compilelog.txt" output for that, again slightly different but similar:
Code: (Select All)
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/libqb.cpp -c -o internal\c/libqb_make_00000000000000.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/qbx.cpp -c -o internal\c/qbx.o
internal\c\c_compiler\bin\c++.exe  -w -std=gnu++11 -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/src/ -Iinternal\c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c\libqb/src/threading.cpp -c -o internal\c\libqb/src/threading.o
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:405: internal\c/libqb_make_00000000000000.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
mingw32-make: *** [Makefile:417: internal\c/qbx.o] Error 1
cc1plus: error: unrecognized command-line option '-auxbase-strip'
cc1plus: error: too many filenames given; type 'cc1plus --help' for usage
mingw32-make: *** [Makefile:417: internal\c\libqb/src/threading.o] Error 1

Any suggestions appreciated...
Reply


Messages In This Thread
QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 01:25 PM
RE: QBPE 3.6.0 compiler error - by bplus - 03-20-2023, 02:16 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 03:17 PM
RE: QBPE 3.6.0 compiler error - by Jack - 03-20-2023, 02:16 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 08:19 PM
RE: QBPE 3.6.0 compiler error - by mnrvovrfc - 03-20-2023, 03:40 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 08:39 PM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-20-2023, 09:42 PM
RE: QBPE 3.6.0 compiler error - by bplus - 03-20-2023, 04:22 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 08:05 PM
RE: QBPE 3.6.0 compiler error - by mnrvovrfc - 03-20-2023, 04:47 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 08:32 PM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-20-2023, 08:45 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-20-2023, 10:29 PM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-20-2023, 11:18 PM
RE: QBPE 3.6.0 compiler error - by mnrvovrfc - 03-20-2023, 11:21 PM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-20-2023, 11:29 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-21-2023, 02:26 PM
RE: QBPE 3.6.0 compiler error - by Jack - 03-21-2023, 03:32 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 12:30 AM
RE: QBPE 3.6.0 compiler error - by SMcNeill - 03-21-2023, 04:28 PM
RE: QBPE 3.6.0 compiler error - by SMcNeill - 03-21-2023, 04:30 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-21-2023, 10:02 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-22-2023, 04:31 PM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-21-2023, 04:28 PM
RE: QBPE 3.6.0 compiler error - by mnrvovrfc - 03-22-2023, 05:36 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 03:43 AM
RE: QBPE 3.6.0 compiler error - by Kernelpanic - 03-22-2023, 05:39 PM
RE: QBPE 3.6.0 compiler error - by Jack - 03-22-2023, 05:44 PM
RE: QBPE 3.6.0 compiler error - by bplus - 03-22-2023, 09:52 PM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 12:32 AM
RE: QBPE 3.6.0 compiler error - by bplus - 03-22-2023, 10:09 PM
RE: QBPE 3.6.0 compiler error - by bplus - 03-23-2023, 01:38 AM
RE: QBPE 3.6.0 compiler error - by DSMan195276 - 03-23-2023, 01:55 AM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 02:24 AM
RE: QBPE 3.6.0 compiler error - by bplus - 03-23-2023, 02:47 AM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 02:51 AM
RE: QBPE 3.6.0 compiler error - by madscijr - 03-23-2023, 04:08 AM



Users browsing this thread: 18 Guest(s)