Segfault on make
navinpai opened this issue · 1 comments
navinpai commented
Hey, I was trying to build this project and I keep hitting into the following error:
Dark Builder - Unified Build Environment
Version (1.0.0 - Armstrong)
[CC] [RaspberryPi BSP] port.o
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/portable/GCC/RaspberryPi/port.c: In function 'vTickISR':
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/portable/GCC/RaspberryPi/port.c:156:19: warning: unused parameter 'nIRQ' [-Wunused-parameter]
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/portable/GCC/RaspberryPi/port.c:156:31: warning: unused parameter 'pParam' [-Wunused-parameter]
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/portable/GCC/RaspberryPi/port.c: In function 'prvSetupTimerInterrupt':
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/portable/GCC/RaspberryPi/port.c:172:16: warning: variable 'ulCompareMatch' set but not used [-Wunused-but-set-variable]
[CC] [RaspberryPi BSP] portisr.o
[CC] [RaspberryPi BSP] croutine.o
[CC] [RaspberryPi BSP] list.o
[CC] [RaspberryPi BSP] queue.o
[CC] [RaspberryPi BSP] tasks.o
[CC] [RaspberryPi BSP] interrupts.o
/home/navin/RaspberryPi-FreeRTOS-master/Demo/Drivers/interrupts.c: In function 'stubHandler':
/home/navin/RaspberryPi-FreeRTOS-master/Demo/Drivers/interrupts.c:90:29: warning: unused parameter 'nIRQ' [-Wunused-parameter]
/home/navin/RaspberryPi-FreeRTOS-master/Demo/Drivers/interrupts.c:90:41: warning: unused parameter 'pParam' [-Wunused-parameter]
[CC] [RaspberryPi BSP] gpio.o
[CC] [RaspberryPi BSP] heap_4.o
[AS] [RaspberryPi BSP] startup.o
[CC] [RaspberryPi BSP] main.o
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c: In function 'task1':
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:7:18: warning: unused parameter 'pParam' [-Wunused-parameter]
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c: In function 'task2':
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:17:18: warning: unused parameter 'pParam' [-Wunused-parameter]
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c: At top level:
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:35:6: warning: return type of 'main' is not 'int' [-Wmain]
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c: In function 'main':
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:42:2: warning: pointer targets in passing argument 2 of 'xTaskGenericCreate' differ in signedness [-Wpointer-sign]
In file included from /home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:2:0:
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/include/task.h:1282:22: note: expected 'const signed char * const' but argument is of type 'char *'
/home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:43:2: warning: pointer targets in passing argument 2 of 'xTaskGenericCreate' differ in signedness [-Wpointer-sign]
In file included from /home/navin/RaspberryPi-FreeRTOS-master/Demo/main.c:2:0:
/home/navin/RaspberryPi-FreeRTOS-master/FreeRTOS/Source/include/task.h:1282:22: note: expected 'const signed char * const' but argument is of type 'char *'
arm-none-eabi-ld: BFD (GNU Tools for ARM Embedded Processors) 2.22.0.20140401 assertion fail /home/build/work/GCC-4-7-build/src/binutils/bfd/elf32-arm.c:13880
Segmentation fault (core dumped)
make: *** [kernel.elf] Error 139
I'm running this on an Ubuntu system (Precise / 12.04), and have updated the parameters in the makefile to:
kernel.elf: LDFLAGS += -L "/usr/lib/gcc/arm-linux-gnueabi/4.6.3" -lgcc
kernel.elf: LDFLAGS += -L "/usr/arm-linux-gnueabi/lib" -lc
If it matters, the .py files in .dbuild/pretty are all executable
I'm not sure if this is an issue with the code or with my build environment
navinpai commented
Sorry, was an issue with my build environment.
Closing this issue