Solution for the build failed with what(): Invalid argument message on MPLAB X IDE
Embedded 2019. 3. 4. 09:35Are you looking for the solution which can solve
the "what(); Invalid argument" error message on MPLAB X IDE?
Please check the error message in output window of MPLAB X.
make -f nbproject/Makefile-default.mk SUBPROJECTS=7 .build-conf
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F1503 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/newmain.p1 newmain.c
led BUILD FAILED (exit value 2, total time: 3s)
|
Error message example
CLEAN SUCCESSFUL (total time: 16ms) make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'C:/Temp/LabIntro.X' make -f nbproject/Makefile-default.mk dist/default/production/LabIntro.X.production.hex make[2]: Entering directory 'C:/Temp/LabIntro.X' "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/main.p1 main.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/pin_manager.p1 mcc_generated_files/pin_manager.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/mcc.p1 mcc_generated_files/mcc.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/tmr0.p1 mcc_generated_files/tmr0.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/interrupt_manager.p1 mcc_generated_files/interrupt_manager.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/device_config.p1 mcc_generated_files/device_config.c "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe" -mcpu=16F18346 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/mcc_generated_files/adc.p1 mcc_generated_files/adc.c terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument error: clang frontend command failed with exit code 3 (use -v to see invocation) terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument (908) exit status = 1 error: clang frontend command failed with exit code 3 (use -v to see invocation) nbproject/Makefile-default.mk:202: recipe for target 'build/default/production/mcc_generated_files/adc.p1' failed terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 (908) exit status = 1 nbproject/Makefile-default.mk:194: recipe for target 'build/default/production/mcc_generated_files/interrupt_manager.p1' failed nbproject/Makefile-default.mk:186: recipe for target 'build/default/production/mcc_generated_files/tmr0.p1' failed make[2]: *** [build/default/production/mcc_generated_files/adc.p1] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [build/default/production/mcc_generated_files/interrupt_manager.p1] Error 1 make[2]: *** [build/default/production/mcc_generated_files/tmr0.p1] Error 1 terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument error: clang frontend command failed with exit code 3 (use -v to see invocation) error: clang frontend command failed with exit code 3 (use -v to see invocation) terminate called after throwing an instance of 'std::invalid_argument' what(): Invalid argument error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 (908) exit status = 1 nbproject/Makefile-default.mk:162: recipe for target 'build/default/production/mcc_generated_files/device_config.p1' failed nbproject/Makefile-default.mk:178: recipe for target 'build/default/production/mcc_generated_files/pin_manager.p1' failed (908) exit status = 1 nbproject/Makefile-default.mk:154: recipe for target 'build/default/production/main.p1' failed make[2]: *** [build/default/production/mcc_generated_files/device_config.p1] Error 1 terminate called after throwing an instance of 'std::invalid_argument' make[2]: *** [build/default/production/mcc_generated_files/pin_manager.p1] Error 1 what(): Invalid argument error: clang frontend command failed with exit code 3 (use -v to see invocation) make[2]: *** [build/default/production/main.p1] Error 1 make[2]: *** [build/default/production/mcc_generated_files/mcc.p1] Error 1 (908) exit status = 1 make[1]: *** [.build-conf] Error 2 nbproject/Makefile-default.mk:170: recipe for target 'build/default/production/mcc_generated_files/mcc.p1' failed make: *** [.build-impl] Error 2 make[2]: Leaving directory 'C:/Temp/LabIntro.X' nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/Temp/LabIntro.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed BUILD FAILED (exit value 2, total time: 5s)
|
Error message example
Solution!!
Please open "Project Properties" on MPLAB X IDE
(MPLAB X IDE --> File --> Project Properties)
If your selection of C standard is C99,
Please change the C standard from C99 to C90.
And click "Apply" button and "OK"
Try again compile your project
Could you share your result to know success or not?
'Embedded' 카테고리의 다른 글
ATSAMV71 X plained board schematic (Circuit diagram) (0) | 2019.04.16 |
---|---|
ATSAMV71Q21 - Example code(External Interrupt and LED Toggle) (0) | 2019.04.16 |
SENT; SENT(Single Edge Nibble Transmission) Revision - J2716 (0) | 2019.02.02 |
옛날 버전 MPLAB X IDE, MPLAB IDE HI-TECH, and XC Compiler 등등 다운로드 방법 (0) | 2019.01.30 |
롬라이터; 양산용 프로그래밍장비 추천 (0) | 2019.01.30 |