undefined symbol: _ZNSt8ios_base4InitD1Ev
liyunde opened this issue · 0 comments
Describe the bug
error: /home/liyunde/delicate/target/debug/deps/libmigrations_macros-66ae0fade1d84c0b.so: undefined symbol: _ZNSt8ios_base4InitD1Ev
-->/home/liyunde/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/diesel_migrations-1.4.0/src/lib.rs:82:1
|
82 | extern crate migrations_macros;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: could not compile diesel_migrations
due to previous error
To Reproduce
Steps to reproduce the behavior:
git pull
已经是最新的。
cp template.env .env
cargo build -v
环境
centos8
rustc 1.58.1 (db9d1b20b 2022-01-20)
gcc 版本 8.5.0 20210514
/usr/lib/gcc/x86_64-redhat-linux/8/../../../libmysqlclient.a
nm target/debug/deps/libmigrations_macros-66ae0fade1d84c0b.so | grep _ZNSt8ios_base4InitD1Ev
U _ZNSt8ios_base4InitD1Ev