News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't compile Makefile, process terminated with status 2

Started by Mr. Egg, September 25, 2020, 09:51:22 PM

Previous topic - Next topic

Mr. Egg

Hi, I'm trying to compile a makefile but everytime I try to I kept getting this code from the build log. I'm not really sure on how to go on upon this and where to go, what does it mean and how I fix this? Thank you in advance


-------------- Build: 3dsx in Project_PC_3ds_game (compiler: GNU GCC Compiler)---------------

Checking if target is up-to-date: mingw32-make.exe -q -f Makefile 3dsx
Running command: mingw32-make.exe -f Makefile 3dsx
mingw32-make.exe: *** INTERNAL: readdir: Invalid argument.  Stop.
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))


Here is a picture if you want to see it


oBFusCATed

Edit the make commands in your project -> build options. You have to remove the target variables, or make sure that the targets in your project have the same names as targets in your makefile.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Mr. Egg

Can you clairfy on what you mean and where I can check to fix it? I'm still new Code: Blocks and confused on where to go.

stahta01

#3
Checked against Code::Blocks SVN version 9958 which is the version I am using for an custom CB project.
This area seems to have not changed in SVN trunk.
Project -> Build Options
Select Target or Project in left hand list (You likely want target 3dsx) Edit: Add name of target from OP error
Tab: "Make Commands"

Likely need to change "Ask if rebuild is needed" Edit: Correction this seems to be the wrong command to edit.
From
$make -q -f $makefile $target
to
$make -q -f $makefile

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

Mr. Egg

Hi, thank you for your response.

I did what you suggested but sadly it didn't work. I noticed that the same results keeps happening


oBFusCATed

You've not modified the correct command. Check all targets and the root in the project -> build options.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]