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

Discussion to talk about software related topics only.
Post Reply
shockwave77598
Posts: 22
Joined: Sat May 27, 2017 10:38 am

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

Post 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)
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

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

Post 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)
shockwave77598
Posts: 22
Joined: Sat May 27, 2017 10:38 am

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

Post 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.
User avatar
Forrest
Posts: 283
Joined: Wed Apr 23, 2008 10:05 am

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

Post 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.
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
Post Reply