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

Competitions for Irrlicht or 3D in general.
Irrlicht Screenshot of the Month: Winner for January, vote for February, submit for March
Post Reply
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

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

Post 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
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

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

Post 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.
Cube_
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)

Post 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+)
"this is not the bottleneck you are looking for"
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

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

Post 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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

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

Post by devsh »

dear hendu... I have made some VMs, seems to be the simplest solution
Cube_
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)

Post 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)
"this is not the bottleneck you are looking for"
Cube_
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)

Post 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))
"this is not the bottleneck you are looking for"
Post Reply