Page 1 of 2

make error in chibistudio

Posted: Tue Apr 16, 2013 8:50 am
by daviddawe1982
hello,
i am trying to bulid the chibios stm32f4 discovery demo in chibistudio and i keep getting the following errors:
17:46:25 **** Build of configuration Default for project Test ****
make -k -j all
Compiling ../../os/ports/GCC/ARMCMx/crt0.c
Compiling ../../os/ports/GCC/ARMCMx/STM32F4xx/vectors.c
Compiling ../../os/ports/GCC/ARMCMx/chcore.c
Compiling ../../os/ports/GCC/ARMCMx/chcore_v7m.c
Compiling ../../os/ports/common/ARMCMx/nvic.c
Compiling ../../os/kernel/src/chsys.c
Compiling ../../os/kernel/src/chdebug.c
Compiling ../../os/kernel/src/chlists.c
Compiling ../../os/kernel/src/chschd.c
Compiling ../../os/kernel/src/chthreads.c
Compiling ../../os/kernel/src/chdynamic.c
Compiling ../../os/kernel/src/chsem.c
Compiling ../../os/kernel/src/chvt.c
Compiling ../../os/kernel/src/chregistry.c
Compiling ../../os/kernel/src/chcond.c
Compiling ../../os/kernel/src/chmtx.c
Compiling ../../os/kernel/src/chmsg.c
Compiling ../../os/kernel/src/chevents.c
Compiling ../../os/kernel/src/chmboxes.c
Compiling ../../os/kernel/src/chqueues.c
Compiling ../../os/kernel/src/chmemcore.c
Compiling ../../os/kernel/src/chheap.c
Compiling ../../os/kernel/src/chmempools.c
Compiling ../../test/test.c
Compiling ../../test/testthd.c
Compiling ../../test/testsem.c
Compiling ../../test/testmtx.c
Compiling ../../test/testmsg.c
Compiling ../../test/testevt.c
Compiling ../../test/testmbox.c
Compiling ../../test/testdyn.c
Compiling ../../test/testpools.c
Compiling ../../test/testqueues.c
Compiling ../../test/testheap.c
Compiling ../../test/testbmk.c
Compiling ../../os/hal/src/hal.c
Compiling ../../os/hal/src/adc.c
Compiling ../../os/hal/src/can.c
Compiling ../../os/hal/src/ext.c
Compiling ../../os/hal/src/gpt.c
Compiling ../../os/hal/src/i2c.c
Compiling ../../os/hal/src/icu.c
Compiling ../../os/hal/src/mac.c
Compiling ../../os/hal/src/pal.c
Compiling ../../os/hal/src/sdc.c
Compiling ../../os/hal/src/pwm.c
Compiling ../../os/hal/src/serial.c
Compiling ../../os/hal/src/spi.c
Compiling ../../os/hal/src/uart.c
Compiling ../../os/hal/src/usb.c
Compiling ../../os/hal/src/tm.c
Compiling ../../os/hal/src/mmc_spi.c
Compiling ../../os/hal/src/serial_usb.c
Compiling ../../os/hal/src/rtc.c
Compiling ../../os/hal/platforms/STM32F4xx/stm32_dma.c
Compiling ../../os/hal/platforms/STM32F4xx/hal_lld.c
Compiling ../../os/hal/platforms/STM32F4xx/adc_lld.c
Compiling ../../os/hal/platforms/STM32/can_lld.c
Compiling ../../os/hal/platforms/STM32/ext_lld.c
Compiling ../../os/hal/platforms/STM32/gpt_lld.c
Compiling ../../os/hal/platforms/STM32/icu_lld.c
Compiling ../../os/hal/platforms/STM32/i2c_lld.c
Compiling ../../os/hal/platforms/STM32/pwm_lld.c
Compiling ../../os/hal/platforms/STM32/mac_lld.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/crt0.lst -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/crt0.o.d -mthumb -DTHUMB -I. -I../../os/ports/common/ARMCMx/CMSIS/include -I../../os/ports/common/ARMCMx -I../../os/ports/GCC/ARMCMx -I../../os/ports/GCC/ARMCMx/STM32F4xx -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/STM32F4xx -I../../os/hal/platforms/STM32 -I../../os/hal/platforms/STM32/GPIOv2 -I../../boards/ST_STM32F4_DISCOVERY -I../../os/various ../../os/ports/GCC/ARMCMx/crt0.c -o build/obj/crt0.o, ...) failed.
make (e=2): The system cannot find the file specified.

make: *** [build/obj/crt0.o] Error 2
Compiling main.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/vectors.lst -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/vectors.o.d -mthumb -DTHUMB -I. -I../../os/ports/common/ARMCMx/CMSIS/include -I../../os/ports/common/ARMCMx -I../../os/ports/GCC/ARMCMx -I../../os/ports/GCC/ARMCMx/STM32F4xx -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/STM32F4xx -I../../os/hal/platforms/STM32 -I../../os/hal/platforms/STM32/GPIOv2 -I../../boards/ST_STM32F4_DISCOVERY -I../../os/various ../../os/ports/GCC/ARMCMx/STM32F4xx/vectors.c -o build/obj/vectors.o, ...) failed.
Compiling ../../os/various/chprintf.c
make (e=2): The system cannot find the file specified.

