2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【PIC】MPLAB X IDE上においてXC8(ver2.05)でビルドする際のエラー

Last updated at Posted at 2019-01-19

環境

Windows 10
MPLAB X IDE v5.10

エラー

XC8(ver2.05)でビルドすると以下のようなエラーが発生する。

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/MPLAB_C/test5.X'
make  -f nbproject/Makefile-default.mk dist/default/production/test5.X.production.hex
make[2]: Entering directory 'C:/MPLAB_C/test5.X'
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=16F628A -c  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -I"C:/Program Files (x86)/Microchip/xc8/v2.05/pic/include/c90" -I"C:/Program Files (x86)/Microchip/xc8/v2.05/pic/include" -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 -mc90lib   -std=c99 -gdwarf-3 -mstack=compiled:auto:auto     -o build/default/production/main.p1 main.c 
make[2]: *** [build/default/production/main.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
terminate called after throwing an instance of 'std::invalid_argument'
  what():  No such file or directory
error: clang frontend command failed with exit code 3 (use -v to see invocation)
(908) exit status = 1
nbproject/Makefile-default.mk:106: recipe for target 'build/default/production/main.p1' failed
make[2]: Leaving directory 'C:/MPLAB_C/test5.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/MPLAB_C/test5.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

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

解決方法

XC8(ver1.45)でビルドしたらエラーが出なくなった。

あとがき

直接の原因はよく分からなかった。ググっても同じ問題を抱えている人を見つけられなかったのでここにメモを残しておく。

リンク

環境構築で参考にさせて頂いたサイト:
http://www2.kaiyodai.ac.jp/~jtahar0/posts/activity19.html

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?