project-generator / project_generator

Project generators for various embedded tools (IDE). IAR, uVision, Makefile, CoIDE, Eclipse and many more in the roadmap!
Apache License 2.0
271 stars 96 forks source link

progen build --copy fails #487

Open jawi opened 3 years ago

jawi commented 3 years ago

Running progen --copy -t make_gcc_arm fails:

$ progen build -vvv -c -t make_gcc_arm
progen DEBUG    This should be the project root: /tmp/progen-test
progen.tools DEBUG  Generating: build/make_gcc_arm_blinky_test/Makefile
progen.project DEBUG    Building for tool: make_gcc_arm
progen.project DEBUG    {'make_gcc_arm': {'path': 'build/make_gcc_arm_blinky_test', 'files': {'makefile': 'build/make_gcc_arm_blinky_test/Makefile'}}}
progen.tools.gccarm DEBUG   Building make project: build/make_gcc_arm_blinky_test
progen.tools.gccarm DEBUG   ['make', '-j', '1', 'all']
make: *** No rule to make target 'blinky_l476/stm32l4xx.ld', needed by 'build/blinky_test.generated.ld'.  Stop.
progen.tools.gccarm ERROR   Project: errors build failed with the status: build/make_gcc_arm_blinky_test/Makefile

While running without the --copy flag succeeds:

$ progen build -vvv -t make_gcc_arm
progen DEBUG    This should be the project root: /tmp/progen-test
progen.tools DEBUG  Generating: build/make_gcc_arm_blinky_test/Makefile
progen.project DEBUG    Building for tool: make_gcc_arm
progen.project DEBUG    {'make_gcc_arm': {'path': 'build/make_gcc_arm_blinky_test', 'files': {'makefile': 'build/make_gcc_arm_blinky_test/Makefile'}}}
progen.tools.gccarm DEBUG   Building make project: build/make_gcc_arm_blinky_test
progen.tools.gccarm DEBUG   ['make', '-j', '1', 'all']
Preprocessing ../../blinky_l476/stm32l4xx.ld
Compiling ../../blinky_l476/src/main.c
Linking build/blinky_test.elf
/usr/lib/gcc/arm-none-eabi/8.3.1/../../../arm-none-eabi/bin/ld: warning: cannot find entry symbol Reset_Handler; defaulting to 0000000008000004
   text    data     bss     dec     hex filename
    916    1096    1568    3580     dfc build/blinky_test.elf
    916    1096    1568    3580     dfc (TOTALS)
Converting build/blinky_test.hex
Converting build/blinky_test.bin
progen.tools.gccarm INFO    Built make_gcc_arm_blinky_test with the status: no errors

It appears that the --copy flag does not copy anything to the generated output directory.

0xc0170 commented 3 years ago

Thanks for the report. I'll try to look at the issue in the following days.