Author Topic: Generation with Pelles C Compiler (Version 12.00.1) failed  (Read 3658 times)

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Generation with Pelles C Compiler (Version 12.00.1) failed
« on: January 03, 2025, 04:54:08 pm »
Hi,

Back again ... and happy new year to all team of CB ...  ;D

I try to rebuild an library (and DLL so !) of GLAUX with "old" source searched into Internet (very big challenge, but interesting with CB).
Challenge "quasi" win (Yes !), but I don't succeed with my configuration of Pelles C Compiler into CB, and I don't known why ...

I use first last nigthly (30/12/2024), and I return to previous (08/12/2024), but unsucceed too ...

Configuration :
Version                 : svn-r13596
SDK Version             : 2.25.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 11 (build 26100), 64-bit edition
Scaling factor          : 1.000000
Detected scaling factor : 1.000000
Display PPI             : 96x96
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxMSW port)
Version 3.2.6 (Unicode: wchar_t, debug level: 1),
compiled at Dec  8 2024 08:47:13

Runtime version of toolkit used is 10.0.

Configuration of Pelles C Compiler is describe in follow document (except identification of compilers into CB : today "Pelles C 2021" with config 32 bit, "Pelles C 2021 (64b)" with config 64 bit).

And "failed" generation is describe in log of CB joined.
 
I try to generate this target "at hand" in console windows with same instructions that into CB (after position PATH variable and in good directory), and I succeed ... Strange, no ?

What's happen ? I don't see this behaviour before ... two months ... (Yes, I began "war" with GLAUX (for the fun !!!) two months ago,  :o).

Thank's for investigations.

Bye.

 

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #1 on: January 05, 2025, 04:50:56 pm »
Hi,

I forget to add two supplemental indications :
    - I can reproduce this behaviour with two different projects CB,
    - To test, I suppress two config. of Pelles C into CB (general menu "Settings" and submenu "Compilers", configurations 32 bit and 64 bit), then recreate two configuations of this compiler with different options beetween 32 and 64 bits, unsuccess too... same behaviour, like all subprocess of CB during generaton failed (but without reason after test outside of CB).

Thank's.

Thierry. 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7710
    • My Best Post
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #2 on: January 05, 2025, 05:01:48 pm »
Posting the build log in code tags instead of attaching an HTML file to the post would increase the chance of you getting help!

https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #3 on: January 06, 2025, 11:45:54 am »
OK.

Code
Build started on: 04-01-2025 at 14:41.17
Build ended on: 04-01-2025 at 14:41.24

-------------- Build: Debug PELLES C in GLaux (compiler: Pelles C (32b))---------------
cmd /c pocc | grep Version
Pelles ISO C Compiler, Version 12.00.1
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\FONT.C /FoobjPELLESC32\Debug\src\FONT.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\GLAUX.C /FoobjPELLESC32\Debug\src\GLAUX.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\IMAGE.C /FoobjPELLESC32\Debug\src\IMAGE.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\SHAPES.C /FoobjPELLESC32\Debug\src\SHAPES.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TEAPOT.C /FoobjPELLESC32\Debug\src\TEAPOT.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TK.C /FoobjPELLESC32\Debug\src\TK.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKDIB.C /FoobjPELLESC32\Debug\src\TKDIB.obj
pocc.exe /nologo /Zi -Tx86-coff /Ze /c /D_DEBUG /DDEBUG /D_X86_ /DBUILD_DLL -Tx86-coff /D_X86_ /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKFONT.C /FoobjPELLESC32\Debug\src\TKFONT.obj
src\SHAPES.C(598): warning #2229: Local 'x2' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x1' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x0' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(645): warning #2117: Old-style function definition for 'initdodec'.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TKDIB.C(410): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(345): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(302): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
src\TK.C(580): warning #2241: The function 'GetVersionExA' is marked as deprecated.
src\TK.C(1659): warning #2215: Conversion from 'int' to 'unsigned char'; possible loss of data or unexpected result.
src\TK.C(1826): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1825): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1965): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2015): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2044): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2045): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2046): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2049): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2442): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TK.C(2441): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
src\TKFONT.C(13655): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13651): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13648): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13644): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13643): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13684): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13680): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13677): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13673): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13672): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13713): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13709): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13706): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13702): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13701): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
0 e

