additionally, the configure script depends on some unportable (not POSIX) 
methods that leads to musl not being detected, requiring --config-musl to not 
fail the build

testing on alpine should be close enough to reproduce

see attached files


./configure --config-musl
make
make test > test.log 2>&1
/* Automatically generated by configure - do not modify */
#ifndef CONFIG_TCCDIR
# define CONFIG_TCCDIR "/usr/local/lib/tcc"
#endif
#ifndef CONFIG_TCC_PREDEFS
# define CONFIG_TCC_PREDEFS 1
#endif
#define TCC_VERSION "0.9.27"
#define GCC_MAJOR 0
#define GCC_MINOR 927
#define CC_NAME CC_tcc
# Automatically generated by configure - do not modify
prefix=/usr/local
bindir=$(DESTDIR)/usr/local/bin
tccdir=$(DESTDIR)/usr/local/lib/tcc
libdir=$(DESTDIR)/usr/local/lib
includedir=$(DESTDIR)/usr/local/include
mandir=$(DESTDIR)/usr/local/share/man
infodir=$(DESTDIR)/usr/local/share/info
docdir=$(DESTDIR)/usr/local/share/doc
CC=tcc
CC_NAME=tcc
GCC_MAJOR=0
GCC_MINOR=927
AR=tcc -ar
CFLAGS=-Wall -O2
LDFLAGS=
LIBSUF=.a
EXESUF=
DLLSUF=.so
NATIVE_DEFINES+=-DCONFIG_LDDIR="\"lib64\""
ARCH=x86_64
TARGETOS=Linux
CONFIG_musl=yes
VERSION = 0.9.27
TOPSRC=$(TOP)
make[1]: Entering directory '/tmp/tinycc/tests'
------------ hello-exe ------------
Hello World
------------ hello-run ------------
Hello World
------------ libtest ------------
Hello World!
fib(32) = 2178309
add(32, 64) = 96
------------ libtest_mt ------------
running fib with mixed calls
  1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946
 (8 ms)
running fib in threads
  1 2 5 3 13 377 144 233 8 1597 34 610 89 2584 987 55 10946 6765 4181 21
 (18 ms)
running tcc.c in threads to run fib
  1 3 2 8 13 5 34 55 21 144 233 89 610 377 1597 2584 987 6765 4181 10946
 (2041 ms)
compiling tcc.c 10 times
  1 2 3 4 5 6 7 8 9 10
 (567 ms)
tcctest.c:563: error: ';' expected (got "typedef_and_label")
make[2]: *** [Makefile:109: test.ref] Error 1
make[1]: *** [Makefile:83: all] Error 2
make[1]: Leaving directory '/tmp/tinycc/tests'
make: *** [Makefile:446: test] Error 2
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to