Page 1 of 1

Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Thu Jul 25, 2013 9:56 pm
by devsh
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

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Fri Jul 26, 2013 12:22 pm
by hendu
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.

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Fri Jul 26, 2013 6:51 pm
by Cube_
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+)

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Mon Jul 29, 2013 8:12 am
by Nadro
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):

Code: Select all

asm (".symver memcpy, memcpy@GLIBC_2.2.5");
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.

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Sun Aug 04, 2013 11:36 am
by devsh
dear hendu... I have made some VMs, seems to be the simplest solution

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Sun Aug 04, 2013 4:11 pm
by Cube_
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)

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Tue Aug 06, 2013 7:42 pm
by devsh
so a VM is really the simplest solution :D

Re: Up to 7 FREE Copies of Build A World (25 EUR each)

Posted: Wed Aug 07, 2013 12:22 am
by Cube_
devsh wrote:so a VM is really the simplest solution :D
Well, that really depends on the setup, a chroot is the easiest for *me* due to my system setup :P (mostly because I have a clean environment available for working on my own linux distro (really just a hobby hack, nothing special))