FreeOrion does not compile on gentoo

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Space Krill
Posts: 2
Joined: Thu Mar 26, 2015 3:36 pm

FreeOrion does not compile on gentoo

#1 Post by roman.gruber »

I just recommended today to kick out freeorion out of gentoo linux.

Feel free to provide a buildable source with current libaries

gentoo bug. Open since months.

My forum request to kick out freeorion out of the tree, as there are no maintainers and its unbuildable ... ml#7722466

Should you need any build data, please answer the gentoo bug or the forum request there.

It is just a notification for you guys, thanks

Most issues arose of very old boost used by freeorion and freetype.

emerge --info
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 3.10.70-gentoo_2015_02_28 x86_64)
System uname: Linux-3.1[email protected]_2.60GHz-with-gentoo-2.2
KiB Mem: 4046280 total, 153232 free
KiB Swap: 33035260 total, 32775428 free
Timestamp of repository gentoo: Thu, 26 Mar 2015 11:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash: 4.3_p33-r2::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.9-r2::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake: 3.1.0::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.13.11::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake: 1.9.6-r3::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25::gentoo
sys-devel/gcc: 4.4.7::gentoo, 4.5.4::gentoo, 4.6.4::gentoo, 4.7.4::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config: 1.8::gentoo
sys-devel/libtool: 1.3.5::gentoo, 1.5.26-r1::gentoo, 2.4.6-r1::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.20-r2::gentoo

location: /usr/portage
sync-type: rsync
sync-uri: rsync://
priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O1 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O1 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" ... oo-mirror/ ftp:/// ... ns/gentoo/ ... ns/gentoo/ ... ons/gentoo ftp:///"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="64bit 7zip S3TC X X509 a52 aac aacplus aalib acl acpi aimodules alsa amd64 amr amrnb amrwb ao apm apng archive ares aspell assistant atmo audacious automount autotrace avx bash-completion battstat berkdb bidi binfilter bittorrent bl blender-game bloodsuckermaps boo brasero btrfs bugzilla bzip2 cairo cdda cddax cddb cdio cdparanoia cdr cdrom chm clamav clamd clamdtop clang cli clutter clvm consolekit contrast coverage cpufreq_bench cpuload cracklib crypt cryptsetup ctypes-python cups curl custom-optimization cxx dane dbus dc1394 declarative device-mapper devil dga dhcpcd dia dirac directfb djvu dmraid dos dri dts dv dvd dvdr edd emboss emf emovix enca encode epiphany equalizer exif expat extras faac faad fam fat fbcon ffmpeg fftw firefox fits flac flickr flite floppy fluidsynth fontconfig fortran fpx ftp fts3 g3dvl gadu gcj gconf gdbm gdm geoloc ggi gif gimp git gjs glade gles gles1 gles2 glew glitz glut gmp gmplayer gnutls gold gost gpg gpm graph graphite graphviz grilo groovy groupwise gs gsm gtk gtk3 gucharmap guile gzip-el hddtemp hdri hfs hotpixels http iconv icu id3 id3tag idn ieee1394 imagemagick imlib imlib2 inkjar inotify introspection ipp ipv6 irrlicht jabber jack java javascript jbig jfs jit joystick jpeg jpeg2k krb4 ladspa lame lapack lasi lcdfilter lcms lensfun libass libcaca libev libevent libffi libkms libnl libsamplerate libssh2 libsysfs libv4l libv4l2 libvisual live lm_sensors lqr lua lvm lvm2 lxde lximage lzma lzo mad mapimg matroska md5sum md5sum-external mdadm mdev meanwhile mercurial midi mikmod minizip mjpeg mms mmx mmxext mng mod modpack modplug modules mono moonlight motif mp3 mp4 mpd mpeg mpeg2 mpeg3 mpfi mplayer mtp multicore multilib multimedia musepack music musicbrainz mxit mysql nas nautilus ncurses networking nntp nptl nsplugin ntfs ntfsdecrypt ntfsprogs nut nuv nvcontrol nvidia odk ogg ogre ois openal opencore-amr openexr opengl openmp openrc openssl optimisememory optimized-qmake opus orbit osc osmesa oss pam pango pcre pdf pdfimport perl pipelight pkcs11 plotutils png pnm policykit postproc postscript ppds prediction pulseaudio pvr python qt3support qt4 quicktime quvi radio rar raw rdoc readline realtime redland reiser4 reiserfs resolvconf rle rrdcgi rtmp rtsp ruby sasl schroedinger script sdl sdl-image sdlgfx secure-delete semantic-desktop sensors session sha1 shine shout silc sip skype smi smp smpeg sndfile sound soundex soundtouch sox speex spell spoof-source sql sqlite sse sse2 sse2_4way sse2check sse3 sse4 sse4_1 ssl ssse3 staging startup-notification stream subversion svg sysstat system-sqlite systemtap taglib tcl tcpd templates theora threads tiff tk tonal toolkit-scroll-bars truetype twolame udev udisks unicode unlock-notify upcall upower usb uvm v4l v4l2 vaapi vamp vcd vcdinfo vcdx vdpau vhook vlc vlm vorbis vpx wacom wav wavpack weather-metar weather-xoap webp websockets wifi wikipedia winbind wireshark wma wma-fixed wmf x264 x265 xanim xattr xcb xcomposite xfs xft xinerama xml xmlpatterns xmp xnest xosd xpm xps xpsmall xscreensaver xv xvfb xvid yuv4mpeg yv12 zephyr zlib zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

