Page 1 of 1

"make -j12 all" terminated with exit code 2. Build might be incomplete.

Posted: Sat Jan 14, 2023 12:19 pm
by shockwave77598
I keep getting this on a "virgin" install of NNDK 3.3.9. I have no idea what I'm doing wrong. This installation
of NNDK on this computer is the first and only install of the compiler it has ever had. And while the C code was
for older 2.9.5, I've fixed all the uses of WORD and SHORT that were in the code. I get no errors in any of the
files. And I tried creating an Example project (I love that feature btw), and I get the same result as with my
code.

Something seems to be failing when the BIN file is being generated. That's the first inkling of trouble, when it
says it's invoking NB Compcode. This is just a default NetBurner application -- nothing fancy. But I do need some
of the newer features (like stopwatch and SDCard) available in NNDK 3, so staying at 2.9.5 isn't the answer. There
must be something I'm not setting or configuring for this fault.

Any ideas?

Allen

******


14:06:39 **** Incremental Build of configuration Release for project NANOXMAS2 ****
make -j12 all
Building file: ../src/E682.cpp
Building file: ../src/main.cpp
Invoking: GNU C++ Compiler
Invoking: GNU C++ Compiler
Finished building: ../src/main.cpp
Finished building: ../src/E682.cpp


Invoking: GNU C/C++ Linker
Finished building: NANOXMAS2.elf

Invoking: GNU Objcopy
Finished building: NANOXMAS2.s19

Building target: NANOXMAS2.bin
Invoking: NB Compcode
/1.0/bin/sh: compcode: command not found
make: *** [makefile:73: NANOXMAS2.bin] Error 127
"make -j12 all" terminated with exit code 2. Build might be incomplete.

14:06:41 Build Failed. 2 errors, 0 warnings. (took 1s.576ms)

Re: "make -j12 all" terminated with exit code 2. Build might be incomplete.

Posted: Sun Jan 15, 2023 5:35 am
by pbreed
Looks like a path problem...

compcode is the tool that compresses the S19 converts to the format the netburner uses nativly to store the file.
Your clearly running from the command line not eclipse.
Are you on windows?
Do you run the SetEnv.bat file to setup the path and environment?
(Its in the nburn root directory)

Re: "make -j12 all" terminated with exit code 2. Build might be incomplete.

Posted: Sun Jan 15, 2023 2:25 pm
by shockwave77598
Path was my first thought as well. I'm running on Windows10Pro running in Eclipse, not command line. And yes, I executed that BAT file after installing

path=C:/nburn/gcc/bin;C:/nburn/pcbin;C:/nburn/gcc/msys/1.0/bin;%path%
set NNDK_ROOT=C:/nburn
set DEFPLATFORM=NANO54415
set PLATFORM=NANO54415

is all it is.

The only directory labeled 1.0 is in nburn/gcc. There's a BAT file there too, but running it doesn't seem to create anything. And in nburn/gcc/1.0/bin, there's no directory named SH, nor a program called comptool. It's as if the installer didn't put them in for some reason.

Re: "make -j12 all" terminated with exit code 2. Build might be incomplete.

Posted: Mon Jan 16, 2023 2:33 pm
by Forrest
Running the bat file is for command line. It sets the path for the current command line instance. The installer should have set up NNDK_ROOT as a system environment variable as well.

Check your system env variables:

From the start menu, search for Environment Vairables, and click on Edit the system environment variables. Then, click on "Environment Variable" and select PATH. Ensure c:\nburn\pcbin is in your system path variable.