Forum > FPC development

[SOLVED] how to get {$LINKLIB libgte.a} in to the linker script?

<< < (2/3) > >>

nickysn:

--- Quote from: Key-Real on July 19, 2024, 05:46:13 pm ---If I tell {$L mylib.a}

it cames to the linker as ObjectFiles.GetFirst

--- End quote ---

Well, looking at the TLinker object, there's also SharedLibFiles and StaticLibFiles. They are declared right after ObjectFiles. Don't one of these contain what you need?

MarkMLl:

--- Quote from: TRon on July 19, 2024, 06:25:11 pm ---(external) linker support is present in the compiler what I do not know if the existing mipsel target (already) added support for that (I assume it does/did). In case the latter then you can follow its lead.

--- End quote ---

Once MIPS was floated into the mainstream- somewhere around 2.7.1- I definitely had both mipsel and mipseb running on emulated target boards using (I think) Qemu (we had a couple of SGI machines, but I can't remember whether I ever got a recognisable OS running on one of them).

There was no toolchain weirdness that I recall, the bottom of https://wiki.freepascal.org/Native_MIPS_Systems shows that I was able to build a runnable compiler, but apparently some code generation tests were still failing so a full self-build did not work (I might have seen that fixed later).

MarkMLl

Key-Real:
ok I pass


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---./compiler/ppcrossmipsel test.pas -O- -Fu./rtl/ps1 -Fu./rtl/inc -Fu./rtl/objpas -Tps1 -Cfnone -Fu./psy-q-sdk/bindings -Fl./psy-q-sdk/lib -a -XP/usr/local/mipsel-unknown-elf/bin/mipsel-unknown-elf-
I got the -Fl string by

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---HPath:= TCmdStrListItem(LibrarySearchPath.First);
everything links, but the compiler tells me:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---ree Pascal Compiler version 3.3.1 [2024/07/19] for mipselCopyright (c) 1993-2024 by Florian Klaempfl and othersTarget OS: PlayStation 1 for MIPSELCompiling test.pasAssembling programWarning: Object libgte.a not found, Linking may fail !Warning: Object libapi.a not found, Linking may fail ! 
ideas?

nickysn:
Yes. Find the warning in errore.msg, look at its identifier (hint: it's "exec_w_libfile_not_found"), then search the compiler sources for this identifier, to see all places where this message is generated.

nickysn:
Sorry, it's actually "exec_w_objfile_not_found", not "exec_w_libfile_not_found".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version