and i just keep getting more errors if i let it go what am i doing wrong??
i have not modified the demo code at all.
thanks

Re: make error in chibistudio

Posted: Tue Apr 16, 2013 11:58 am
by Giovanni
Hi,

Not sure, try unzipping ChibiStudio again in case some file got corrupted or is missing (and make sure to run ChibiStudio using the provided link or batch file, *not* directly eclipse.exe).

Giovanni

Re: make error in chibistudio

Posted: Tue Apr 16, 2013 12:25 pm
by daviddawe1982
yea i tried to unpack chibios - chibios gfx - chibistudio and no good ??
and just to be shore i copied the file paths that the errors refer to ant there good ??
could it be make or compiler settings?

Re: make error in chibistudio

Posted: Tue Apr 16, 2013 1:29 pm
by daviddawe1982
Just a thorght
when i was playing settings to see if any thing worked (nothing did)
i did notice that at the start of the make i see the settings and the included paths like this

-MD -MP -MF .dep/vectors.o.d -mthumb -DTHUMB -I.
-I../../os/ports/common/ARMCMx/CMSIS/include
-I../.. BLAH BLAH

first should the -I. at the end of the first line have a path after it?
and should there be a space between the -I and the PATH like it would be in cmd?

Re: make error in chibistudio

Posted: Tue Apr 16, 2013 7:46 pm
by Tectu
I am sorry but I don't think that I can help here. I never used ChibiStudio or Eclipse at all.
Please try to start from scratch, make sure you unpack ChibiStudio correctly and launch it by the script that Giovanni mentioned, not actually by the executable. Then, try to build a simple blinking demo and keep all the add-on libraries like FatFS and ChibiOS/GFX or what ever you use away. Always try to create a very small test case!

The settings of ChibiStudio should work out of the box in default settings - that's the whole idea behind it. ChibiOS/GFX shouldn't be the problem here too.

You may also want to paste the full output of the compiled/linker. Please use a pasting service for this.


~ Tectu

Re: make error in chibistudio

Posted: Tue Apr 16, 2013 7:54 pm
by Giovanni
daviddawe1982 wrote:Just a thorght
when i was playing settings to see if any thing worked (nothing did)
i did notice that at the start of the make i see the settings and the included paths like this

-MD -MP -MF .dep/vectors.o.d -mthumb -DTHUMB -I.
-I../../os/ports/common/ARMCMx/CMSIS/include
-I../.. BLAH BLAH

first should the -I. at the end of the first line have a path after it?
and should there be a space between the -I and the PATH like it would be in cmd?


Hi,

The first -I is followed by a path, it is the ".". -I does not require spaces, we would not have ever compiled a program if that was the case.

Giovanni

Re: make error in chibistudio

Posted: Tue Oct 29, 2013 8:56 am
by Roman
Hi

I have the same problem:

--------------------------------------------------------------------------------------------------------------------------------------------------
make: *** [build/obj/chcore.o] Error 2
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/chcore_v7m.lst -DCORTEX_USE_FPU=FALSE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/chcore_v7m.o.d -mthumb -DTHUMB -I. -I../../os/ports/common/ARMCMx/CMSIS/include -I../../os/ports/common/ARMCMx -I../../os/ports/GCC/ARMCMx -I../../os/ports/GCC/ARMCMx/STM32F4xx -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/STM32F4xx -I../../os/hal/platforms/STM32 -I../../os/hal/platforms/STM32/GPIOv2 -I../../os/hal/platforms/STM32/I2Cv1 -I../../os/hal/platforms/STM32/OTGv1 -I../../os/hal/platforms/STM32/RTCv2 -I../../os/hal/platforms/STM32/SPIv1 -I../../os/hal/platforms/STM32/TIMv1 -I../../os/hal/platforms/STM32/USARTv1 -I../../boards/ST_STM32F4_DISCOVERY -I../../os/various/devices_lib/accel -I../../os/various ../../os/ports/GCC/ARMCMx/chcore_v7m.c -o build/obj/chcore_v7m.o, ...) failed.
make (e=2): Specified file not found.
-------------------------------------------------------------------------------------------------------------------------------------------------


The make utility GNU Make 3.81. Platform Win7 64 bits. I try to build this demo on Linux and it works fine! May be anyone know how to resolve this problem.

Thanks in advance,
Roman

Re: make error in chibistudio

Posted: Tue Oct 29, 2013 9:26 am
by Giovanni
The make does not find arm-none-eabi-gcc.exe.

Are you compiling from inside Eclipse or from command line?

Giovanni

Re: make error in chibistudio

Posted: Wed Oct 30, 2013 1:14 pm
by Roman
Hi,
I have tried and so and so and results are the same. Moreover, in windows console arm-none-eabi-gcc.exe can started without full path. In fact it is not a serious problem for me, in Linux all works fine and that is enought :)

Re: make error in chibistudio

Posted: Wed Oct 30, 2013 2:27 pm
by Giovanni
Strange, ChibiStudio should work out of the box assuming you unpacked it exactly as C:\ChibiStudio.

Giovanni