User avatar
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: FreeOrion does not compile on gentoo

#2 Post by Dilvish »

I would be nice to hear about problem *before* you recommend removing FO -- the last post (prior to your own of today) on the thread here about compiling in Gentoo, from AndrewW, seemed to indicate the manner of making the build work (at that time). The current Test versions of FreeOrion do work with boost 1.56, but the debian maintainer Markus (Apo on these boards) was probably not planning on putting together another package until we roll out 0.4.5. But in the past he has indicated he could roll out extra versions if there was a significant reason to do so. In the Gentoo thread you link to it's not even clear that you guys tried contacting the debian maintainers to check on this-- did you?

We are currently in the midst of migrating our repo from SourceForge/SVN ( ... /FreeOrion) to GitHub (, so are a bit busy with that, but I expect the latest version (from either) should compile for you, if you care to give it a try.

I'll contact Apo to see if he has any proposal here. If he rolls out a new package in debian I assume that should be expected to solve things for you guys, yes? Are there any other options you have in mind?
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12722
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: FreeOrion does not compile on gentoo

#3 Post by Geoff the Medio »

roman.gruber wrote:Most issues arose of very old boost used by freeorion and freetype.
Could you explain what this refers to? FreeOrion doesn't require any particular version of FreeType, and can (as of the latest SVN) build agains several recent versions of Boost, including at least 1.56 for me on Windows. FreeType also doesn't depend on Boost as far as I can tell.

Edit: from the linked thread, it appears the issue is that the Gentoo build of Ogre, which FreeOrion v0.4.4 depends on, depends on an older version of Boost. A dependency being broken (seemingly?) isn't really something we can fix. Updating to the latest SVN would resolve it though, as Ogre is no longer a FreeOrion dependency in the latest revisions.

User avatar
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: FreeOrion does not compile on gentoo

#4 Post by Dilvish »

Whoops! Markus just let me know that gentoo does not derive from debian, so, ah, nevermind about that part :oops:
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: FreeOrion does not compile on gentoo

#5 Post by Dilvish »

just to update the status-- the gentoo maintainer for FO has updated them to our current snapshot, which works fine for them; he is designating it as 0.4.5-pre.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Dyson Forest
Posts: 231
Joined: Sun May 11, 2008 10:50 am

Re: FreeOrion does not compile on gentoo

#6 Post by Chriss »

Yep, basically that was a lot if miss communication, or rather no communication... It's good that's cleaned up now.

I would count this as another reason to push out 0.4.5 as next step after the github migration. It would help Gentoo and Arch as rolling release distros, since we are already at newer boost versions than 0.4.4 support. Debian and Ubuntu 15.04 seem to stick with 1.55 for now. Fedora 22 will come out in May with 1.57 apparently.
Attached patches are released under GPL 2.0 or later.

Post Reply