Skip to content

link error variable term used where not expected #2

Open
@parisseb

Description

@parisseb

While trying to link KhiCAS, I get the error below that I have no idea how to deal with (I did not write assembly code, therefore the FAQ does not apply "You probably have assembly code that was not placed in a linker section, see Assembly Constants").
Source code to reproduce: https://www-fourier.univ-grenoble-alpes.fr/~parisse/ti/khicas.tgz

Thanks for any hint!

========= error log ===========
mkdir -p 'bin'
echo [linking] bin/DEMO.bin
[linking] bin/DEMO.bin
/home/parisse/CEdev/bin/fasmg -v1 '/home/parisse/CEdev/meta/ld.alm' -i 'DEBUG := 0' -i 'HAS_PRINTF := 1' -i 'HAS_LIBC := 1' -i 'HAS_LIBCXX := 1' -i 'PREFER_OS_CRT := 0' -i 'PREFER_OS_LIBC := 1' -i 'include "/home/parisse/CEdev/examples/khicas/app_tools/linker_script"' -i 'range .bss $D052C6 : $D13FD8' -i 'provide __stack = $D1A87E' -i 'locate .header at $0'  -i 'source "obj/icon.src", "/home/parisse/CEdev/lib/crt/crt0.src", "obj/lto.src"' -i 'library "/home/parisse/CEdev/lib/libload/fatdrvce.lib", "/home/parisse/CEdev/lib/libload/fileioc.lib", "/home/parisse/CEdev/lib/libload/fontlibc.lib", "/home/parisse/CEdev/lib/libload/graphx.lib", "/home/parisse/CEdev/lib/libload/keypadc.lib", "/home/parisse/CEdev/lib/libload/msddrvce.lib", "/home/parisse/CEdev/lib/libload/srldrvce.lib", "/home/parisse/CEdev/lib/libload/usbdrvce.lib"' -i 'provide __app_name = "DEMO"' -i 'provide __app_version = "1"' -i 'provide __app_desc = "shell"'  bin/DEMO.bin
flat assembler  version g.jmhx
/home/parisse/CEdev/meta/ld.alm [1570]:
	
macro ? [1297]:
	read source
:read? [14] (CALM)
assemble :temp [1]:
	include?! 'app_tools/app.src'
app_tools/app.src [64]:
	dl relocation
dl? [19] (CALM)
assemble :temp [1]:
	@ez80.word long?, current
macro @ez80.word [16]:
	@ez80.word size, value
@ez80.word [8] (CALM)
Error: variable term used where not expected.
make: *** [/home/parisse/CEdev/meta/makefile.mk:291 : bin/DEMO.bin] Erreur 2
/bin/cp: impossible d'évaluer 'bin/DEMO.8*': Aucun fichier ou dossier de ce type

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions