Part Number: AM3358
Tool/software: TI C/C++ Compiler
Hi,
I am currently trying to compile some c code, which is extended with some globally declared assembler functions. (as can be seen in the files added)
To compile and link I took the following steps:
- compile every file separately using clpru with the following command (currently I tried it hardcoded, in the end it will be used in a generic makefile):
clpru SPH0641_Beaglebone_Black.c -fe SPH0641_Beaglebone_Black.o --include_path=/home/rens/Repository/PRUCookbook/docs/common --include_path=/home/rens/Repository/pru-software-support-package/include --include_path=/home/rens/Repository/pru-software-support-package/include/am335x --include_path=/home/rens/Repository/pru-software-support-package/ti-cgt-pru_2.1.5/include -DCHIP=am335x -DCHIP_IS_am335x -DPROC=pru -DPRUN=0 -v3 -O2 --printf_support=minimal --display_error_number --endian=little --hardware_mac=on -ppd -ppa --asm_listing --c_src_interlist
clpru Beaglebone_Black.c -fe Beaglebone_Black.o --include_path=/home/rens/Repository/PRUCookbook/docs/common --include_path=/home/rens/Repository/pru-software-support-package/include --include_path=/home/rens/Repository/pru-software-support-package/include/am335x --include_path=/home/rens/Repository/pru-software-support-package/ti-cgt-pru_2.1.5/include -DCHIP=am335x -DCHIP_IS_am335x -DPROC=pru -DPRUN=0 -v3 -O2 --printf_support=minimal --display_error_number --endian=little --hardware_mac=on -ppd -ppa --asm_listing --c_src_interlist
clpru Beaglebone_Black_asm.asm -fe Beaglebone_Black_asm.o --include_path=/home/rens/Repository/PRUCookbook/docs/common --include_path=/home/rens/Repository/pru-software-support-package/include --include_path=/home/rens/Repository/pru-software-support-package/include/am335x --include_path=/home/rens/Repository/pru-software-support-package/ti-cgt-pru_2.1.5/include -DCHIP=am335x -DCHIP_IS_am335x -DPROC=pru -DPRUN=0 -v3 -O2 --printf_support=minimal --display_error_number --endian=little --hardware_mac=on -ppd -ppa --asm_listing --c_src_interlist
-then I try to link the .o files together using the following command:
lnkpru SPH0641_Beaglebone_Black.o -shared SPH0641_Beaglebone_Black.o Beaglebone_Black.o Beaglebone_Black_asm.o --reread_libs --warn_sections --stack_size=0x100 --heap_size=0x100 -i/home/rens/Repository/pru-software-support-package/ti-cgt-pru_2.1.5/lib -i/home/rens/Repository/pru-software-support-package/ti-cgt-pru_2.1.5/include /home/rens/Repository/PRUCookbook/docs/common/am335x_pru.cmd --library=libc.a --library=/home/rens/Repository/pru-software-support-package/lib/rpmsg_lib.lib
The latter command gives the following error:
fatal error: combining options --absolute (-a) and --relocatable (-r) is not
supported when producing ELF output files
I don't really see why this error occurs, since I define neither absolute or relocatable as option and thus it should go for the default setting which is absolute?
Kind regards,
Rens