This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
error: building the downstream C-binding library using the Solana SDK #22725
Labels
stale
[bot only] Added to stale content; results in auto-close after a week.
Problem
The environment variable passed to the downstream cmake library are not enough to build the library correctly.
Also I noticed that the
-fuse-ld=lld
was missing.Even if I add it manually the compilation keeps failing for some reason.
I am just adding this dependency to the example-helloworld program to trigger this issue
this is the result of running
npm run build:program-rust
I think the important bit is
/usr/bin/ld: unknown architecture of input file CMakeFiles/cmTC_b71ce.dir/testCCompiler.c.o' is incompatible with i386:x86-64 output
We see here that the /usr/bin/ld is being used.
Instead I tried to copy-paste the cmake command and try to run it myself on the c source code of the h3ron library.
adding
-v -fuse-ld=lld
but getting a slightly different error with
using the solana lld is now returning:
ld.lld: error: CMakeFiles/cmTC_1ce4d.dir/testCCompiler.c.o is incompatible with elf64-x86-64
Proposed Solution
I don't know I am really trying to figure it out.
We have been digging into it on this issue here: nmandery/h3ron#30
The text was updated successfully, but these errors were encountered: