• AVR Freaks

AnsweredBuild failed : error 255

Author
schneiderj
Super Member
  • Total Posts : 497
  • Reward points : 0
  • Joined: 2008/01/19 07:46:49
  • Location: France, close to Paris
  • Status: offline
2014/12/31 03:52:36 (permalink)
0

Build failed : error 255

Hello, 
 
I have a error which I am unable to determine what is the cause of it. Here is the output of the compilation :
make[2]: Leaving directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
c:\program files (x86)\microchip\xc32\v1.33\bin\bin\gcc\pic32mx\4.5.2\..\..\..\..\bin/xc32-ld.exe:--defsym:3: syntax error
make[1]: Leaving directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
collect2: ld returned 255 exit status
make[2]: *** [dist/PIC32MX460F512L_PIM/production/MPLAB.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 17s)

 
What could be the problem ?
 
Thanks you for yuour help
Jean-Marie
#1
Jose Diaz
Administrator
  • Total Posts : 1676
  • Reward points : 0
  • Joined: 2010/06/23 11:10:56
  • Location: 0
  • Status: offline
Re: Build failed : error 255 2014/12/31 07:50:46 (permalink)
0
Jean-Marie,
Could you copy and paste the whole text (or attach as a file if you prefer) in the output windows?
Thanks
Jose
 
#2
schneiderj
Super Member
  • Total Posts : 497
  • Reward points : 0
  • Joined: 2008/01/19 07:46:49
  • Location: France, close to Paris
  • Status: offline
Re: Build failed : error 255 2014/12/31 08:59:45 (permalink)
0
Hello Jose,
 
here all the output :

CLEAN SUCCESSFUL (total time: 200ms)
make -f nbproject/Makefile-PIC32MX460F512L_PIM.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
make -j 8 -f nbproject/Makefile-PIC32MX460F512L_PIM.mk dist/PIC32MX460F512L_PIM/production/MPLAB.X.production.hex
make[2]: Entering directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/context.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/context.o ../Files/nmea/src/context.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/parse.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/parse.o ../Files/nmea/src/parse.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/sentence.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/sentence.o ../Files/nmea/src/sentence.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/parser.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/parser.o ../Files/nmea/src/parser.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/generate.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/generate.o ../Files/nmea/src/generate.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/gmath.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/gmath.o ../Files/nmea/src/gmath.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/info.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/info.o ../Files/nmea/src/info.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/generator.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/generator.o ../Files/nmea/src/generator.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/time.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/time.o ../Files/nmea/src/time.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/374240937/tok.o.d -o build/PIC32MX460F512L_PIM/production/_ext/374240937/tok.o ../Files/nmea/src/tok.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/491339551/SD-SPI.o.d -o build/PIC32MX460F512L_PIM/production/_ext/491339551/SD-SPI.o "../../../../Microchip/MDD File System/SD-SPI.c"
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/2146155192/Cardio.o.d -o build/PIC32MX460F512L_PIM/production/_ext/2146155192/Cardio.o ../Files/Cardio.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/123996954/usb_function_msd.o.d -o build/PIC32MX460F512L_PIM/production/_ext/123996954/usb_function_msd.o "../../../../Microchip/USB/MSD Device Driver/usb_function_msd.c"
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/1472/main.o.d -o build/PIC32MX460F512L_PIM/production/_ext/1472/main.o ../main.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/926206843/usb_device.o.d -o build/PIC32MX460F512L_PIM/production/_ext/926206843/usb_device.o ../../../../Microchip/USB/usb_device.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/2146155192/GPS.o.d -o build/PIC32MX460F512L_PIM/production/_ext/2146155192/GPS.o ../Files/GPS.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX440F256H -DPIC32MX460F512L_PIM -D_SUPPRESS_PLIB_WARNING -I.. -I../../../../Microchip/Include -MMD -MF build/PIC32MX460F512L_PIM/production/_ext/1472/usb_descriptors.o.d -o build/PIC32MX460F512L_PIM/production/_ext/1472/usb_descriptors.o ../usb_descriptors.c
"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -mprocessor=32MX440F256H -o dist/PIC32MX460F512L_PIM/production/MPLAB.X.production.elf build/PIC32MX460F512L_PIM/production/_ext/374240937/context.o build/PIC32MX460F512L_PIM/production/_ext/374240937/generate.o build/PIC32MX460F512L_PIM/production/_ext/374240937/generator.o build/PIC32MX460F512L_PIM/production/_ext/374240937/gmath.o build/PIC32MX460F512L_PIM/production/_ext/374240937/info.o build/PIC32MX460F512L_PIM/production/_ext/374240937/parse.o build/PIC32MX460F512L_PIM/production/_ext/374240937/parser.o build/PIC32MX460F512L_PIM/production/_ext/374240937/sentence.o build/PIC32MX460F512L_PIM/production/_ext/374240937/time.o build/PIC32MX460F512L_PIM/production/_ext/374240937/tok.o build/PIC32MX460F512L_PIM/production/_ext/491339551/SD-SPI.o build/PIC32MX460F512L_PIM/production/_ext/926206843/usb_device.o build/PIC32MX460F512L_PIM/production/_ext/123996954/usb_function_msd.o build/PIC32MX460F512L_PIM/production/_ext/1472/usb_descriptors.o build/PIC32MX460F512L_PIM/production/_ext/2146155192/Cardio.o build/PIC32MX460F512L_PIM/production/_ext/2146155192/GPS.o build/PIC32MX460F512L_PIM/production/_ext/1472/main.o -Wl,--defsym=__MPLAB_BUILD=1,--defsym=_min_heap_size=2000,-Map="dist/PIC32MX460F512L_PIM/production/MPLAB.X.production.map",--defsym=_SUPPRESS_PLIB_WARNING
make[2]: Leaving directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
make[1]: Leaving directory `C:/microchip_solutions_v2013-06-15/USB/CARDIO _ Device - Mass Storage - SD Card reader/Firmware/MPLAB.X'
c:\program files (x86)\microchip\xc32\v1.33\bin\bin\gcc\pic32mx\4.5.2\..\..\..\..\bin/xc32-ld.exe:--defsym:3: syntax error
collect2: ld returned 255 exit status
make[2]: *** [dist/PIC32MX460F512L_PIM/production/MPLAB.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3s)

 
Had a good end of year !
Jean-Marie
#3
Jose Diaz
Administrator
  • Total Posts : 1676
  • Reward points : 0
  • Joined: 2010/06/23 11:10:56
  • Location: 0
  • Status: offline
Re: Build failed : error 255 2014/12/31 09:23:55 (permalink) ☼ Best Answerby schneiderj 2015/01/03 14:14:28
0
Jean-Marie,
I see that:

"C:\Program Files (x86)\Microchip\xc32\v1.33\bin\xc32-gcc.exe" -mprocessor=32MX440F256H .... lots of things ommitted ..--defsym=_SUPPRESS_PLIB_WARNING

I think you are trying to suppress the warnings from the plib going away by adding --defsym=_SUPPRESS_PLIB_WARNING to the linker options as shown in picture one.
 Attachments are not available: Download requirements not met
If this is what you are trying to do then remove that from the linker node and instead add a macro definition to the compiler:
Attachments are not available: Download requirements not met
This will make the plib warnings disappear.
Jose
Bonne année et bonne santé

Attachment(s)

Attachments are not available: Download requirements not met
#4
Jump to:
© 2019 APG vNext Commercial Version 4.5