Hello, Trying to compile Libbtc for Apple M1 with tcc. It worked with an Apple Intel machine and setting CC=tcc. Since tcc can build it on the Intel with macOS I try ask here if you might know the cause of the failure. With the Apple M1 the following message comes from make
In file included from ./include/btc/serialize.h:34: In file included from ./include/btc/portable_endian.h:22: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libkern/OSByteOrder.h:314: error: #error Unknown endianess. make[1]: *** [src/tools/bitcointool-bitcointool.o] Error 1 Build Options: with ecmult precomp = yes with external callbacks = no with benchmarks = yes with tests = yes with openssl tests = no with coverage = no module ecdh = no module recovery = yes module extrakeys = no module schnorrsig = no asm = no ecmult window size = 15 ecmult gen prec. bits = 4 valgrind = no CC = tcc CFLAGS = -O2 -fvisibility=hidden -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-unused-function -Wno-long-long -Wno-overlength-strings -W -g CPPFLAGS = -I/opt/homebrew/opt/valgrind/include LDFLAGS = CC_FOR_BUILD = tcc CFLAGS_FOR_BUILD = -O2 -fvisibility=hidden -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-unused-function -Wno-long-long -Wno-overlength-strings -W -g CPPFLAGS_FOR_BUILD = -I/opt/homebrew/opt/valgrind/include LDFLAGS_FOR_BUILD = Options used to compile and link: with wallet = yes with tools = yes with net = yes target os = darwin CC = tcc CFLAGS = -g -O2 -W -std=gnu99 -pedantic -Wno-unused-function -Wno-long-long -Wno-overlength-strings -Werror=return-type CXX = CXXFLAGS = LDFLAGS =
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
