We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
meson support for TI C6000 is incorrect
To Reproduce
Download ti_cgt_c6000_7.4.24_linux_installer_x86.bin
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { printf("1 = %d\n", 1); return EXIT_SUCCESS; }
project('demo', 'c', version: '0.0.1') executable('main', 'main.c')
# Cross file tested on Texas Instruments C6000 compiler (bare metal DSP devices) # This file assumes that path to the Texas Instruments C6000 toolchain is added # to the environment(PATH) variable. [host_machine] system = 'c6000' cpu_family = 'c6000' cpu = 'c64x' endian = 'little' [binaries] c = 'cl6x' cpp = 'cl6x' ar = 'ar6x' strip = 'strip6x' nm = 'nm6x' as = 'asm6x' [properties] needs_exe_wrapper = true has_function_printf = true bits = 32 # https://github.com/mesonbuild/meson/blob/master/cross/ti-c6000.txt
$ meson setup --cross=ti-c6000.txt build $ meson compile -Cbuild --verbose [2/2] Linking target main.out <Linking> [1/2] cl6x -I=main.out.p -I=. -I=.. -O0 -g --preproc_with_compile --preproc_dependency=main.out.p/main.c.o.d --output_file=main.out.p/main.c.o ../main.c [2/2] cl6x -z --output_file=main.out main.out.p/main.c.o warning: no suitable entry-point found; setting to 0 $ ls -al build/main.out Permissions Size User Date Modified Name .rw-r--r-- 3.2k wzy 9 Dec 19:41 build/main.out
Expected behavior
$ cl6x main.c -z <Linking> $ ls -al a.out Permissions Size User Date Modified Name .rw-r--r-- 159k wzy 9 Dec 19:36 a.out
File size should be correct.
system parameters
meson --version
ninja --version
The text was updated successfully, but these errors were encountered:
BTW,
$ cl6x -h ... --include_path,-I=dir Add dir to #include search path
In fact, -Idir can also work, and be helpful to fix clangd/clangd#2249
-Idir
Sorry, something went wrong.
The bug is because
https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/518163/warning-no-suitable-entry-point-found-setting-to-0
When linking C or C++ code, you must use the linker option --rom_model or --ram_model
If user don't set any --XXX_model, we must have a default.
--XXX_model
It is hard to realize, because user can declare --XXX_model in *.cmd file.
*.cmd
No branches or pull requests
Describe the bug
meson support for TI C6000 is incorrect
To Reproduce
Download ti_cgt_c6000_7.4.24_linux_installer_x86.bin
Expected behavior
File size should be correct.
system parameters
meson --version
1.6.0ninja --version
1.12.1The text was updated successfully, but these errors were encountered: