Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation linking error #1836

Closed
dzovani opened this issue May 12, 2024 · 3 comments
Closed

Compilation linking error #1836

dzovani opened this issue May 12, 2024 · 3 comments
Assignees

Comments

@dzovani
Copy link

dzovani commented May 12, 2024

  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
Copy link
Contributor

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

@dzovani
Copy link
Author

dzovani commented May 13, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants