Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Linux] program fails to link

Open Fusioon opened this issue 3 years ago • 1 comments

This project https://github.com/MineGame159/Beef/tree/lsp fails to link with following output:

Executing Command: ReadFile("$(WorkspaceDir)/../IDE/dist/IDEHelper_libs_d.txt", "IDEHelper_libs_d")
/usr/bin/ld: /home/fusion/dev/beef-lsp/BeefLsp/build/Debug_Linux64/BeefLsp/IDE_IDEApp.o: in function `bf::IDE::IDEApp::StructuredLoad(bf::Beefy::utils::StructuredData*, bf::System::StringView)':
/home/fusion/dev/beef-lsp/BeefLibs/corlib/src/System.bf:136: undefined reference to `bf::System::Result<bf::Beefy::utils::StructuredData::Error void>::Get__im`7()'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
Execution Failed

It's this line url. More specifically the Get() call inside the Try! mixin.

Tested with: 532deab

Fusioon avatar Oct 04 '22 21:10 Fusioon

Some more info from ir: StructuredLoad wants to call call void @"_ZN2bf6System6ResultIU4voidNS_5Beefy5utils14StructuredData5ErrorEE9Get__im`7Ev"(i64 %60, i8 %62, i8 %64), !dbg !3490

but that function is defined as define void @_ZN2bf6System6ResultIU4voidNS_5Beefy5utils14StructuredData5ErrorEE7Get__imEv(i64 %this_data_err_data_line, i8 %this_data_err_dscr, i8 %this_dscr) #1 !dbg !5

Fusioon avatar Oct 15 '22 11:10 Fusioon

Fixed at https://github.com/beefytech/Beef/commit/0bed50cf7c5ca441f3ad815c38f0e42fe462634a

Fusioon avatar Dec 27 '23 13:12 Fusioon