stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
138 stars 44 forks source link

[BUG] Github action doesn't build static binary for linux platform #1391

Closed yizhang-yiz closed 5 months ago

yizhang-yiz commented 5 months ago

Current Behavior:

The linux binary stanc requires glibc runtime:

> > Compiling Stan program...bin/stanc: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by bin/stanc)
> > bin/stanc: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by bin/stanc)
> > bin/stanc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by bin/stanc)
> > bin/stanc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by bin/stanc)
> > bin/stanc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by bin/stanc)
> > make: *** [/tmp/RtmpOQ2SQx/model-4dd030135e9b.hpp] Error 1

Expected Behavior:

Build .hpp successfully.

Model Code

Any model.

Environment: