tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] cross-compile test broken


From: Christian Jullien
Subject: [Tinycc-devel] cross-compile test broken
Date: Mon, 11 Jan 2021 16:42:32 +0100

Hi Grischka,

 

You last commit looks broken for cross-test on a RPi:

------------ cross-test ------------

. i386

. i386-win32

In file included from ../tcc.c:23:

In file included from ../libtcc.c:24:

../tccelf.c:2659: error: 'roinf_use' undeclared

make[2]: *** [Makefile:282: cross-test] Error 1

 

Ditto for Windows port using Cygwin

# Stage 1

stage1: Bootstrapping 32bits and 64bits tools with gcc -m64

In file included from ../libtcc.c:24,

                 from ../tcc.c:23:

../tccelf.c: In function ‘elf_output_file’:

../tccelf.c:2659:11: error: ‘roinf_use’ undeclared (first use in this function)

2659 |  phnum++, roinf_use = &roinf;

 

Also the OpenBSD aarch64 port which was almost complete is now broken for an unclear reason:

 

./configure --strip-binaries --with-selinux --cc=clang --prefix=/home/jullien/tinycc/static

Binary directory    /home/jullien/tinycc/static/bin

TinyCC directory    /home/jullien/tinycc/static/lib/tcc

Library directory   /home/jullien/tinycc/static/lib

Include directory   /home/jullien/tinycc/static/include

Manual directory    /home/jullien/tinycc/static/share/man

Info directory      /home/jullien/tinycc/static/share/info

Doc directory       /home/jullien/tinycc/static/share/doc

Source path         /home/jullien/tinycc

C compiler          clang (10.0)

Target OS           OpenBSD

CPU                 aarch64

Config              BSD ldl=no strip selinux

Creating config.mak and config.h

clang -o tcc.o -c tcc.c -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DTARGETOS_OpenBSD        -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.

ar rcs libtcc.a

clang -o tcc tcc.o libtcc.a -lm -lpthread -s

ld: error: undefined symbol: tcc_realloc

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

 

ld: error: undefined symbol: tcc_malloc

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

 

ld: error: undefined symbol: tcc_free

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

>>> referenced by tcc.c

>>>               tcc.o:(tcc_tool_ar)

 

 

I’


reply via email to

[Prev in Thread] Current Thread [Next in Thread]