Thierry

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1653
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #4 on: January 07, 2025, 12:38:30 pm »
Status -1073741819 (0xC0000005 in hex) indicates an access violation inside pocc.exe.

Does objPELLESC32\Debug\src exist in the folder containing the CBP? Is it writable?

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #5 on: January 07, 2025, 03:18:38 pm »
Hi Miguel,

Yes, I investigate about this proposition. First all these directories exist .. really. I use same "stucture" with all others compilers used (I have a "standard" script to generate it).

To verify, I change all rigths in these directories to authorize full acces (.ie. "control total") to group "authentified users" and rigth "Change" to group "users" joined to my computer.
And, also to attribute same rigths of all sources (*.h, *.c) of my project to be sure ... (stored in directory "src", this lead "automatic" creation of the same "name" of subdirectory under objPELLESC32\Debug and objPELLESC32\Release if don't exist to store *.obj during compilation into CB).

And in subdirectory objPELLESC32\Debug\src, I find this list of *.obj :

07/01/2025  14:31             2 564 FONT.obj
07/01/2025  14:31            18 439 GLAUX.obj
07/01/2025  14:31             2 166 IMAGE.obj
07/01/2025  14:31            27 068 SHAPES.obj
07/01/2025  14:31            10 249 TEAPOT.obj
07/01/2025  14:31            49 482 TK.obj
07/01/2025  14:31             8 756 TKDIB.obj
07/01/2025  14:31           982 523 TKFONT.obj

But, I have eleven sources *.c to compile in this project, only eigth OBJ  ...

And generation failed too :

Code
-------------- Clean: Release PELLES C in GLaux (compiler: Pelles C (32b))---------------

Cleaned "GLaux - Release PELLES C"

-------------- Build: Release PELLES C in GLaux (compiler: Pelles C (32b))---------------

Running target pre-build steps
cmd /c pocc | grep Version
Pelles ISO C Compiler, Version 12.00.1
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\FONT.C /FoobjPELLESC32\Release\src\FONT.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\GLAUX.C /FoobjPELLESC32\Release\src\GLAUX.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\IMAGE.C /FoobjPELLESC32\Release\src\IMAGE.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\SHAPES.C /FoobjPELLESC32\Release\src\SHAPES.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TEAPOT.C /FoobjPELLESC32\Release\src\TEAPOT.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TK.C /FoobjPELLESC32\Release\src\TK.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKDIB.C /FoobjPELLESC32\Release\src\TKDIB.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKFONT.C /FoobjPELLESC32\Release\src\TKFONT.obj
src\SHAPES.C(598): warning #2229: Local 'x2' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x1' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x0' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(645): warning #2117: Old-style function definition for 'initdodec'.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
Process terminated with status -1073741819 (0 minute(s), 0 second(s))
 
src\TKDIB.C(410): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(345): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(302): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 0 second(s))
 
src\TK.C(580): warning #2241: The function 'GetVersionExA' is marked as deprecated.
src\TK.C(1659): warning #2215: Conversion from 'int' to 'unsigned char'; possible loss of data or unexpected result.
src\TK.C(1826): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1825): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1965): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2015): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2044): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2045): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2046): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2049): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2442): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TK.C(2441): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
 
src\TKFONT.C(13655): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13651): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13648): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13644): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13643): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13684): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13680): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13677): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13673): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13672): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13713): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13709): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13706): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13702): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13701): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
Process terminated with status -1073741819 (0 minute(s), 1 second(s))
 
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
 
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
 
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
 
Process terminated with status -1073741819 (0 minute(s), 6 second(s))
0 error(s), 40 warning(s) (0 minute(s), 6 second(s))
Build log saved as:
file://C:/src/OpenGL/Glaux/GLaux_build_log.html

Just to verify, I try to run and finish generation of OBJ in command console, and the result is good :

Code
C:\src\OpenGL\Glaux>pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKIMAGE.C /FoobjPELLESC32\Release\src\TKIMAGE.obj

C:\src\OpenGL\Glaux>pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\VECT3D.C /FoobjPELLESC32\Release\src\VECT3D.obj

C:\src\OpenGL\Glaux>pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\XFORM.C /FoobjPELLESC32\Release\src\XFORM.obj

Thank's to proposition, it's a good track, but unresolve behaviour ..;

Bye.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1653
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #6 on: January 07, 2025, 08:19:12 pm »
Code::Blocks checks the return code, but when you use the console you are not checking it. Use "echo %errorlevel%" after each call to pocc.exe.

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #7 on: January 08, 2025, 12:23:20 pm »
Ok,

"pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\include\Win /IC:\PellesC\include /c src\TKIMAGE.C /FoobjPELLESC32\Release\src\TKIMAGE.obj

echo %errorlevel%
0"

Bye

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #8 on: January 08, 2025, 12:26:01 pm »
And, if you want, I propose to transfer this project on my GitHub account into public repository.

Useful or not ?

Bye.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7710
    • My Best Post
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #9 on: January 09, 2025, 05:51:57 am »
And, if you want, I propose to transfer this project on my GitHub account into public repository.

Useful or not ?

Bye.

I say useful this weekend, I will likely have time to try to duplicate the problem.
Edit: Found Windows 10.0 and CB version svn-r13596 in this thread.

Tim S.
« Last Edit: January 09, 2025, 05:53:50 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #10 on: January 09, 2025, 03:31:44 pm »
Ok, thank's ...

I just transfer this context to : https://github.com/tdechaize/Glaux

Thierry.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7710
    • My Best Post
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #11 on: January 09, 2025, 04:01:55 pm »
I have cloned the git repo; I think I will get to it on Friday or Saturday.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7710
    • My Best Post
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #12 on: January 14, 2025, 03:17:15 am »
I have cloned the git repo; I think I will get to it on Friday or Saturday.

Tim S.

Did not see the problem with highly modified steps under 64 bit; will try 32 bit using closer to posted directions.
Edit: Did not change to closer to the directions, yet. But, 32 bit built okay for me. No idea why it failed for you. It should have failed more likely with me not following the directions. Now, I need to install the Compiler how the said to do it.

Tim S.
« Last Edit: January 14, 2025, 03:25:34 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7710
    • My Best Post
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #13 on: January 14, 2025, 03:41:01 am »
I suggest building without clean a few times in a row.

Edit: If the files that failed to build start building; I would look at an system anti-virus related issue.

I get the below on the second build.

Code
-------------- Build: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------

Target is up to date.
Nothing to be done (all items are up-to-date).

My setup info; I skipped the parts that were not needed to get the project to build (The resource compiler search paths for one.)
And, I changed a few things.

My CB Version info: svn-r13596
OS Info: Windows 10

I edited the project pre steps because I did not have grep in the path.

My Tool chain setting
I deleted all additional paths; and I copied MSVC 2017 because I had *no* 2020 to copy.


Build log; I see no real difference; but, I have felt tired for about 10 days now. Maybe someone else or you will see the difference
Code
-------------- Clean: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------

Cleaned "GLaux - Release PELLES C"

-------------- Build: Release PELLES C in GLaux (compiler: pelles_c_32b)---------------

pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\FONT.C /FoobjPELLESC32\Release\src\FONT.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\GLAUX.C /FoobjPELLESC32\Release\src\GLAUX.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\IMAGE.C /FoobjPELLESC32\Release\src\IMAGE.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\SHAPES.C /FoobjPELLESC32\Release\src\SHAPES.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TEAPOT.C /FoobjPELLESC32\Release\src\TEAPOT.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TK.C /FoobjPELLESC32\Release\src\TK.obj
src\SHAPES.C(598): warning #2229: Local 'x2' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(598): warning #2229: Local 'x1' is potentially used without being initialized (or using a dangling value).
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKDIB.C /FoobjPELLESC32\Release\src\TKDIB.obj
src\SHAPES.C(598): warning #2229: Local 'x0' is potentially used without being initialized (or using a dangling value).
src\SHAPES.C(645): warning #2117: Old-style function definition for 'initdodec'.
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKFONT.C /FoobjPELLESC32\Release\src\TKFONT.obj
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(76): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
src\TKDIB.C(410): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(345): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TKDIB.C(302): warning #2229: Local 'pvBitsFile' is potentially used without being initialized (or using a dangling value).
src\TEAPOT.C(123): warning #2215: Conversion from 'double' to 'float'; possible loss of data or unexpected result.
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\TKIMAGE.C /FoobjPELLESC32\Release\src\TKIMAGE.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\VECT3D.C /FoobjPELLESC32\Release\src\VECT3D.obj
pocc.exe /nologo  -Tx86-coff /Ze /c /DNDEBUG /D_X86_ /DBUILD_DLL  -Tx86-coff /D_X86_   /IC:\PellesC\\include\Win /IC:\PellesC\\include /c src\XFORM.C /FoobjPELLESC32\Release\src\XFORM.obj
polink.exe /dll /nologo /LIBPATH:C:\PellesC\\lib\Win /LIBPATH:C:\PellesC\\lib /out:binPELLESC32\Release\GLaux.dll glu32.lib opengl32.lib advapi32.lib comdlg32.lib winmm.lib shell32.lib user32.lib kernel32.lib gdi32.lib objPELLESC32\Release\src\FONT.obj objPELLESC32\Release\src\GLAUX.obj objPELLESC32\Release\src\IMAGE.obj objPELLESC32\Release\src\SHAPES.obj objPELLESC32\Release\src\TEAPOT.obj objPELLESC32\Release\src\TK.obj objPELLESC32\Release\src\TKDIB.obj objPELLESC32\Release\src\TKFONT.obj objPELLESC32\Release\src\TKIMAGE.obj objPELLESC32\Release\src\VECT3D.obj objPELLESC32\Release\src\XFORM.obj  /MACHINE:X86 /SUBSYSTEM:WINDOWS /MACHINE:X86
src\TK.C(580): warning #2241: The function 'GetVersionExA' is marked as deprecated.
src\TK.C(1659): warning #2215: Conversion from 'int' to 'unsigned char'; possible loss of data or unexpected result.
src\TK.C(1826): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1825): warning #2229: Local 'iMinEntry' is potentially used without being initialized (or using a dangling value).
src\TK.C(1965): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2015): warning #2215: Conversion from 'unsigned int' to 'unsigned short int'; possible loss of data or unexpected result.
src\TK.C(2044): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2045): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2046): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2049): warning #2238: Array index '255' is out-of-bounds for 'PALETTEENTRY (aka struct tagPALETTEENTRY) [1]'.
src\TK.C(2442): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TK.C(2441): warning #2116: Local 'hStock' is used without being initialized (or using a dangling value).
src\TKFONT.C(13655): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13651): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13648): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13644): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13643): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13684): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13680): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13677): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13673): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13672): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13713): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13709): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13706): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13702): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
src\TKFONT.C(13701): warning #2116: Local 'mode' is used without being initialized (or using a dangling value).
Creating object: binPELLESC32\Release\GLaux.exp
Creating library: binPELLESC32\Release\GLaux.lib
Output file is binPELLESC32\Release\GLaux.dll with size 1.02 MB
Process terminated with status 0 (0 minute(s), 3 second(s))
0 error(s), 40 warning(s) (0 minute(s), 3 second(s))
« Last Edit: January 14, 2025, 03:56:07 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ThierryD

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Generation with Pelles C Compiler (Version 12.00.1) failed
« Reply #14 on: January 14, 2025, 07:12:00 pm »
Hi Tim,

It's a good new. I try this by activate "build" many times, ans yes, at finish, DLL is generate (objective succeed).
I try also to reinstall Pelles C compiler, same constat : for each compile with "pocc" an error line appear into log of CB (and not with linkage with "polink" ?!?).
I try to "disconnect" of Internet (simply deactivate WiFi on Windows 11) and after (and only after) deactivate my antivirus (BitDefender), and retry to generate DLL of GLAUX, same result : I [re]do click on "Build" to finalize the generation ...
For 64 bit generation with Pelles C, not only position flag /MACHINE:X64 during linkage, but also add an new define during compilation "_M_AMD64" (I forget this add on "initial" repository).
I have also "Advanced System Care" installed on my configuration. Tomorrow, I try to desinstall this to see if this is a cause of problem.
Last try, generate target of CB project without subdirectories, directly to "root" project.
But, I don't understand why use of "pocc" seems provoke an error into CB (on my environment ...), and if I use this tool into "command console", all succeed ...

Thank's for your research, result it's interesting.

Thierry.

NB : About MSVC, you can install "very free" version from Microsoft : Visual Studio 2022 "Community", if you want.
       Yes, it's not "professional" version, but this "do the job" (with C compiler, but also C++ compiler) with last SDK Windows (Windows Kit 10) mandatory. For me, it's OK.