firedancer-io / firedancer

Firedancer is Jump Crypto's Solana validator software.
https://firedancer.io
Other
958 stars 175 forks source link

Compilation linking error #1836

Closed dzovani closed 5 months ago

dzovani commented 6 months ago
  Compiling solana-validator v1.17.20 (/home/adminko/github/firedancer/solana/validator)
    Finished release-with-debug [optimized + debuginfo] target(s) in 3m 30s
#######################################################################
# Creating bin build/native/gcc/bin/fdctl from build/native/gcc/obj/app/fdctl/main.o build/native/gcc/lib/libfd_fdctl.a build/native/gcc/lib/libfd_disco.a build/native/gcc/lib/libfd_flamenco.a build/native/gcc/lib/libfd_funk.a build/native/gcc/lib/libfd_quic.a build/native/gcc/lib/libfd_tls.a build/native/gcc/lib/libfd_ip.a build/native/gcc/lib/libfd_reedsol.a build/native/gcc/lib/libfd_ballet.a build/native/gcc/lib/libfd_waltz.a build/native/gcc/lib/libfd_tango.a build/native/gcc/lib/libfd_util.a build/native/gcc/lib/libsolana_validator.a
#######################################################################
mkdir -pv build/native/gcc/bin/ && g++ -Lbuild/native/gcc/lib build/native/gcc/obj/app/fdctl/main.o -Wl,--start-group -lfd_fdctl -lfd_disco -lfd_flamenco -lfd_funk -lfd_quic -lfd_tls -lfd_ip -lfd_reedsol -lfd_ballet -lfd_waltz -lfd_tango -lfd_util -lsolana_validator -Wl,--end-group  -lm -lrt -ldl -L./opt/lib -static-libgcc -rdynamic -fPIC -z noexecstack -pthread opt/lib/libzstd.a -o build/native/gcc/bin/fdctl
/usr/bin/ld: build/native/gcc/lib/libfd_fdctl.a(monitor.o): in function `monitor_cmd_fn':
/home/adminko/github/firedancer/src/app/fdctl/monitor/monitor.c:533: undefined reference to `add_bench_topo'
collect2: error: ld returned 1 exit status
make: *** [src/app/fdctl/Local.mk:62: build/native/gcc/bin/fdctl] Error 1
ripatel-fd commented 6 months ago

@dzovani Can you please include the complete compile log? Including the first few FD_HAS_XXX lines? Thanks

dzovani commented 6 months ago
make -j fdctl solana
Using MACHINE=native
Using EXTRAS=
config/extra/with-openssl.mk:9: "openssl not installed, skipping"
config/extra/with-rocksdb.mk:11: "rocksdb not installed, skipping"
Using FD_HAS_SSE=1
Using FD_HAS_AVX=1
Using FD_HAS_AVX512= 
Using FD_HAS_GFNI=
Using FD_HAS_SHANI=1
Using FD_HAS_AESNI=1
bn254 disabled due to lack of libff
src/app/ledger/Local.mk:10: ledger tool build disabled due to lack of rocksdb
src/app/shredcap/Local.mk:4: shredcap capture tool build disabled due to lack of rocksdb
Using FIREDANCER_VERSION=0.0.11720
cd ./solana && env --unset=LDFLAGS RUSTFLAGS="-C force-frame-pointers=yes -C target-cpu=native" ./cargo build --profile=release-with-debug --lib -p solana-validator
cd ./solana && env --unset=LDFLAGS RUSTFLAGS="-C force-frame-pointers=yes -C target-cpu=native" ./cargo build --profile=release-with-debug --bin solana
+ exec cargo +1.73.0 build --profile=release-with-debug --lib -p solana-validator
+ exec cargo +1.73.0 build --profile=release-with-debug --bin solana
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on build directory
   Compiling solana-program v1.17.20 (/home/adminko/github/firedancer/solana/sdk/program)
ripatel-fd commented 5 months ago

This has been fixed. Please feel free to reopen if you still see issues.