=>> Building lang/tcc build started at Fri Dec 12 01:02:32 EST 2025 port directory: /usr/ports/lang/tcc package name: tcc-0.9.26_7 building for: FreeBSD pkg.DaveG.ca 13.5-RELEASE-p7 FreeBSD 13.5-RELEASE-p7 1305000 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1543 Aug 27 2024 /usr/ports/lang/tcc/Makefile Ports top last git commit: 62d8b1999233 Ports top unclean checkout: no Port dir last git commit: e10e2022a9b3 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1305000 Job Id: 08 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1305000 UNAME_v=FreeBSD 13.5-RELEASE-p7 1305000 UNAME_r=13.5-RELEASE-p7 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/08/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_13_5_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for tcc-0.9.26_7: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix="/usr/local" --cc="cc" --cpu=x86-64 --extra-cflags="-DTCC_TARGET_X86_64 -DONE_SOURCE" --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- MAKE=/usr/local/bin/gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/lang/tcc/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/tcc/work XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/tcc/work/.cache HOME=/wrkdirs/usr/ports/lang/tcc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/lang/tcc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/tcc/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/lang/tcc/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/tcc/work XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/tcc/work/.cache HOME=/wrkdirs/usr/ports/lang/tcc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/lang/tcc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/tcc/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fheinous-gnu-extensions -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fheinous-gnu-extensions -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" PORTEXAMPLES="" AMD64="" I386="@comment " OSREL=13.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.42.0 PERL_VER=5.42 PERL5_MAN1=lib/perl5/site_perl/man/man1 PERL5_MAN3=lib/perl5/site_perl/man/man3 SITE_PERL=lib/perl5/site_perl SITE_ARCH=lib/perl5/site_perl/mach/5.42 DOCSDIR="share/doc/tcc" EXAMPLESDIR="share/examples/tcc" DATADIR="share/tcc" WWWDIR="www/tcc" ETCDIR="etc/tcc" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/tcc DOCSDIR=/usr/local/share/doc/tcc EXAMPLESDIR=/usr/local/share/examples/tcc WWWDIR=/usr/local/www/tcc ETCDIR=/usr/local/etc/tcc --End SUB_LIST-- ---Begin make.conf--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The tcc port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcc-0.9.26_7 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.4.2_1.pkg [pkg.DaveG.ca] Installing pkg-2.4.2_1... [pkg.DaveG.ca] Extracting pkg-2.4.2_1: .......... done ===> tcc-0.9.26_7 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of tcc-0.9.26_7 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The tcc port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by tcc-0.9.26_7 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The tcc port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by tcc-0.9.26_7 for building => SHA256 Checksum OK for TinyCC-tinycc-release_0_9_26_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The tcc port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by tcc-0.9.26_7 for building ===> Extracting for tcc-0.9.26_7 => SHA256 Checksum OK for TinyCC-tinycc-release_0_9_26_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for tcc-0.9.26_7 ===> Applying FreeBSD patches for tcc-0.9.26_7 from /usr/ports/lang/tcc/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcc-0.9.26_7 depends on package: gmake>=4.4.1 - not found ===> Installing existing package /packages/All/gmake-4.4.1.pkg [pkg.DaveG.ca] Installing gmake-4.4.1... [pkg.DaveG.ca] `-- Installing gettext-runtime-0.23.1... [pkg.DaveG.ca] | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] `-- Extracting gettext-runtime-0.23.1: .......... done [pkg.DaveG.ca] Extracting gmake-4.4.1: .......... done ===> tcc-0.9.26_7 depends on package: gmake>=4.4.1 - found ===> Returning to build of tcc-0.9.26_7 ===> tcc-0.9.26_7 depends on file: /usr/local/bin/makeinfo - not found ===> Installing existing package /packages/All/texinfo-7.2_2,1.pkg [pkg.DaveG.ca] Installing texinfo-7.2_2,1... [pkg.DaveG.ca] `-- Installing libiconv-1.18_1... [pkg.DaveG.ca] `-- Extracting libiconv-1.18_1: .......... done [pkg.DaveG.ca] `-- Installing p5-Locale-libintl-1.35... [pkg.DaveG.ca] | `-- Installing perl5-5.42.0_1... [pkg.DaveG.ca] | `-- Extracting perl5-5.42.0_1: .......... done [pkg.DaveG.ca] `-- Extracting p5-Locale-libintl-1.35: .......... done [pkg.DaveG.ca] `-- Installing p5-Text-Unidecode-1.30... [pkg.DaveG.ca] `-- Extracting p5-Text-Unidecode-1.30: .......... done [pkg.DaveG.ca] `-- Installing p5-Unicode-EastAsianWidth-12.0... [pkg.DaveG.ca] `-- Extracting p5-Unicode-EastAsianWidth-12.0: ... done [pkg.DaveG.ca] Extracting texinfo-7.2_2,1: .......... done ===> tcc-0.9.26_7 depends on file: /usr/local/bin/makeinfo - found ===> Returning to build of tcc-0.9.26_7 ===> tcc-0.9.26_7 depends on package: perl5>=5.42.r<5.43 - found ===> tcc-0.9.26_7 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> tcc-0.9.26_7 depends on file: /usr/local/bin/ccache - found ===> Returning to build of tcc-0.9.26_7 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for tcc-0.9.26_7 Binary directory /usr/local/bin TinyCC directory /usr/local/lib/tcc Library directory /usr/local/lib Include directory /usr/local/include Manual directory /usr/local/share/man Info directory /usr/local/share/info Doc directory /usr/local/share/doc/tcc Target root prefix Source path /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26 C compiler cc Target OS FreeBSD CPU x86-64 Big Endian no gprof enabled no cross compilers no use libgcc no Creating config.mak and config.h =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for tcc-0.9.26_7 cc -o tcc.o -c tcc.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o x86_64-gen.o -c x86_64-gen.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE cc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_X86_64 -I. -DTCC_TARGET_X86_64 -DONE_SOURCE /usr/local/bin/gmake -C lib native gmake[1]: Entering directory '/wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib' mkdir -p x86_64 ./texi2pod.pl tcc-doc.texi tcc.pod makeinfo --no-split --html --number-sections -o tcc-doc.html tcc-doc.texi makeinfo tcc-doc.texi pod2man --section=1 --center=" " --release=" " tcc.pod > tcc.1 cc -c libtcc1.c -o x86_64/libtcc1.o -I.. -DTCC_TARGET_X86_64 -DONE_SOURCE -DTCC_TARGET_X86_64 cc -c alloca86_64.S -o x86_64/alloca86_64.o -I.. -DTCC_TARGET_X86_64 -DONE_SOURCE -DTCC_TARGET_X86_64 cc -c bcheck.c -o x86_64/bcheck.o -I.. -DTCC_TARGET_X86_64 -DONE_SOURCE -DTCC_TARGET_X86_64 In file included from tccasm.c:21: ./tcc.h:1087:19: warning: function 'tok_alloc' has internal linkage but is not defined [-Wundefined-internal] 1087 | ST_FUNC TokenSym *tok_alloc(const char *str, int len); | ^ tccasm.c:30:10: note: used here 30 | ts = tok_alloc(buf, strlen(buf)); | ^ In file included from tccasm.c:21: ./tcc.h:1099:14: warning: function 'label_find' has internal linkage but is not defined [-Wundefined-internal] 1099 | ST_FUNC Sym *label_find(int v); | ^ tccasm.c:52:19: note: used here 52 | sym = label_find(label); | ^ In file included from tccasm.c:21: ./tcc.h:1100:14: warning: function 'label_push' has internal linkage but is not defined [-Wundefined-internal] 1100 | ST_FUNC Sym *label_push(Sym **ptop, int v, int flags); | ^ tccasm.c:63:27: note: used here 63 | sym = label_push(&s1->asm_labels, label, 0); | ^ In file included from tccasm.c:21: ./tcc.h:1105:14: warning: function 'next' has internal linkage but is not defined [-Wundefined-internal] 1105 | ST_FUNC void next(void); | ^ tccasm.c:75:9: note: used here 75 | next(); | ^ In file included from tccasm.c:21: ./tcc.h:1110:14: warning: function 'skip' has internal linkage but is not defined [-Wundefined-internal] 1110 | ST_FUNC void skip(int c); | ^ tccasm.c:102:9: note: used here 102 | skip(')'); | ^ In file included from tccasm.c:21: ./tcc.h:1088:15: warning: function 'get_tok_str' has internal linkage but is not defined [-Wundefined-internal] 1088 | ST_FUNC char *get_tok_str(int v, CValue *cv); | ^ tccasm.c:123:53: note: used here 123 | tcc_error("bad expression syntax [%s]", get_tok_str(tok, &tokc)); | ^ In file included from tccasm.c:21: ./tcc.h:1111:14: warning: function 'expect' has internal linkage but is not defined [-Wundefined-internal] 1111 | ST_FUNC void expect(const char *msg); | ^ tccasm.c:254:9: note: used here 254 | expect("constant"); | ^ In file included from tccasm.c:21: ./tcc.h:1034:14: warning: function 'put_extern_sym2' has internal linkage but is not defined [-Wundefined-internal] 1034 | ST_FUNC void put_extern_sym2(Sym *sym, Section *section, addr_t value, unsigned long size, int can_add_underscore); | ^ tccasm.c:304:13: note: used here 304 | put_extern_sym2(s, sec, s->jnext, 0, 0); | ^ In file included from tccasm.c:21: ./tcc.h:1038:14: warning: function 'sym_free' has internal linkage but is not defined [-Wundefined-internal] 1038 | ST_INLN void sym_free(Sym *sym); | ^ tccasm.c:308:9: note: used here 308 | sym_free(s); | ^ In file included from tccasm.c:21: ./tcc.h:1032:18: warning: function 'find_section' has internal linkage but is not defined [-Wundefined-internal] 1032 | ST_FUNC Section *find_section(TCCState *s1, const char *name); | ^ tccasm.c:323:11: note: used here 323 | sec = find_section(s1, name); | ^ In file included from tccasm.c:21: ./tcc.h:1030:15: warning: function 'section_ptr_add' has internal linkage but is not defined [-Wundefined-internal] 1030 | ST_FUNC void *section_ptr_add(Section *sec, unsigned long size); | ^ tccasm.c:362:19: note: used here 362 | ptr = section_ptr_add(sec, size); | ^ In file included from tccasm.c:21: ./tcc.h:1285:14: warning: function 'gen_le32' has internal linkage but is not defined [-Wundefined-internal] 1285 | ST_FUNC void gen_le32(int c); | ^ tccasm.c:384:17: note: used here 384 | gen_le32(vl); | ^ In file included from tccasm.c:21: ./tcc.h:1328:14: warning: function 'gen_expr32' has internal linkage but is not defined [-Wundefined-internal] 1328 | ST_FUNC void gen_expr32(ExprValue *pe); | ^ tccasm.c:411:21: note: used here 411 | gen_expr32(&e); | ^ In file included from tccasm.c:21: ./tcc.h:1282:14: warning: function 'g' has internal linkage but is not defined [-Wundefined-internal] 1282 | ST_FUNC void g(int c); | ^ tccasm.c:416:25: note: used here 416 | g(e.v); | ^ In file included from tccasm.c:21: ./tcc.h:1284:14: warning: function 'gen_le16' has internal linkage but is not defined [-Wundefined-internal] 1284 | ST_FUNC void gen_le16(int c); | ^ tccasm.c:418:25: note: used here 418 | gen_le16(e.v); | ^ In file included from tccasm.c:21: ./tcc.h:1329:14: warning: function 'asm_opcode' has internal linkage but is not defined [-Wundefined-internal] 1329 | ST_FUNC void asm_opcode(TCCState *s1, int opcode); | ^ tccasm.c:781:17: note: used here 781 | asm_opcode(s1, opcode); | ^ In file included from tccasm.c:21: ./tcc.h:1107:14: warning: function 'preprocess_init' has internal linkage but is not defined [-Wundefined-internal] 1107 | ST_FUNC void preprocess_init(TCCState *s1); | ^ tccasm.c:803:5: note: used here 803 | preprocess_init(s1); | ^ In file included from tccasm.c:21: ./tcc.h:1214:13: warning: function 'put_elf_sym' has internal linkage but is not defined [-Wundefined-internal] 1214 | ST_FUNC int put_elf_sym(Section *s, addr_t value, unsigned long size, int info, int other, int shndx, const char *name); | ^ tccasm.c:813:5: note: used here 813 | put_elf_sym(symtab_section, 0, 0, | ^ In file included from tccasm.c:21: ./tcc.h:1098:14: warning: function 'free_defines' has internal linkage but is not defined [-Wundefined-internal] 1098 | ST_FUNC void free_defines(Sym *b); | ^ tccasm.c:821:5: note: used here 821 | free_defines(define_start); | ^ In file included from tccasm.c:21: ./tcc.h:1047:14: warning: function 'tcc_open_bf' has internal linkage but is not defined [-Wundefined-internal] 1047 | ST_FUNC void tcc_open_bf(TCCState *s1, const char *filename, int initlen); | ^ tccasm.c:840:5: note: used here 840 | tcc_open_bf(s1, ":asm:", len); | ^ In file included from tccasm.c:21: ./tcc.h:1049:14: warning: function 'tcc_close' has internal linkage but is not defined [-Wundefined-internal] 1049 | ST_FUNC void tcc_close(void); | ^ tccasm.c:845:5: note: used here 845 | tcc_close(); | ^ In file included from tccasm.c:21: ./tcc.h:1024:14: warning: function 'cstr_new' has internal linkage but is not defined [-Wundefined-internal] 1024 | ST_FUNC void cstr_new(CString *cstr); | ^ tccasm.c:901:5: note: used here 901 | cstr_new(out_str); | ^ In file included from tccasm.c:21: ./tcc.h:1331:14: warning: function 'subst_asm_operand' has internal linkage but is not defined [-Wundefined-internal] 1331 | ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier); | ^ tccasm.c:924:13: note: used here 924 | subst_asm_operand(out_str, &sv, modifier); | ^ In file included from tccasm.c:21: ./tcc.h:1021:14: warning: function 'cstr_ccat' has internal linkage but is not defined [-Wundefined-internal] 1021 | ST_FUNC void cstr_ccat(CString *cstr, int ch); | ^ tccasm.c:927:13: note: used here 927 | cstr_ccat(out_str, c); | ^ In file included from tccasm.c:21: ./tcc.h:1187:14: warning: function 'gexpr' has internal linkage but is not defined [-Wundefined-internal] 1187 | ST_FUNC void gexpr(void); | ^ tccasm.c:962:13: note: used here 962 | gexpr(); | ^ In file included from tccasm.c:21: ./tcc.h:1155:14: warning: function 'test_lvalue' has internal linkage but is not defined [-Wundefined-internal] 1155 | ST_FUNC void test_lvalue(void); | ^ tccasm.c:964:17: note: used here 964 | test_lvalue(); | ^ In file included from tccasm.c:21: ./tcc.h:1173:13: warning: function 'gv' has internal linkage but is not defined [-Wundefined-internal] 1173 | ST_FUNC int gv(int rc); | ^ tccasm.c:974:21: note: used here 974 | gv(RC_INT); | ^ In file included from tccasm.c:21: ./tcc.h:1181:14: warning: function 'parse_asm_str' has internal linkage but is not defined [-Wundefined-internal] 1181 | ST_FUNC void parse_asm_str(CString *astr); | ^ tccasm.c:1003:5: note: used here 1003 | parse_asm_str(&astr); | ^ In file included from tccasm.c:21: ./tcc.h:1333:14: warning: function 'asm_clobber' has internal linkage but is not defined [-Wundefined-internal] 1333 | ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str); | ^ tccasm.c:1026:25: note: used here 1026 | asm_clobber(clobber_regs, tokc.cstr->data); | ^ In file included from tccasm.c:21: ./tcc.h:1172:14: warning: function 'save_regs' has internal linkage but is not defined [-Wundefined-internal] 1172 | ST_FUNC void save_regs(int n); | ^ tccasm.c:1045:5: note: used here 1045 | save_regs(0); | ^ In file included from tccasm.c:21: ./tcc.h:1330:14: warning: function 'asm_compute_constraints' has internal linkage but is not defined [-Wundefined-internal] 1330 | ST_FUNC void asm_compute_constraints(ASMOperand *operands, int nb_operands, int nb_outputs, const uint8_t *clobber_regs, int *pout_reg); | ^ tccasm.c:1048:5: note: used here 1048 | asm_compute_constraints(operands, nb_operands, nb_outputs, | ^ In file included from tccasm.c:21: ./tcc.h:1025:14: warning: function 'cstr_free' has internal linkage but is not defined [-Wundefined-internal] 1025 | ST_FUNC void cstr_free(CString *cstr); | ^ tccasm.c:1058:9: note: used here 1058 | cstr_free(&astr); | ^ In file included from tccasm.c:21: ./tcc.h:1332:14: warning: function 'asm_gen_code' has internal linkage but is not defined [-Wundefined-internal] 1332 | ST_FUNC void asm_gen_code(ASMOperand *operands, int nb_operands, int nb_outputs, int is_output, uint8_t *clobber_regs, int out_reg); | ^ tccasm.c:1067:5: note: used here 1067 | asm_gen_code(operands, nb_operands, nb_outputs, 0, | ^ In file included from tccasm.c:21: ./tcc.h:1175:14: warning: function 'vpop' has internal linkage but is not defined [-Wundefined-internal] 1175 | ST_FUNC void vpop(void); | ^ tccasm.c:1085:9: note: used here 1085 | vpop(); | ^ 34 warnings generated. In file included from x86_64-gen.c:103: ./tcc.h:1029:14: warning: function 'section_realloc' has internal linkage but is not defined [-Wundefined-internal] 1029 | ST_FUNC void section_realloc(Section *sec, unsigned long new_size); | ^ x86_64-gen.c:130:9: note: used here 130 | section_realloc(cur_text_section, ind1); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1036:14: warning: function 'greloc' has internal linkage but is not defined [-Wundefined-internal] 1036 | ST_FUNC void greloc(Section *s, Sym *sym, unsigned long offset, int type); | ^ x86_64-gen.c:233:9: note: used here 233 | greloc(cur_text_section, sym, ind, R_X86_64_32); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1153:13: warning: function 'is_float' has internal linkage but is not defined [-Wundefined-internal] 1153 | ST_INLN int is_float(int t); | ^ x86_64-gen.c:351:13: note: used here 351 | if (is_float(ft)) { | ^ In file included from x86_64-gen.c:103: ./tcc.h:1171:13: warning: function 'get_reg' has internal linkage but is not defined [-Wundefined-internal] 1171 | ST_FUNC int get_reg(int rc); | ^ x86_64-gen.c:353:18: note: used here 353 | tr = get_reg(RC_INT) | TREG_MEM; | ^ In file included from x86_64-gen.c:103: ./tcc.h:1217:14: warning: function 'put_elf_reloc' has internal linkage but is not defined [-Wundefined-internal] 1217 | ST_FUNC void put_elf_reloc(Section *symtab, Section *s, unsigned long offset, int type, int symbol); | ^ x86_64-gen.c:566:13: note: used here 566 | put_elf_reloc(symtab_section, cur_text_section, | ^ In file included from x86_64-gen.c:103: ./tcc.h:1177:13: warning: function 'type_size' has internal linkage but is not defined [-Wundefined-internal] 1177 | ST_FUNC int type_size(CType *type, int *a); | ^ x86_64-gen.c:839:26: note: used here 839 | args_size += type_size(&vtop[-i].type, &align); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1173:13: warning: function 'gv' has internal linkage but is not defined [-Wundefined-internal] 1173 | ST_FUNC int gv(int rc); | ^ x86_64-gen.c:862:13: note: used here 862 | gv(RC_INT); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1159:14: warning: function 'vset' has internal linkage but is not defined [-Wundefined-internal] 1159 | ST_FUNC void vset(CType *type, int r, int v); | ^ x86_64-gen.c:889:6: note: used here 889 | vset(&vtop->type, r | VT_LVAL, 0); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1160:14: warning: function 'vswap' has internal linkage but is not defined [-Wundefined-internal] 1160 | ST_FUNC void vswap(void); | ^ x86_64-gen.c:890:6: note: used here 890 | vswap(); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1179:14: warning: function 'vstore' has internal linkage but is not defined [-Wundefined-internal] 1179 | ST_FUNC void vstore(void); | ^ x86_64-gen.c:891:6: note: used here 891 | vstore(); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1172:14: warning: function 'save_regs' has internal linkage but is not defined [-Wundefined-internal] 1172 | ST_FUNC void save_regs(int n); | ^ x86_64-gen.c:929:5: note: used here 929 | save_regs(0); /* save used temporary registers */ | ^ In file included from x86_64-gen.c:103: ./tcc.h:1041:14: warning: function 'sym_push' has internal linkage but is not defined [-Wundefined-internal] 1041 | ST_FUNC Sym *sym_push(int v, CType *type, int r, int c); | ^ x86_64-gen.c:1114:9: note: used here 1114 | sym_push(sym->v & ~SYM_FIELD, type, | ^ In file included from x86_64-gen.c:103: ./tcc.h:1157:14: warning: function 'vpushi' has internal linkage but is not defined [-Wundefined-internal] 1157 | ST_FUNC void vpushi(int v); | ^ x86_64-gen.c:1208:13: note: used here 1208 | vpushi(0); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1176:14: warning: function 'gen_op' has internal linkage but is not defined [-Wundefined-internal] 1176 | ST_FUNC void gen_op(int op); | ^ x86_64-gen.c:1209:13: note: used here 1209 | gen_op(TOK_NE); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1174:14: warning: function 'gv2' has internal linkage but is not defined [-Wundefined-internal] 1174 | ST_FUNC void gv2(int rc1, int rc2); | ^ x86_64-gen.c:1258:13: note: used here 1258 | gv2(RC_INT, RC_INT); | ^ In file included from x86_64-gen.c:103: ./tcc.h:1170:14: warning: function 'save_reg' has internal linkage but is not defined [-Wundefined-internal] 1170 | ST_FUNC void save_reg(int r); | ^ x86_64-gen.c:1339:9: note: used here 1339 | save_reg(TREG_RDX); | ^ 16 warnings generated. tccrun.c:256:18: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 256 | stab_str = stabstr_section->data; | ^ ~~~~~~~~~~~~~~~~~~~~~ tccrun.c:349:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 349 | strtab_section->data + sym->st_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcc.h:998:61: note: passing argument to parameter 's' here 998 | PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s); | ^ ./tcc.h:1238:15: warning: function 'tcc_get_symbol_err' has internal linkage but is not defined [-Wundefined-internal] 1238 | ST_FUNC void *tcc_get_symbol_err(TCCState *s, const char *name); | ^ tccrun.c:100:17: note: used here 100 | prog_main = tcc_get_symbol_err(s1, "main"); | ^ In file included from tccrun.c:21: ./tcc.h:1234:14: warning: function 'tcc_add_runtime' has internal linkage but is not defined [-Wundefined-internal] 1234 | ST_FUNC void tcc_add_runtime(TCCState *s1); | ^ tccrun.c:141:9: note: used here 141 | tcc_add_runtime(s1); | ^ In file included from tccrun.c:21: ./tcc.h:1224:14: warning: function 'relocate_common_syms' has internal linkage but is not defined [-Wundefined-internal] 1224 | ST_FUNC void relocate_common_syms(void); | ^ tccrun.c:142:9: note: used here 142 | relocate_common_syms(); | ^ In file included from tccrun.c:21: ./tcc.h:1228:14: warning: function 'tcc_add_linker_symbols' has internal linkage but is not defined [-Wundefined-internal] 1228 | ST_FUNC void tcc_add_linker_symbols(TCCState *s1); | ^ tccrun.c:143:9: note: used here 143 | tcc_add_linker_symbols(s1); | ^ In file included from tccrun.c:21: ./tcc.h:1233:14: warning: function 'build_got_entries' has internal linkage but is not defined [-Wundefined-internal] 1233 | ST_FUNC void build_got_entries(TCCState *s1); | ^ tccrun.c:144:9: note: used here 144 | build_got_entries(s1); | ^ In file included from tccrun.c:21: ./tcc.h:1225:14: warning: function 'relocate_syms' has internal linkage but is not defined [-Wundefined-internal] 1225 | ST_FUNC void relocate_syms(TCCState *s1, int do_resolve); | ^ tccrun.c:162:5: note: used here 162 | relocate_syms(s1, 1); | ^ In file included from tccrun.c:21: ./tcc.h:1226:14: warning: function 'relocate_section' has internal linkage but is not defined [-Wundefined-internal] 1226 | ST_FUNC void relocate_section(TCCState *s1, Section *s); | ^ tccrun.c:181:13: note: used here 181 | relocate_section(s1, s); | ^ 9 warnings generated. tccgen.c:702:45: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 702 | vtop->type.t &= ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ tccgen.c:2371:60: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2371 | vtop->type.t = ft & (VT_TYPE & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT))); | ~~ ^ tccgen.c:2421:52: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2421 | vtop[-1].type.t = ft & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ In file included from tccgen.c:21: ./tcc.h:1111:14: warning: function 'expect' has internal linkage but is not defined [-Wundefined-internal] 1111 | ST_FUNC void expect(const char *msg); | ^ tccgen.c:106:9: note: used here 106 | expect("lvalue"); | ^ In file included from tccgen.c:21: ./tcc.h:1019:14: warning: function 'dynarray_add' has internal linkage but is not defined [-Wundefined-internal] 1019 | ST_FUNC void dynarray_add(void ***ptab, int *nb_ptr, void *data); | ^ tccgen.c:117:5: note: used here 117 | dynarray_add(&sym_pools, &nb_sym_pools, sym_pool); | ^ In file included from tccgen.c:21: ./tcc.h:1088:15: warning: function 'get_tok_str' has internal linkage but is not defined [-Wundefined-internal] 1088 | ST_FUNC char *get_tok_str(int v, CValue *cv); | ^ tccgen.c:155:27: note: used here 155 | get_tok_str(v, NULL)); | ^ In file included from tccgen.c:21: ./tcc.h:1035:14: warning: function 'put_extern_sym' has internal linkage but is not defined [-Wundefined-internal] 1035 | ST_FUNC void put_extern_sym(Sym *sym, Section *section, addr_t value, unsigned long size); | ^ tccgen.c:374:5: note: used here 374 | put_extern_sym(sym, sec, offset, size); | ^ In file included from tccgen.c:21: ./tcc.h:1261:14: warning: function 'store' has internal linkage but is not defined [-Wundefined-internal] 1261 | ST_FUNC void store(int r, SValue *v); | ^ tccgen.c:520:17: note: used here 520 | store(r, &sv); | ^ In file included from tccgen.c:21: ./tcc.h:1274:14: warning: function 'o' has internal linkage but is not defined [-Wundefined-internal] 1274 | ST_FUNC void o(unsigned int c); | ^ tccgen.c:524:21: note: used here 524 | o(0xd8dd); /* fstp %st(0) */ | ^ In file included from tccgen.c:21: ./tcc.h:1260:14: warning: function 'load' has internal linkage but is not defined [-Wundefined-internal] 1260 | ST_FUNC void load(int r, SValue *sv); | ^ tccgen.c:640:9: note: used here 640 | load(r, &sv); | ^ In file included from tccgen.c:21: ./tcc.h:1030:15: warning: function 'section_ptr_add' has internal linkage but is not defined [-Wundefined-internal] 1030 | ST_FUNC void *section_ptr_add(Section *sec, unsigned long size); | ^ tccgen.c:746:19: note: used here 746 | ptr = section_ptr_add(data_section, size); | ^ In file included from tccgen.c:21: ./tcc.h:1259:14: warning: function 'gsym' has internal linkage but is not defined [-Wundefined-internal] 1259 | ST_FUNC void gsym(int t); | ^ tccgen.c:1019:9: note: used here 1019 | gsym(vtop->c.ul); | ^ In file included from tccgen.c:21: ./tcc.h:1298:14: warning: function 'gen_opl' has internal linkage but is not defined [-Wundefined-internal] 1298 | ST_FUNC void gen_opl(int op); | ^ tccgen.c:1437:21: note: used here 1437 | gen_opl(op); | ^ In file included from tccgen.c:21: ./tcc.h:1268:14: warning: function 'gen_opi' has internal linkage but is not defined [-Wundefined-internal] 1268 | ST_FUNC void gen_opi(int op); | ^ tccgen.c:1439:21: note: used here 1439 | gen_opi(op); | ^ In file included from tccgen.c:21: ./tcc.h:1269:14: warning: function 'gen_opf' has internal linkage but is not defined [-Wundefined-internal] 1269 | ST_FUNC void gen_opf(int op); | ^ tccgen.c:1504:13: note: used here 1504 | gen_opf(op); | ^ In file included from tccgen.c:21: ./tcc.h:1262:14: warning: function 'gfunc_call' has internal linkage but is not defined [-Wundefined-internal] 1262 | ST_FUNC void gfunc_call(int nb_args); | ^ tccgen.c:1769:9: note: used here 1769 | gfunc_call(1); | ^ In file included from tccgen.c:21: ./tcc.h:1277:14: warning: function 'gen_cvt_itof' has internal linkage but is not defined [-Wundefined-internal] 1277 | ST_FUNC void gen_cvt_itof(int t); | ^ tccgen.c:1773:9: note: used here 1773 | gen_cvt_itof(t); | ^ In file included from tccgen.c:21: ./tcc.h:1270:14: warning: function 'gen_cvt_ftoi' has internal linkage but is not defined [-Wundefined-internal] 1270 | ST_FUNC void gen_cvt_ftoi(int t); | ^ tccgen.c:1800:9: note: used here 1800 | gen_cvt_ftoi(t); | ^ In file included from tccgen.c:21: ./tcc.h:1271:14: warning: function 'gen_cvt_ftof' has internal linkage but is not defined [-Wundefined-internal] 1271 | ST_FUNC void gen_cvt_ftof(int t); | ^ tccgen.c:1923:17: note: used here 1923 | gen_cvt_ftof(dbt); | ^ In file included from tccgen.c:21: ./tcc.h:1105:14: warning: function 'next' has internal linkage but is not defined [-Wundefined-internal] 1105 | ST_FUNC void next(void); | ^ tccgen.c:2551:5: note: used here 2551 | next(); | ^ In file included from tccgen.c:21: ./tcc.h:1110:14: warning: function 'skip' has internal linkage but is not defined [-Wundefined-internal] 1110 | ST_FUNC void skip(int c); | ^ tccgen.c:2552:5: note: used here 2552 | skip('('); | ^ In file included from tccgen.c:21: ./tcc.h:1032:18: warning: function 'find_section' has internal linkage but is not defined [-Wundefined-internal] 1032 | ST_FUNC Section *find_section(TCCState *s1, const char *name); | ^ tccgen.c:2565:27: note: used here 2565 | ad->section = find_section(tcc_state, (char *)tokc.cstr->data); | ^ In file included from tccgen.c:21: ./tcc.h:1087:19: warning: function 'tok_alloc' has internal linkage but is not defined [-Wundefined-internal] 1087 | ST_FUNC TokenSym *tok_alloc(const char *str, int len); | ^ tccgen.c:2575:15: note: used here 2575 | tok_alloc((char*)tokc.cstr->data, tokc.cstr->size-1)->tok; | ^ In file included from tccgen.c:21: ./tcc.h:1024:14: warning: function 'cstr_new' has internal linkage but is not defined [-Wundefined-internal] 1024 | ST_FUNC void cstr_new(CString *cstr); | ^ tccgen.c:3108:5: note: used here 3108 | cstr_new(astr); | ^ In file included from tccgen.c:21: ./tcc.h:1022:14: warning: function 'cstr_cat' has internal linkage but is not defined [-Wundefined-internal] 1022 | ST_FUNC void cstr_cat(CString *cstr, const char *str); | ^ tccgen.c:3111:9: note: used here 3111 | cstr_cat(astr, tokc.cstr->data); | ^ In file included from tccgen.c:21: ./tcc.h:1021:14: warning: function 'cstr_ccat' has internal linkage but is not defined [-Wundefined-internal] 1021 | ST_FUNC void cstr_ccat(CString *cstr, int ch); | ^ tccgen.c:3114:5: note: used here 3114 | cstr_ccat(astr, '\0'); | ^ In file included from tccgen.c:21: ./tcc.h:1267:13: warning: function 'gtst' has internal linkage but is not defined [-Wundefined-internal] 1267 | ST_FUNC int gtst(int inv, int t); | ^ tccgen.c:3597:27: note: used here 3597 | vseti(VT_JMP, gtst(1, 0)); | ^ In file included from tccgen.c:21: ./tcc.h:1099:14: warning: function 'label_find' has internal linkage but is not defined [-Wundefined-internal] 1099 | ST_FUNC Sym *label_find(int v); | ^ tccgen.c:3731:13: note: used here 3731 | s = label_find(tok); | ^ In file included from tccgen.c:21: ./tcc.h:1100:14: warning: function 'label_push' has internal linkage but is not defined [-Wundefined-internal] 1100 | ST_FUNC Sym *label_push(Sym **ptop, int v, int flags); | ^ tccgen.c:3733:17: note: used here 3733 | s = label_push(&global_label_stack, tok, LABEL_FORWARD); | ^ In file included from tccgen.c:21: ./tcc.h:1265:13: warning: function 'gjmp' has internal linkage but is not defined [-Wundefined-internal] 1265 | ST_FUNC int gjmp(int t); | ^ tccgen.c:4147:17: note: used here 4147 | u = gjmp(0); | ^ In file included from tccgen.c:21: ./tcc.h:1106:14: warning: function 'unget_tok' has internal linkage but is not defined [-Wundefined-internal] 1106 | ST_INLN void unget_tok(int last_tok); | ^ tccgen.c:4336:9: note: used here 4336 | unget_tok(last_tok); | ^ In file included from tccgen.c:21: ./tcc.h:1221:14: warning: function 'put_stabn' has internal linkage but is not defined [-Wundefined-internal] 1221 | ST_FUNC void put_stabn(int type, int other, int desc, int value); | ^ tccgen.c:4369:9: note: used here 4369 | put_stabn(N_SLINE, 0, file->line_num, ind - func_ind); | ^ In file included from tccgen.c:21: ./tcc.h:1266:14: warning: function 'gjmp_addr' has internal linkage but is not defined [-Wundefined-internal] 1266 | ST_FUNC void gjmp_addr(int a); | ^ tccgen.c:4406:9: note: used here 4406 | gjmp_addr(d); | ^ In file included from tccgen.c:21: ./tcc.h:1258:14: warning: function 'gsym_addr' has internal linkage but is not defined [-Wundefined-internal] 1258 | ST_FUNC void gsym_addr(int t, int a); | ^ tccgen.c:4408:9: note: used here 4408 | gsym_addr(b, d); | ^ In file included from tccgen.c:21: ./tcc.h:1101:14: warning: function 'label_pop' has internal linkage but is not defined [-Wundefined-internal] 1101 | ST_FUNC void label_pop(Sym **ptop, Sym *slast); | ^ tccgen.c:4444:9: note: used here 4444 | label_pop(&local_label_stack, llabel); | ^ In file included from tccgen.c:21: ./tcc.h:1272:14: warning: function 'ggoto' has internal linkage but is not defined [-Wundefined-internal] 1272 | ST_FUNC void ggoto(void); | ^ tccgen.c:4657:13: note: used here 4657 | ggoto(); | ^ In file included from tccgen.c:21: ./tcc.h:1320:14: warning: function 'asm_instr' has internal linkage but is not defined [-Wundefined-internal] 1320 | ST_FUNC void asm_instr(void); | ^ tccgen.c:4678:9: note: used here 4678 | asm_instr(); | ^ In file included from tccgen.c:21: ./tcc.h:1029:14: warning: function 'section_realloc' has internal linkage but is not defined [-Wundefined-internal] 1029 | ST_FUNC void section_realloc(Section *sec, unsigned long new_size); | ^ tccgen.c:4828:13: note: used here 4828 | section_realloc(sec, c_end); | ^ In file included from tccgen.c:21: ./tcc.h:1036:14: warning: function 'greloc' has internal linkage but is not defined [-Wundefined-internal] 1036 | ST_FUNC void greloc(Section *s, Sym *sym, unsigned long offset, int type); | ^ tccgen.c:4921:17: note: used here 4921 | greloc(sec, vtop->sym, c, R_DATA_PTR); | ^ In file included from tccgen.c:21: ./tcc.h:1091:14: warning: function 'tok_str_new' has internal linkage but is not defined [-Wundefined-internal] 1091 | ST_INLN void tok_str_new(TokenString *s); | ^ tccgen.c:5237:5: note: used here 5237 | tok_str_new(&init_str); | ^ In file included from tccgen.c:21: ./tcc.h:1094:14: warning: function 'tok_str_add_tok' has internal linkage but is not defined [-Wundefined-internal] 1094 | ST_FUNC void tok_str_add_tok(TokenString *s); | ^ tccgen.c:5245:17: note: used here 5245 | tok_str_add_tok(&init_str); | ^ In file included from tccgen.c:21: ./tcc.h:1093:14: warning: function 'tok_str_add' has internal linkage but is not defined [-Wundefined-internal] 1093 | ST_FUNC void tok_str_add(TokenString *s, int t); | ^ tccgen.c:5266:9: note: used here 5266 | tok_str_add(&init_str, -1); | ^ In file included from tccgen.c:21: ./tcc.h:1089:14: warning: function 'save_parse_state' has internal linkage but is not defined [-Wundefined-internal] 1089 | ST_FUNC void save_parse_state(ParseState *s); | ^ tccgen.c:5270:9: note: used here 5270 | save_parse_state(&saved_parse_state); | ^ In file included from tccgen.c:21: ./tcc.h:1092:14: warning: function 'tok_str_free' has internal linkage but is not defined [-Wundefined-internal] 1092 | ST_FUNC void tok_str_free(int *str); | ^ tccgen.c:5435:13: note: used here 5435 | tok_str_free(init_str.str); | ^ In file included from tccgen.c:21: ./tcc.h:1090:14: warning: function 'restore_parse_state' has internal linkage but is not defined [-Wundefined-internal] 1090 | ST_FUNC void restore_parse_state(ParseState *s); | ^ tccgen.c:5436:13: note: used here 5436 | restore_parse_state(&saved_parse_state); | ^ In file included from tccgen.c:21: ./tcc.h:1220:14: warning: function 'put_stabs_r' has internal linkage but is not defined [-Wundefined-internal] 1220 | ST_FUNC void put_stabs_r(const char *str, int type, int other, int desc, unsigned long value, Section *sec, int sym_index); | ^ tccgen.c:5454:5: note: used here 5454 | put_stabs_r(buf, N_FUN, 0, file->line_num, 0, | ^ In file included from tccgen.c:21: ./tcc.h:1263:14: warning: function 'gfunc_prolog' has internal linkage but is not defined [-Wundefined-internal] 1263 | ST_FUNC void gfunc_prolog(CType *func_type); | ^ tccgen.c:5527:5: note: used here 5527 | gfunc_prolog(&sym->type); | ^ In file included from tccgen.c:21: ./tcc.h:1264:14: warning: function 'gfunc_epilog' has internal linkage but is not defined [-Wundefined-internal] 1264 | ST_FUNC void gfunc_epilog(void); | ^ tccgen.c:5531:5: note: used here 5531 | gfunc_epilog(); | ^ In file included from tccgen.c:21: ./tcc.h:1020:14: warning: function 'dynarray_reset' has internal linkage but is not defined [-Wundefined-internal] 1020 | ST_FUNC void dynarray_reset(void *pp, int *n); | ^ tccgen.c:5594:5: note: used here 5594 | dynarray_reset(&tcc_state->inline_fns, &tcc_state->nb_inline_fns); | ^ In file included from tccgen.c:21: ./tcc.h:1321:14: warning: function 'asm_global_instr' has internal linkage but is not defined [-Wundefined-internal] 1321 | ST_FUNC void asm_global_instr(void); | ^ tccgen.c:5618:17: note: used here 5618 | asm_global_instr(); | ^ In file included from tccgen.c:21: ./tcc.h:1025:14: warning: function 'cstr_free' has internal linkage but is not defined [-Wundefined-internal] 1025 | ST_FUNC void cstr_free(CString *cstr); | ^ tccgen.c:5662:17: note: used here 5662 | cstr_free(&astr); | ^ In file included from tccgen.c:21: ./tcc.h:1034:14: warning: function 'put_extern_sym2' has internal linkage but is not defined [-Wundefined-internal] 1034 | ST_FUNC void put_extern_sym2(Sym *sym, Section *section, addr_t value, unsigned long size, int can_add_underscore); | ^ tccgen.c:5811:29: note: used here 5811 | put_extern_sym2(sym, &tsec, esym->st_value, esym->st_size, 0); | ^ 52 warnings generated. tccpp.c:1251:7: warning: assigning to 'const unsigned char *' from 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1251 | s = filename; | ^ ~~~~~~~~ tccpp.c:2226:37: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2226 | ts = tok_alloc_new(pts, p1, len); | ^~ tccpp.c:195:60: note: passing argument to parameter 'str' here 195 | static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len) | ^ In file included from tccpp.c:21: ./tcc.h:1039:14: warning: function 'sym_push2' has internal linkage but is not defined [-Wundefined-internal] 1039 | ST_FUNC Sym *sym_push2(Sym **ps, int v, int t, long c); | ^ tccpp.c:1024:9: note: used here 1024 | s = sym_push2(&define_stack, v, macro_type, 0); | ^ In file included from tccpp.c:21: ./tcc.h:1038:14: warning: function 'sym_free' has internal linkage but is not defined [-Wundefined-internal] 1038 | ST_INLN void sym_free(Sym *sym); | ^ tccpp.c:1063:9: note: used here 1063 | sym_free(top); | ^ In file included from tccpp.c:21: ./tcc.h:1035:14: warning: function 'put_extern_sym' has internal linkage but is not defined [-Wundefined-internal] 1035 | ST_FUNC void put_extern_sym(Sym *sym, Section *section, addr_t value, unsigned long size); | ^ tccpp.c:1111:17: note: used here 1111 | put_extern_sym(s, cur_text_section, s->jnext, 1); | ^ In file included from tccpp.c:21: ./tcc.h:1188:13: warning: function 'expr_const' has internal linkage but is not defined [-Wundefined-internal] 1188 | ST_FUNC int expr_const(void); | ^ tccpp.c:1152:9: note: used here 1152 | c = expr_const(); | ^ In file included from tccpp.c:21: ./tcc.h:1019:14: warning: function 'dynarray_add' has internal linkage but is not defined [-Wundefined-internal] 1019 | ST_FUNC void dynarray_add(void ***ptab, int *nb_ptr, void *data); | ^ tccpp.c:1290:5: note: used here 1290 | dynarray_add((void ***)&s1->cached_includes, &s1->nb_cached_includes, e); | ^ In file included from tccpp.c:21: ./tcc.h:1048:13: warning: function 'tcc_open' has internal linkage but is not defined [-Wundefined-internal] 1048 | ST_FUNC int tcc_open(TCCState *s1, const char *filename); | ^ tccpp.c:1487:17: note: used here 1487 | if (tcc_open(s1, buf1) < 0) | ^ In file included from tccpp.c:21: ./tcc.h:1219:14: warning: function 'put_stabs' has internal linkage but is not defined [-Wundefined-internal] 1219 | ST_FUNC void put_stabs(const char *str, int type, int other, int desc, unsigned long value); | ^ tccpp.c:1501:17: note: used here 1501 | put_stabs(file->filename, N_BINCL, 0, 0, 0); | ^ In file included from tccpp.c:21: ./tcc.h:1222:14: warning: function 'put_stabd' has internal linkage but is not defined [-Wundefined-internal] 1222 | ST_FUNC void put_stabd(int type, int other, int desc); | ^ tccpp.c:2137:21: note: used here 2137 | put_stabd(N_EINCL, 0, 0); | ^ In file included from tccpp.c:21: ./tcc.h:1049:14: warning: function 'tcc_close' has internal linkage but is not defined [-Wundefined-internal] 1049 | ST_FUNC void tcc_close(void); | ^ tccpp.c:2140:17: note: used here 2140 | tcc_close(); | ^ In file included from tccpp.c:21: ./tcc.h:1040:14: warning: function 'sym_find2' has internal linkage but is not defined [-Wundefined-internal] 1040 | ST_FUNC Sym *sym_find2(Sym *s, int v); | ^ tccpp.c:2544:17: note: used here 2544 | s = sym_find2(args, t); | ^ In file included from tccpp.c:21: ./tcc.h:1047:14: warning: function 'tcc_open_bf' has internal linkage but is not defined [-Wundefined-internal] 1047 | ST_FUNC void tcc_open_bf(TCCState *s1, const char *filename, int initlen); | ^ tccpp.c:2848:17: note: used here 2848 | tcc_open_bf(tcc_state, ":paste:", cstr.size); | ^ 13 warnings generated. bcheck.c:46:2: warning: Bound checking does not support malloc (etc.) in this environment. [-W#warnings] 46 | #warning Bound checking does not support malloc (etc.) in this environment. | ^ bcheck.c:149:5: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] 149 | *(int *)0 = 0; /* force a runtime error */ | ^~~~~~~~~ bcheck.c:149:5: note: consider using __builtin_trap() or qualifying pointer with 'volatile' bcheck.c:416:28: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 416 | __bound_new_region((void *)p[0], p[1]); | ^~~~~~~~~~~~ 3 warnings generated. ar rcs ../libtcc1.a x86_64/libtcc1.o x86_64/alloca86_64.o x86_64/bcheck.o In file included from i386-asm.c:22: ./tcc.h:1325:13: warning: function 'asm_int_expr' has internal linkage but is not defined [-Wundefined-internal] 1325 | ST_FUNC int asm_int_expr(TCCState *s1); | ^ i386-asm.c:248:9: note: used here 248 | v = asm_int_expr(s1); | ^ In file included from i386-asm.c:22: ./tcc.h:1111:14: warning: function 'expect' has internal linkage but is not defined [-Wundefined-internal] 1111 | ST_FUNC void expect(const char *msg); | ^ i386-asm.c:263:9: note: used here 263 | expect("1, 2, 4 or 8 constant"); | ^ In file included from i386-asm.c:22: ./tcc.h:1105:14: warning: function 'next' has internal linkage but is not defined [-Wundefined-internal] 1105 | ST_FUNC void next(void); | ^ i386-asm.c:275:5: note: used here 275 | next(); | ^ In file included from i386-asm.c:22: ./tcc.h:1110:14: warning: function 'skip' has internal linkage but is not defined [-Wundefined-internal] 1110 | ST_FUNC void skip(int c); | ^ i386-asm.c:338:17: note: used here 338 | skip(')'); | ^ In file included from i386-asm.c:22: ./tcc.h:1324:14: warning: function 'asm_expr' has internal linkage but is not defined [-Wundefined-internal] 1324 | ST_FUNC void asm_expr(TCCState *s1, ExprValue *pe); | ^ i386-asm.c:352:9: note: used here 352 | asm_expr(s1, &e); | ^ In file included from i386-asm.c:22: ./tcc.h:1106:14: warning: function 'unget_tok' has internal linkage but is not defined [-Wundefined-internal] 1106 | ST_INLN void unget_tok(int last_tok); | ^ i386-asm.c:381:17: note: used here 381 | unget_tok('('); | ^ In file included from i386-asm.c:22: ./tcc.h:1286:14: warning: function 'gen_addr32' has internal linkage but is not defined [-Wundefined-internal] 1286 | ST_FUNC void gen_addr32(int r, Sym *sym, int c); | ^ i386-asm.c:420:5: note: used here 420 | gen_addr32(pe->sym ? VT_SYM : 0, pe->sym, pe->v); | ^ In file included from i386-asm.c:22: ./tcc.h:1297:14: warning: function 'gen_addr64' has internal linkage but is not defined [-Wundefined-internal] 1297 | ST_FUNC void gen_addr64(int r, Sym *sym, int64_t c); | ^ i386-asm.c:426:5: note: used here 426 | gen_addr64(pe->sym ? VT_SYM : 0, pe->sym, pe->v); | ^ In file included from i386-asm.c:22: ./tcc.h:1285:14: warning: function 'gen_le32' has internal linkage but is not defined [-Wundefined-internal] 1285 | ST_FUNC void gen_le32(int c); | ^ i386-asm.c:439:9: note: used here 439 | gen_le32(pe->v + sym->jnext - ind - 4); | ^ In file included from i386-asm.c:22: ./tcc.h:1287:14: warning: function 'gen_addrpc32' has internal linkage but is not defined [-Wundefined-internal] 1287 | ST_FUNC void gen_addrpc32(int r, Sym *sym, int c); | ^ i386-asm.c:445:9: note: used here 445 | gen_addrpc32(VT_SYM, sym, pe->v); | ^ In file included from i386-asm.c:22: ./tcc.h:1282:14: warning: function 'g' has internal linkage but is not defined [-Wundefined-internal] 1282 | ST_FUNC void g(int c); | ^ i386-asm.c:486:9: note: used here 486 | g(0xc0 + (reg << 3) + op->reg); | ^ In file included from i386-asm.c:22: ./tcc.h:1088:15: warning: function 'get_tok_str' has internal linkage but is not defined [-Wundefined-internal] 1088 | ST_FUNC char *get_tok_str(int v, CValue *cv); | ^ i386-asm.c:720:19: note: used here 720 | get_tok_str(opcode, NULL)); | ^ In file included from i386-asm.c:22: ./tcc.h:1284:14: warning: function 'gen_le16' has internal linkage but is not defined [-Wundefined-internal] 1284 | ST_FUNC void gen_le16(int c); | ^ i386-asm.c:949:21: note: used here 949 | gen_le16(ops[i].e.v); | ^ In file included from i386-asm.c:22: ./tcc.h:1323:13: warning: function 'find_constraint' has internal linkage but is not defined [-Wundefined-internal] 1323 | ST_FUNC int find_constraint(ASMOperand *operands, int nb_operands, const char *name, const char **pp); | ^ i386-asm.c:1084:17: note: used here 1084 | k = find_constraint(operands, nb_operands, str, NULL); | ^ In file included from i386-asm.c:22: ./tcc.h:1021:14: warning: function 'cstr_ccat' has internal linkage but is not defined [-Wundefined-internal] 1021 | ST_FUNC void cstr_ccat(CString *cstr, int ch); | ^ i386-asm.c:1297:13: note: used here 1297 | cstr_ccat(add_str, '$'); | ^ In file included from i386-asm.c:22: ./tcc.h:1022:14: warning: function 'cstr_cat' has internal linkage but is not defined [-Wundefined-internal] 1022 | ST_FUNC void cstr_cat(CString *cstr, const char *str); | ^ i386-asm.c:1299:13: note: used here 1299 | cstr_cat(add_str, get_tok_str(sv->sym->v, NULL)); | ^ In file included from i386-asm.c:22: ./tcc.h:1260:14: warning: function 'load' has internal linkage but is not defined [-Wundefined-internal] 1260 | ST_FUNC void load(int r, SValue *sv); | ^ i386-asm.c:1423:21: note: used here 1423 | load(op->reg, &sv); | ^ In file included from i386-asm.c:22: ./tcc.h:1261:14: warning: function 'store' has internal linkage but is not defined [-Wundefined-internal] 1261 | ST_FUNC void store(int r, SValue *v); | ^ i386-asm.c:1449:25: note: used here 1449 | store(op->reg, &sv); | ^ In file included from i386-asm.c:22: ./tcc.h:1087:19: warning: function 'tok_alloc' has internal linkage but is not defined [-Wundefined-internal] 1087 | ST_FUNC TokenSym *tok_alloc(const char *str, int len); | ^ i386-asm.c:1484:10: note: used here 1484 | ts = tok_alloc(str, strlen(str)); | ^ 19 warnings generated. gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib' tccelf.c:60:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 60 | strtab = s->link->data; | ^ ~~~~~~~~~~~~~ tccelf.c:75:26: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 75 | h = elf_hash(strtab + sym->st_name) % nb_buckets; | ^~~~~~~~~~~~~~~~~~~~~ tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ tccelf.c:117:26: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 117 | h = elf_hash(name) % nbuckets; | ^~~~ tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ tccelf.c:147:18: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 147 | h = elf_hash(name) % nbuckets; | ^~~~ tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ tccelf.c:151:15: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 151 | name1 = s->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:434:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 434 | name = strtab_section->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:438:22: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 438 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1037:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1037 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1628:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1628 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1664:53: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1664 | dynname = s1->dynsymtab_section->link->data | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1665 | + dynsym->st_name; | ~~~~~~~~~~~~~~~~~ tccelf.c:1694:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1694 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1712:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1712 | name = s1->dynsymtab_section->link->data + esym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1756:34: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1756 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:1968:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1968 | if (!strcmp(strsec->data + s->sh_name, ".rel.got")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ tccelf.c:1972:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1972 | if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ tccelf.c:2432:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2432 | sh_name = strsec + sh->sh_name; | ^ ~~~~~~~~~~~~~~~~~~~~ tccelf.c:2553:26: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2553 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ tccelf.c:2569:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2569 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ tccelf.c:2673:14: warning: assigning to 'const char *' from 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2673 | ar_names = ar_index + nsyms * 4; | ^ ~~~~~~~~~~~~~~~~~~~~ tccelf.c:2810:20: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2810 | soname = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ tccelf.c:2839:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2839 | name = dynstr + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ tccelf.c:2848:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2848 | name = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ In file included from tccelf.c:21: ./tcc.h:1030:15: warning: function 'section_ptr_add' has internal linkage but is not defined [-Wundefined-internal] 1030 | ST_FUNC void *section_ptr_add(Section *sec, unsigned long size); | ^ tccelf.c:32:11: note: used here 32 | ptr = section_ptr_add(s, len); | ^ In file included from tccelf.c:21: ./tcc.h:1028:18: warning: function 'new_section' has internal linkage but is not defined [-Wundefined-internal] 1028 | ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh_flags); | ^ tccelf.c:281:14: note: used here 281 | sr = new_section(tcc_state, buf, SHT_RELX, symtab->sh_flags); | ^ In file included from tccelf.c:21: ./tcc.h:1360:15: warning: function 'resolve_sym' has internal linkage but is not defined [-Wundefined-internal] 1360 | ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol); | ^ tccelf.c:439:24: note: used here 439 | addr = resolve_sym(s1, name); | ^ In file included from tccelf.c:21: ./tcc.h:1032:18: warning: function 'find_section' has internal linkage but is not defined [-Wundefined-internal] 1032 | ST_FUNC Section *find_section(TCCState *s1, const char *name); | ^ tccelf.c:1299:9: note: used here 1299 | s = find_section(s1, section_name); | ^ In file included from tccelf.c:21: ./tcc.h:1052:13: warning: function 'tcc_add_crt' has internal linkage but is not defined [-Wundefined-internal] 1052 | ST_FUNC int tcc_add_crt(TCCState *s, const char *filename); | ^ tccelf.c:1371:13: note: used here 1371 | tcc_add_crt(s1, "crtn.o"); | ^ In file included from tccelf.c:21: ./tcc.h:1031:14: warning: function 'section_reserve' has internal linkage but is not defined [-Wundefined-internal] 1031 | ST_FUNC void section_reserve(Section *sec, unsigned long size); | ^ tccelf.c:1502:2: note: used here 1502 | section_reserve(s1->got, offset + PTR_SIZE); | ^ In file included from tccelf.c:21: ./tcc.h:1019:14: warning: function 'dynarray_add' has internal linkage but is not defined [-Wundefined-internal] 1019 | ST_FUNC void dynarray_add(void ***ptab, int *nb_ptr, void *data); | ^ tccelf.c:2832:5: note: used here 2832 | dynarray_add((void ***)&s1->loaded_dlls, &s1->nb_loaded_dlls, dllref); | ^ In file included from tccelf.c:21: ./tcc.h:1053:13: warning: function 'tcc_add_dll' has internal linkage but is not defined [-Wundefined-internal] 1053 | ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags); | ^ tccelf.c:2854:17: note: used here 2854 | if (tcc_add_dll(s1, name, AFF_REFERENCED_DLL) < 0) { | ^ In file included from tccelf.c:21: ./tcc.h:1246:14: warning: function 'inp' has internal linkage but is not defined [-Wundefined-internal] 1246 | ST_INLN void inp(void); | ^ tccelf.c:2889:9: note: used here 2889 | inp(); | ^ In file included from tccelf.c:21: ./tcc.h:1245:14: warning: function 'minp' has internal linkage but is not defined [-Wundefined-internal] 1245 | ST_FUNC void minp(void); | ^ tccelf.c:2892:9: note: used here 2892 | minp(); | ^ In file included from tccelf.c:21: ./tcc.h:1244:18: warning: function 'parse_comment' has internal linkage but is not defined [-Wundefined-internal] 1244 | ST_FUNC uint8_t *parse_comment(uint8_t *p); | ^ tccelf.c:2894:29: note: used here 2894 | file->buf_ptr = parse_comment(file->buf_ptr); | ^ In file included from tccelf.c:21: ./tcc.h:1051:13: warning: function 'tcc_add_file_internal' has internal linkage but is not defined [-Wundefined-internal] 1051 | ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags); | ^ tccelf.c:2998:11: note: used here 2998 | ret = tcc_add_file_internal(s1, filename, 0); | ^ In file included from tccelf.c:21: ./tcc.h:1111:14: warning: function 'expect' has internal linkage but is not defined [-Wundefined-internal] 1111 | ST_FUNC void expect(const char *msg); | ^ tccelf.c:3023:9: note: used here 3023 | expect("("); | ^ In file included from tccelf.c:21: ./tcc.h:1020:14: warning: function 'dynarray_reset' has internal linkage but is not defined [-Wundefined-internal] 1020 | ST_FUNC void dynarray_reset(void *pp, int *n); | ^ tccelf.c:3083:5: note: used here 3083 | dynarray_reset(&libs, &nblibs); | ^ In file included from tccelf.c:21: ./tcc.h:1247:13: warning: function 'handle_eob' has internal linkage but is not defined [-Wundefined-internal] 1247 | ST_FUNC int handle_eob(void); | ^ tccelf.c:3096:10: note: used here 3096 | ch = handle_eob(); | ^ 37 warnings generated. In file included from libtcc.c:38: ./tccpp.c:1251:7: warning: assigning to 'const unsigned char *' from 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1251 | s = filename; | ^ ~~~~~~~~ ./tccpp.c:2226:37: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2226 | ts = tok_alloc_new(pts, p1, len); | ^~ ./tccpp.c:195:60: note: passing argument to parameter 'str' here 195 | static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len) | ^ In file included from libtcc.c:39: ./tccgen.c:702:45: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 702 | vtop->type.t &= ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ ./tccgen.c:2371:60: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2371 | vtop->type.t = ft & (VT_TYPE & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT))); | ~~ ^ ./tccgen.c:2421:52: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2421 | vtop[-1].type.t = ft & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ In file included from libtcc.c:40: ./tccelf.c:60:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 60 | strtab = s->link->data; | ^ ~~~~~~~~~~~~~ ./tccelf.c:75:26: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 75 | h = elf_hash(strtab + sym->st_name) % nb_buckets; | ^~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:117:26: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 117 | h = elf_hash(name) % nbuckets; | ^~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:147:18: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 147 | h = elf_hash(name) % nbuckets; | ^~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:151:15: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 151 | name1 = s->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:434:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 434 | name = strtab_section->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:438:22: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 438 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1037:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1037 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1628:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1628 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1664:53: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1664 | dynname = s1->dynsymtab_section->link->data | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1665 | + dynsym->st_name; | ~~~~~~~~~~~~~~~~~ ./tccelf.c:1694:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1694 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1712:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1712 | name = s1->dynsymtab_section->link->data + esym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1756:34: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1756 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1968:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1968 | if (!strcmp(strsec->data + s->sh_name, ".rel.got")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ In file included from libtcc.c:40: ./tccelf.c:1972:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1972 | if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ In file included from libtcc.c:40: ./tccelf.c:2432:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2432 | sh_name = strsec + sh->sh_name; | ^ ~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2553:26: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2553 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2569:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2569 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2673:14: warning: assigning to 'const char *' from 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2673 | ar_names = ar_index + nsyms * 4; | ^ ~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2810:20: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2810 | soname = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2839:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2839 | name = dynstr + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2848:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2848 | name = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ In file included from libtcc.c:41: ./tccrun.c:256:18: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 256 | stab_str = stabstr_section->data; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccrun.c:349:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 349 | strtab_section->data + sym->st_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcc.h:998:61: note: passing argument to parameter 's' here 998 | PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s); | ^ 29 warnings generated. ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o x86_64-gen.o i386-asm.o In file included from tcc.c:22: In file included from ./libtcc.c:38: ./tccpp.c:1251:7: warning: assigning to 'const unsigned char *' from 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1251 | s = filename; | ^ ~~~~~~~~ ./tccpp.c:2226:37: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2226 | ts = tok_alloc_new(pts, p1, len); | ^~ ./tccpp.c:195:60: note: passing argument to parameter 'str' here 195 | static TokenSym *tok_alloc_new(TokenSym **pts, const char *str, int len) | ^ In file included from tcc.c:22: In file included from ./libtcc.c:39: ./tccgen.c:702:45: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 702 | vtop->type.t &= ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ ./tccgen.c:2371:60: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2371 | vtop->type.t = ft & (VT_TYPE & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT))); | ~~ ^ ./tccgen.c:2421:52: warning: shifting a negative signed value is undefined [-Wshift-negative-value] 2421 | vtop[-1].type.t = ft & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT)); | ~~ ^ In file included from tcc.c:22: In file included from ./libtcc.c:40: ./tccelf.c:60:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 60 | strtab = s->link->data; | ^ ~~~~~~~~~~~~~ ./tccelf.c:75:26: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 75 | h = elf_hash(strtab + sym->st_name) % nb_buckets; | ^~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:117:26: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 117 | h = elf_hash(name) % nbuckets; | ^~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:147:18: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 147 | h = elf_hash(name) % nbuckets; | ^~~~ ./tccelf.c:38:52: note: passing argument to parameter 'name' here 38 | static unsigned long elf_hash(const unsigned char *name) | ^ ./tccelf.c:151:15: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 151 | name1 = s->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:434:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 434 | name = strtab_section->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:438:22: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 438 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1037:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1037 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1628:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1628 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1664:53: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1664 | dynname = s1->dynsymtab_section->link->data | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1665 | + dynsym->st_name; | ~~~~~~~~~~~~~~~~~ ./tccelf.c:1694:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1694 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1712:30: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1712 | name = s1->dynsymtab_section->link->data + esym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1756:34: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1756 | name = symtab_section->link->data + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:1968:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1968 | if (!strcmp(strsec->data + s->sh_name, ".rel.got")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ In file included from tcc.c:22: In file included from ./libtcc.c:40: ./tccelf.c:1972:37: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1972 | if (!strcmp(strsec->data + s->sh_name, ".rel.bss")) { // rel_size == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:85:25: note: passing argument to parameter here 85 | int strcmp(const char *, const char *) __pure; | ^ In file included from tcc.c:22: In file included from ./libtcc.c:40: ./tccelf.c:2432:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2432 | sh_name = strsec + sh->sh_name; | ^ ~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2553:26: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2553 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2569:14: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2569 | name = strtab + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2673:14: warning: assigning to 'const char *' from 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2673 | ar_names = ar_index + nsyms * 4; | ^ ~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2810:20: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2810 | soname = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2839:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2839 | name = dynstr + sym->st_name; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccelf.c:2848:18: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 2848 | name = dynstr + dt->d_un.d_val; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ In file included from tcc.c:22: In file included from ./libtcc.c:41: ./tccrun.c:256:18: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 256 | stab_str = stabstr_section->data; | ^ ~~~~~~~~~~~~~~~~~~~~~ ./tccrun.c:349:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 349 | strtab_section->data + sym->st_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tcc.h:998:61: note: passing argument to parameter 's' here 998 | PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s); | ^ 29 warnings generated. cc -o tcc tcc.o libtcc.a -lm -I. -DTCC_TARGET_X86_64 -DONE_SOURCE tcc-doc.texi:25: warning: no htmlxref.cnf entry found for `dir' =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcc-0.9.26_7 depends on executable: indexinfo - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for tcc-0.9.26_7 ===> Generating temporary packing list /usr/local/bin/gmake -C lib native gmake[1]: Entering directory '/wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib' gmake[1]: Nothing to be done for 'native'. gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib' mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/bin" install -m755 tcc "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/bin" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/man/man1" install tcc.1 "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/man/man1" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/info" install tcc-doc.info "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/info" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc/include" install -m644 libtcc1.a "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc" install -m644 ./include/stdarg.h ./include/stddef.h ./include/stdbool.h ./include/float.h ./include/varargs.h ./include/tcclib.h "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc/include" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib" install -m755 libtcc.a "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/include" install -m644 ./libtcc.h "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/include" mkdir -p "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/doc/tcc" install -m644 tcc-doc.html "/wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/doc/tcc" /usr/bin/strip /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/bin/tcc install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/tcc-doc.info /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/info install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib/x86_64/*.o /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib/x86_64/*.o /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/lib/x86_64/*.o /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/lib/tcc install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/Changelog /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/README /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/TODO /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/VERSION /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/doc/tcc install -m 0644 /wrkdirs/usr/ports/lang/tcc/work/tinycc-release_0_9_26/examples/* /wrkdirs/usr/ports/lang/tcc/work/stage/usr/local/share/examples/tcc ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2025-12-12T06:02:32+0000' 'PKG_NOTE_ports_top_git_hash=62d8b1999233' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=e10e2022a9b3' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for tcc-0.9.26_7 ===> Building tcc-0.9.26_7 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for tcc-0.9.26_7 build of lang/tcc | tcc-0.9.26_7 ended at Fri Dec 12 01:02:41 EST 2025 build time: 00:00:09