It fails on arm64 like this:

ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o arm64-gen.o
 i386-asm.c i386-gen.c c67-gen.c tccgen.c tcccoff.c tccpp.c tccasm.c arm64-gen.c
 x86_64-gen.c libtcc.c arm-gen.c il-gen.c tccelf.c tcc.c tccpe.c conftest.c tccr
un.c il-opcodes.h x86_64-asm.h elf.h libtcc.h tcctok.h config.h tcclib.h coff.h
tcc.h i386-asm.h stab.h i386-tok.h
gcc -o tcc tcc.o libtcc.a i386-asm.c i386-gen.c c67-gen.c tccgen.c tcccoff.c tcc
pp.c tccasm.c arm64-gen.c x86_64-gen.c libtcc.c arm-gen.c il-gen.c tccelf.c tcc.
c tccpe.c conftest.c tccrun.c il-opcodes.h x86_64-asm.h elf.h libtcc.h tcctok.h
config.h tcclib.h coff.h tcc.h i386-asm.h stab.h i386-tok.h -lm -ldl -I.  -Wall
-g -O2 -Wno-deprecated-declarations -Wno-strict-aliasing -Wno-pointer-sign -Wno-
sign-compare -Wno-unused-result -Wno-uninitialized -fno-strict-aliasing
c67-gen.c:134:24: error: 'RC_INT_BSIDE' undeclared here (not in a function)

I notice in the Makefile that Intel architectures are treated
differently for linking:

ifeq ($(ARCH),i386)
PROGS:=$($(I386_CROSS)_LINK)
$($(I386_CROSS)_LINK)_TCC = yes
endif
ifeq ($(ARCH),x86-64)
PROGS:=$($(X64_CROSS)_LINK)
$($(X64_CROSS)_LINK)_TCC = yes
endif

The problem may have something to do with that.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to