Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: arrakis on April 10, 2016, 10:50:51 PM

Title: Custom binaries not working?
Post by: arrakis on April 10, 2016, 10:50:51 PM
I copied over a 64-bit binary i built and tried executing it but I get file not found errors. Any ideas?
Title: Re: Custom binaries not working?
Post by: curaga on April 11, 2016, 12:30:20 AM
sudo ln -s /lib /lib64

It would be preferable to build on Core though. Otherwise you may have all kinds of library version mismatches.
Title: Re: Custom binaries not working?
Post by: arrakis on April 11, 2016, 02:59:22 AM
I got the binary working with the above command, thank you! All my libraries are statically linked in the binary, would this still make a difference on Pure64?
Title: Re: Custom binaries not working?
Post by: curaga on April 11, 2016, 11:46:12 AM
A static binary wouldn't need that link ;) At least libc was dynamic in that case.

But yeah, if the libs are static, it's reasonably safe.
Title: Re: Custom binaries not working?
Post by: labeas on November 14, 2016, 09:09:30 AM
Let's look at this in greater detail:

If I x64-compile where the source is a USBstik, so the x64-Object
is created on that USBstik; but first I needed to X64-complile the
<lib sub directory> on the same USBstik.

So assume that 2 lib-objects and the main binary were created;
where do I move these to, on the different USBstik, which TC64
boots from, so that they are loaded to RAM, when TC64 boots from
this 2nd mentioned USBstik?

Has my TC64-basic got a compiler ? I'm now in M$ to get WiFi
access so I can't look-to-see, by eg. `which gcc` .

Title: Re: Custom binaries not working?
Post by: Juanito on November 14, 2016, 09:52:36 AM
It's a little difficult to understand what you are asking - there is no compiler in the base corepure64, you need the compiletc extension and it's dependencies.

As mentioned earlier, it would probably be easier for you to run corepure64 in a vm on windows and get the extensions that way.