Maybe small but difficult issue for me. Appreciate if someone could lead me to right direction to solve this.
也许对我来说,这是一个很小但很难解决的问题。如果有人能把我引向正确的方向来解决这个问题,我将不胜感激。
I am trying to build ~10year old files but getting this error is Microchip Studio 7.0.132
我正在尝试构建大约10年前的文件,但收到此错误的是MicroChip Studio 7.0.132
C:\test\Makefile(441,1): error: recipe for target 'sizebefore' failed
C:\test\Makefile(441,1):错误:目标‘sizepre’的配方失败
make: Leaving directory 'C:/Users/Mikal/test'
Make:离开目录‘C:/USERS/MIKAL/TEST’
make: *** [sizebefore] Error 255
生成:*[SIZE BEFORE]错误255
Before error there is also notification that "The system cannot find the path specified"
在出现错误之前,还会有“系统找不到指定的路径”的通知
Don't understand why it can't find it?
不明白为什么它找不到它?
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe -C "C:\Users\Mikal\test" -f "Makefile" all
C:\Program Files(X86)\Atmel\Studio\7.0\shellUtils\make.exe-C“C:\USERS\Mikal\test”-f“Makefile”all
make: Entering directory 'C:/Users/Mikal/test'
Make:进入目录‘C:/USERS/MIKAL/TEST’
The system cannot find the path specified.
系统找不到指定的路径。
The system cannot find the path specified.
系统找不到指定的路径。
Part of makefile that initiates issue.
启动问题的生成文件的一部分。
Display size of file.
显示文件大小。
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
HEXSIZE=$(大小)--目标=$(格式)$(目标).十六进制
ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf
ELFSIZE=$(大小)--MCU=$(MCU)--FORMAT=AVR$(目标).self
sizebefore:
大小之前:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
@if test-f$(目标).self;则回显;回显$(MSG_SIZE_BEFORE);$(ELFSIZE);\
2>/dev/null; echo; fi
2>/dev/null; echo; fi
sizeafter:
大小后:
@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
@if test-f$(目标).self;则回显;回显$(MSG_SIZE_AFTER);$(ELFSIZE);\
2>/dev/null; echo; fi
2>/dev/空;ECHO;FI
Whole output
整体产出
------ Build started: Project: CHB_DIGI, Configuration: Release AVR ------
--开始构建:项目:CHB_DIGI,配置:版本AVR -
Build started.
构建已开始。
Project "CHB_DIGI.cproj" (default targets):
项目“CHB_DIGI.cproj”(默认目标):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
由于条件错误,跳过了目标“PreBuildEvent”;(‘$(PreBuildEvent)’!=‘’)被计算为(‘’!=‘’)。
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\Mikal\test\CHB_DIGI.cproj" (target "Build" depends on it):
目标“CoreBuild”位于项目“C:\USERS\MIKAL\TEST\CHB_DIGI.cproj”的文件“C:\Program Files(X86)\Atmel\Studio\7.0\vs\Compiler.Target”中(目标“Build”取决于它):
Task "RunCompilerTask"
任务“运行编译器任务”
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
Shell Utils路径C:\Program Files(X86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe -C "C:\Users\Mikal\test" -f "Makefile" all
C:\Program Files(x86)\Atmel\Studio\7.0\shellUtils\make.exe -C“C:\Users\Mikal\test”-f“Makefile”全部
make: Entering directory 'C:/Users/Mikal/test'
Make:进入目录‘C:/USERS/MIKAL/TEST’
The system cannot find the path specified.
系统找不到指定的路径。
The system cannot find the path specified.
系统找不到指定的路径。
The system cannot find the path specified.
系统找不到指定的路径。
The system cannot find the path specified.
系统找不到指定的路径。
ECHO is off.
Echo已关闭。
-------- begin --------
-开始
avr-gcc (AVR_8_bit_GNU_Toolchain_3.6.2_1778) 5.4.0
AVR-GCC(AVR_8_BIT_GNU_TOOLCHAIN_3.6.2_1778)5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
版权所有(C)2015自由软件基金会,Inc.
This is free software; see the source for copying conditions. There is NO
这是自由软件;请参阅复制条件的源代码。没有
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
保证;甚至不是为了适销性或对特定目的的适用性。
-f was unexpected at this time.
-f在这个时候是出乎意料的。
C:\test\Makefile(441,1): error: recipe for target 'sizebefore' failed
C:\test\Makefile(441,1):错误:目标‘sizepre’的配方失败
make: Leaving directory 'C:/Users/Mikal/test'
Make:离开目录‘C:/USERS/MIKAL/TEST’
make: *** [sizebefore] Error 255
生成:*[SIZE BEFORE]错误255
Done executing task "RunCompilerTask" -- FAILED.
已完成执行任务“RunCompilerTask”--失败。
Done building target "CoreBuild" in project "CHB_DIGI.cproj" -- FAILED.
在项目“CHB_DIGI.cproj”中构建目标“CoreBuild”已完成--失败。
Done building project "CHB_DIGI.cproj" -- FAILED.
已完成构建项目“CHB_DIGI.cproj”--失败。
Build FAILED.
生成失败。
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
=构建:0成功或最新,1失败,0跳过=
What i tried
我所尝试的
Tried to comment "sizebefore" away from code. It went further but i faced another issue.
I thought that I should fix the first problem first.
已尝试在代码之外注释“sizeprew”。它走得更远,但我面临着另一个问题。我想我应该先解决第一个问题。
更多回答
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
请澄清您的具体问题或提供更多详细信息,以突出您的确切需求。按照目前的写法,很难准确地说出你在问什么。
我是一名优秀的程序员,十分优秀!