Build error

I follow the guide in https://developers.libra.org/docs/my-first-transaction and run
./scripts/dev_setup.sh
cargo build
on my Ubuntu 14.04 server. But I get some error message:

error: could not compile libra-genesis-tool.

Caused by:
process didn’t exit successfully: rustc --crate-name libra_genesis_tool --edition=2018 config/management/genesis/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="testing"' -C metadata=4d8428d89a07c16b -C extra-filename=-4d8428d89a07c16b --out-dir /home/huxi/libra/target/debug/deps -C incremental=/home/huxi/libra/target/debug/incremental -L dependency=/home/huxi/libra/target/debug/deps --extern anyhow=/home/huxi/libra/target/debug/deps/libanyhow-009c5f578ed9e5ff.rmeta --extern consensus_types=/home/huxi/libra/target/debug/deps/libconsensus_types-9d4be0c473529d98.rmeta --extern executor=/home/huxi/libra/target/debug/deps/libexecutor-fca46123307ef4d2.rmeta --extern generate_key=/home/huxi/libra/target/debug/deps/libgenerate_key-acba286a061c5ac4.rmeta --extern lcs=/home/huxi/libra/target/debug/deps/liblibra_canonical_serialization-1d6dd45aa2fbb6d3.rmeta --extern libra_config=/home/huxi/libra/target/debug/deps/liblibra_config-74d207ad289f9083.rmeta --extern libra_crypto=/home/huxi/libra/target/debug/deps/liblibra_crypto-bc8b9b12bd5a4c3c.rmeta --extern libra_global_constants=/home/huxi/libra/target/debug/deps/liblibra_global_constants-f583d12194538b12.rmeta --extern libra_management=/home/huxi/libra/target/debug/deps/liblibra_management-07d099db5d31c3cf.rmeta --extern libra_network_address=/home/huxi/libra/target/debug/deps/liblibra_network_address-d23874629acaadd2.rmeta --extern libra_network_address_encryption=/home/huxi/libra/target/debug/deps/liblibra_network_address_encryption-c42450af24f27c2b.rmeta --extern libra_secure_json_rpc=/home/huxi/libra/target/debug/deps/liblibra_secure_json_rpc-36b67470ac5fc334.rmeta --extern libra_secure_storage=/home/huxi/libra/target/debug/deps/liblibra_secure_storage-198fd6ea39b90e6a.rmeta --extern libra_secure_time=/home/huxi/libra/target/debug/deps/liblibra_secure_time-eddd3124a336643a.rmeta --extern libra_temppath=/home/huxi/libra/target/debug/deps/liblibra_temppath-08c9e93e66972748.rmeta --extern libra_types=/home/huxi/libra/target/debug/deps/liblibra_types-fcdf56921bb2c11c.rmeta --extern libra_vm=/home/huxi/libra/target/debug/deps/liblibra_vm-264b0b1487f6ea43.rmeta --extern libra_workspace_hack=/home/huxi/libra/target/debug/deps/liblibra_workspace_hack-97d6347e5e209be0.rmeta --extern libradb=/home/huxi/libra/target/debug/deps/liblibradb-c0d66e491852abfc.rmeta --extern rand=/home/huxi/libra/target/debug/deps/librand-e7a91928ce6e51c9.rmeta --extern serde=/home/huxi/libra/target/debug/deps/libserde-11d50ad14d0a5d67.rmeta --extern storage_interface=/home/huxi/libra/target/debug/deps/libstorage_interface-cd42ab19b6533f23.rmeta --extern structopt=/home/huxi/libra/target/debug/deps/libstructopt-23c2a0c8a149b820.rmeta --extern thiserror=/home/huxi/libra/target/debug/deps/libthiserror-fdff8ca61d1fcb39.rmeta --extern toml=/home/huxi/libra/target/debug/deps/libtoml-071b5de43697fc22.rmeta --extern transaction_builder=/home/huxi/libra/target/debug/deps/libtransaction_builder-e32084357752927c.rmeta --extern vm_genesis=/home/huxi/libra/target/debug/deps/libvm_genesis-2b30ffea7ff90543.rmeta -L native=/home/huxi/libra/target/debug/build/librocksdb-sys-9603036a43f56d62/out -L native=/home/huxi/libra/target/debug/build/librocksdb-sys-9603036a43f56d62/out (signal: 4, SIGILL: illegal instruction)
warning: build failed, waiting for other jobs to finish…
error: build failed

How can I solve this?

Wow, that’s a really old version of Ubuntu. 14.04 was an LTS release, so the support continued for a long time, but even so, Canonical hasn’t supported it since April 2019.

I’m not sure exactly what’s wrong, but my first suggestion would be to try on a more recent version of Linux.