vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
MIT License
2.29k stars 145 forks source link

make test fails on alpine edge #307

Open Geo-7 opened 1 year ago

Geo-7 commented 1 year ago

make test

gcc -I. -fPIC -g -std=gnu11 -Wno-abi -fsigned-char -fno-tree-sra -fno-ipa-cp-clone -O3 -DNDEBUG -DMIR_PARALLEL_GEN  mir.o mir-gen.o mir-tests/readme-example.c -lm -ldl -lpthread -o ./mir-tests/readme-example-test
./mir-tests/readme-example-test
MIR_init end -- 93 usec
MIR program creation end -- 160 usec
sieve of 819000 200 times = 123814
MIR_finish end -- 428100 usec
./c2m -v ./sieve.c -ei
C2MIR init end           -- 255 usec
    preprocessor tokens -- 423, parse tokens -- 196
  C2MIR preprocessor end    -- 864 usec
  C2MIR parser end          -- 945 usec
  C2MIR context checker end -- 1015 usec
  C2MIR generator end       -- 1252 usec
C2MIR compiler end                -- 1364 usec
can not load symbol printf
make: *** [GNUmakefile:545: c2mir-simple-test] Error 1

apk musl info

musl-1.2.3-r4 description:
the musl c library (libc) implementation

musl-1.2.3-r4 webpage:
https://musl.libc.org/

musl-1.2.3-r4 installed size:
620 KiB

cc --version

cc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uname -a

Linux  5.15.78-0-lts #1-Alpine SMP Fri, 11 Nov 2022 09:40:59 +0000 x86_64 GNU/Linux

cat /etc/*release

3.17.0_rc1
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.0_rc1
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"