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

Not compiling in OpenBSD/adJ 7.6 #1624

Open
vtamara opened this issue Jan 10, 2025 · 0 comments
Open

Not compiling in OpenBSD/adJ 7.6 #1624

vtamara opened this issue Jan 10, 2025 · 0 comments

Comments

@vtamara
Copy link

vtamara commented Jan 10, 2025

When I try to compile on OpenBSD/adJ 7.6 following these steps:

% git clone [email protected]:vtamara/cdk-erigon.git
% cd cdk-erigon
% gmake

It advances but fails with:

...
# github.com/anacrolix/go-libutp                                                                                                                                
utp_utils.cpp:147:6: warning: "Using non-monotonic function gettimeofday() in UTP_GetMicroseconds()" [-W#warnings]                                              
# github.com/ledgerwatch/erigon/cmd/cdk-erigon                                                                                                                  
/usr/local/go/pkg/tool/openbsd_amd64/link: running c++ failed: exit status 1                                                                                    
/usr/bin/c++ -m64 -pthread -Wl,-nopie -o $WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=__guard_local -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dyna
mic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=acceptCallback -Wl,--export-dynamic-symbol=crosscall2 -Wl,--export-dynamic-symbol=errorCallback -Wl,--exp
ort-dynamic-symbol=firewallCallback -Wl,--export-dynamic-symbol=getReadBufferSizeCallback -Wl,--export-dynamic-symbol=logCallback -Wl,--export-dynamic-symbol=re
adCallback -Wl,--export-dynamic-symbol=secp256k1GoPanicError -Wl,--export-dynamic-symbol=secp256k1GoPanicIllegal -Wl,--export-dynamic-symbol=sendtoCallback -Wl,
--export-dynamic-symbol=stateChangeCallback -Qunused-arguments /tmp/go-link-1554378820/go.o /tmp/go-link-1554378820/000000.o /tmp/go-link-1554378820/000001.o /t
mp/go-link-1554378820/000002.o /tmp/go-link-1554378820/000003.o /tmp/go-link-1554378820/000004.o /tmp/go-link-1554378820/000005.o /tmp/go-link-1554378820/000006
.o /tmp/go-link-1554378820/000007.o /tmp/go-link-1554378820/000008.o /tmp/go-link-1554378820/000009.o /tmp/go-link-1554378820/000010.o /tmp/go-link-1554378820/0
00011.o /tmp/go-link-1554378820/000012.o /tmp/go-link-1554378820/000013.o /tmp/go-link-1554378820/000014.o /tmp/go-link-1554378820/000015.o /tmp/go-link-1554378
820/000016.o /tmp/go-link-1554378820/000017.o /tmp/go-link-1554378820/000018.o /tmp/go-link-1554378820/000019.o /tmp/go-link-1554378820/000020.o /tmp/go-link-15
54378820/000021.o /tmp/go-link-1554378820/000022.o /tmp/go-link-1554378820/000023.o /tmp/go-link-1554378820/000024.o /tmp/go-link-1554378820/000025.o /tmp/go-li
nk-1554378820/000026.o /tmp/go-link-1554378820/000027.o /tmp/go-link-1554378820/000028.o /tmp/go-link-1554378820/000029.o /tmp/go-link-1554378820/000030.o /tmp/
go-link-1554378820/000031.o /tmp/go-link-1554378820/000032.o /tmp/go-link-1554378820/000033.o /tmp/go-link-1554378820/000034.o /tmp/go-link-1554378820/000035.o 
/tmp/go-link-1554378820/000036.o /tmp/go-link-1554378820/000037.o /tmp/go-link-1554378820/000038.o /tmp/go-link-1554378820/000039.o /tmp/go-link-1554378820/000040.o /tmp/go-link-1554378820/000041.o /tmp/go-link-1554378820/000042.o /tmp/go-link-1554378820/000043.o /tmp/go-link-1554378820/000044.o /tmp/go-link-1554378820
/000045.o /tmp/go-link-1554378820/000046.o /tmp/go-link-1554378820/000047.o /tmp/go-link-1554378820/000048.o -O2 -g -fPIC -O2 -g -lpthread -O2 -g -O2 -g -O2 -g 
-O2 -g -O2 -g -O2 -g -no-pie                                                                                                                                    
ld: warning: utp_utils.cpp:245(/tmp/go-link-1554378820/000042.o:(utp_default_get_random(utp_callback_arguments*))): warning: rand() may return deterministic val
ues, is that what you want?                                                                                                                                     
ld: warning: mdbx.c:16808(/tmp/go-link-1554378820/000025.o:(mdbx_handle_env_pathname)): warning: sprintf() is often misused, please use snprintf()              
ld: warning: mdbx.c:16805(/tmp/go-link-1554378820/000025.o:(mdbx_handle_env_pathname)): warning: strcpy() is almost always misused, please use strlcpy()        
ld: error: undefined symbol: silkworm_add_snapshot                                                                                                              
>>> referenced by cgo-gcc-prolog:109                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_add_snapshot)                                                              
                                                                                                                                                                
ld: error: undefined symbol: silkworm_execute_blocks_ephemeral                                                                                                  
>>> referenced by cgo-gcc-prolog:139                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_execute_blocks_ephemeral)                                                  
                                                                                                                                                                
ld: error: undefined symbol: silkworm_execute_blocks_perpetual                                                                                                  
>>> referenced by cgo-gcc-prolog:169                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_execute_blocks_perpetual)                                                  
                                                                                                                                                                
ld: error: undefined symbol: silkworm_fini                                                                                                                      
>>> referenced by cgo-gcc-prolog:188
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_fini)                                                                      
                                                                                                                                                                
ld: error: undefined symbol: silkworm_init                                                                                                                      
>>> referenced by cgo-gcc-prolog:208                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_init)                                                                      
                                                                                                                                                                
ld: error: undefined symbol: silkworm_libmdbx_version                                                                                                           
>>> referenced by cgo-gcc-prolog:225                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_libmdbx_version)                                                           
                                                                                                                                                                
ld: error: undefined symbol: silkworm_sentry_start                                                                                                              
>>> referenced by cgo-gcc-prolog:245                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_sentry_start)                                                              
                                                                                                                                                                
ld: error: undefined symbol: silkworm_sentry_stop                                                                                                               
>>> referenced by cgo-gcc-prolog:264                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_sentry_stop)                                                               
                                                                                                                                                                
ld: error: undefined symbol: silkworm_start_rpcdaemon                                                                                                           
>>> referenced by cgo-gcc-prolog:285                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_start_rpcdaemon)
                                                                                                                                                                
ld: error: undefined symbol: silkworm_stop_rpcdaemon                                                                                                            
>>> referenced by cgo-gcc-prolog:304                                                                                                                            
>>>               /tmp/go-link-1554378820/000048.o:(_cgo_464a0cdede96_Cfunc_silkworm_stop_rpcdaemon)                                                            
c++: error: linker command failed with exit code 1 (use -v to see invocation)                                                                                   
                                                                                                                                                                
gmake: *** [Makefile:114: cdk-erigon.cmd] Error 1
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

1 participant