This includes 6 months of cloud service..
What do you have to do???
Build GLIBC from source so that we dont have to force people to get ubuntu 12.04+ or copy steam glibc libraries!
https://www.buildaworld.net/forum/show- ... s-6-months
Up to 7 FREE Copies of Build A World (25 EUR each)
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
Seems you're not familiar with linux best practises... Also, your competition does not do what you think it does. You cannot drop in a libc version and expect your current compiler to work with it, the whole toolchain must be compiled against that version. You *cannot* just drop in the lib and expect your binary to work either.
How to build a binary that works most everywhere, in a nutshell: Build your distribution binaries in a Debian Stable VM, not on your dev system.
How to build a binary that works most everywhere, in a nutshell: Build your distribution binaries in a Debian Stable VM, not on your dev system.
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
well the competition did say that one might have to build a fresh binutils and gcc as well, I just happen to have a fresh copy of both compiled for the 3.8.5 kernel (they run fine on 3.9.9.1 and 3.10 as well, also on 3.2 (should run on 2.6+)
"this is not the bottleneck you are looking for"
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
One tip from my side. If you don't want to force peoples to install GLIBC eg. 2.15+ you can following code to force lower GLIBC compatibility (you have to include it to all your libraries before compile):
Upper code will force memcpy from GLIBC 2.2.5 instead of 2.14 for x64 platforms (you can do similar tricks for other functions). It's definitly better solution than rebuild whole glibc, because as Hendu said it doesn't work in this way. Anyway Hendu's solution is also good.
Code: Select all
asm (".symver memcpy, memcpy@GLIBC_2.2.5");
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
dear hendu... I have made some VMs, seems to be the simplest solution
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
I'd say a chroot environment is the simplest solution (I generally put mine in /mnt/clean with all appropriate subdirectories and environment variables set to point to the appropriate relative "file system", the only issue is that this requires that you compile the kernel and pretty much everything yourself to make sure that you have a clean environment)
"this is not the bottleneck you are looking for"
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: Up to 7 FREE Copies of Build A World (25 EUR each)
Well, that really depends on the setup, a chroot is the easiest for *me* due to my system setup (mostly because I have a clean environment available for working on my own linux distro (really just a hobby hack, nothing special))devsh wrote:so a VM is really the simplest solution
"this is not the bottleneck you are looking for"