Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458448 - games-util/atlas-0.3.1_p20101101-r1: fails to build
Summary: games-util/atlas-0.3.1_p20101101-r1: fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 12:59 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2014-08-12 23:55 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
games-util/atlas-0.3.1_p20101101-r1 fails to compile (build.log,15.81 KB, text/x-log)
2013-06-16 19:17 UTC, Jimis Hol
Details
Patch for compile errors games-util/atlas (atlas-0.3.1_p20101101-vector-compilefix.patch,905 bytes, patch)
2013-07-21 17:51 UTC, Mart K
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-20 12:59:37 UTC
https://tinderboxlogs.s3.amazonaws.com/tbamd64.excelsior.flameeyes.eu/games-util%3Aatlas-0.3.1_p20101101-r1%3A20130220-020557.html

Portage 2.2.0_alpha161 (default/linux/amd64/13.0, gcc-4.7.2-asneeded, glibc-2.17, 3.7.0-hardened x86_64)
=================================================================
System uname: Linux-3.7.0-hardened-x86_64-AMD_Opteron-TM-_Processor_6272-with-gentoo-2.2
KiB Mem:    65914672 total,  33393308 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 09 Feb 2013 16:15:02 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo tbamd64
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /opt/openjms/config /usr/lib64/tomoyo/conf /usr/share/bufrtables /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/qpsmtpd/plugins /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb /var/lib/neatx/home /var/spool/munin-async/.ssh /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
DISTDIR="/var/cache/portage/distfiles"
FCFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.hoobly.com/ http://gentoo.llarian.net/"
LANG="en_US.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j24"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/var/cache/tinderbox/tree"
PORTDIR_OVERLAY="/root/overlay"
SYNC="rsync://excelsior.flameeyes.eu/gentoo-portage"
USE="3dnow 3dnowex acl amd64 berkdb bzip2 cli cracklib crypt cxx doc dri emacs ffmpeg fortran gnutls gpm iconv icu intl introspection ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pax_kernel pcre pdf plasma qt3support readline semantic-desktop session snmp sse sse2 sse3 sse4 ssl ssse3 tcmalloc tcpd udev unicode vhosts zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 jannis 2013-06-02 08:14:00 UTC
The fix for that problem is rather simple:
add"#include <vector>\nusing namespace std;" to the affected file. However, atlas fails trying to link, not finding some libraries that look related to simgear. Downgrading to 2.8.0 didn't help.
Comment 2 Jimis Hol 2013-06-16 19:14:47 UTC
i think  i have same problem

Portage 2.1.12.5 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.5.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_460_@_2.53GHz-with-gentoo-2.2
KiB Mem:     3847584 total,   1743464 free
KiB Swap:    5241852 total,   5241852 free
Timestamp of tree: Sun, 16 Jun 2013 18:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Broadcom AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/"
LANG="el_GR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l3.95"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 aperfmperf apic arat arch_perfmon berkdb branding bts bzip2 cairo cdda cdr clflush cli cmov colord consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de dri ds_cpl dtes64 dts dvd dvdr eds emboss encode ept est evo exif fam firefox flac flexpriority fortran fpu fxsr gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ht iconv ida java jpeg lahf_lm lcms ldap libnotify libsecret lm mad mca mce mmx mng modules monitor mp3 mp4 mpeg msn msr mtrr mudflap multilib nautilus ncurses networkmanager nls nonstop_tsc nopl nptl nx ogg opengl openmp pae pam pango pat pbe pcre pdcm pdf pebs pge png pni policykit popcnt ppds pse pse36 pulseaudio qt3support rdtscp readline rep_good sdl sep session socialweb spell ss sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg syscall tcpd tiff tm tm2 tpr_shadow truetype tsc udev udisks unicode upower usb v4l v4l2 vme vmx vnmi vorbis vpid wxwidgets x264 xcb xml xtopology xtpr xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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 ubx" INPUT_DEVICES="evdev synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="el" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon intel" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

games-util/atlas-0.3.1_p20101101-r1 was built with the following:
USE="(multilib)"
Comment 3 Jimis Hol 2013-06-16 19:17:47 UTC
Created attachment 351146 [details]
games-util/atlas-0.3.1_p20101101-r1 fails to compile

build.log
Comment 4 Mart K 2013-07-21 17:49:15 UTC
I run into this problem as well and I solved it a patch I will attach. I had two compile errors: first the class "vector" was not found. The solution is described at [1]. Secondly, simgear apperently changed some library names [2]. I also applied that fix in my patch. Note that the second part might only need to be applied for some version of simgear (I installed flightgear 2.10).

[1] http://www.flightgear.org/forums/viewtopic.php?f=31&t=13094
[2] http://osdir.com/ml/flightgear-sim/2012-10/msg00123.html
Comment 5 Mart K 2013-07-21 17:51:53 UTC
Created attachment 353782 [details, diff]
Patch for compile errors games-util/atlas

The patch I announched in comment 4.
Comment 6 jannis 2014-01-05 09:45:33 UTC
Thanks for the patch! I can confirm that it fixes all atlas compilation errors and it builds fine here against simgear-2.12.1
Comment 7 Tony 2014-03-21 19:29:40 UTC
Thanks for the patch.  I had this problem as well and (once I'd learned how to apply patches.....) it built properly.

Unfortunately Map crashed when I tried to run it.
"Map: Subbucket.cxx:192: bool Subbucket::load(Bucket::Projection): Assertion `_chunk.get_tris_v().size() == 0' failed"
http://forum.flightgear.org/viewtopic.php?f=31&t=21304

This is apparently because with Flightgear 3 and the new scenery the format changed.

I tried the CVS version in the end (v 0.4.9), and that did work with a bit of fiddling.

Is it worth getting an upgraded version into Portage?  Apparently they have some alternative moving maps coming but I quite like Atlas.

Thanks for the patch.
Comment 8 Tony 2014-03-21 20:06:32 UTC
Just to add to my comment above, I use TerraSync for downloading the scenery.

Its possible that if the scenery is downloaded manually then Map doesn't crash.
Comment 9 Michael Weber (RETIRED) gentoo-dev 2014-07-12 00:01:19 UTC
there is a possible "version bump", erm. patchlevel bump with code from 2012
http://packages.ubuntu.com/precise/fgfs-atlas
Comment 10 Michael Weber (RETIRED) gentoo-dev 2014-07-12 10:55:57 UTC
(In reply to Mart Kelder from comment #5)
> Created attachment 353782 [details, diff] [details, diff]
> Patch for compile errors games-util/atlas
> 
> The patch I announched in comment 4.

I'm willing to step up for this package.
I've added a livevcs ebuild and a snapshot of the latest state to my overlay (layman -a xmw) for runtime testing.

The linking issue can be addressed by `egamesconf --enable-simgear-shared`.
Comment 11 Michael Weber (RETIRED) gentoo-dev 2014-07-12 11:47:11 UTC
(In reply to Michael Weber from comment #10)
> [...] for runtime testing.

So far, 
- I need a symlink from /usr/share/games/flightgear/Atlas to ../Atlas
- can run `Map --png --atlas=/home/michael/.fgfs/Atlas --fg-scenery=/home/michael/.fgfs/TerraSync`
- `Atlas --atlas=/home/michael/.fgfs/Atlas --fg-scenery=/home/michael/.fgfs/TerraSync` fails with 

Loading navaids from
  /usr/share/games/flightgear/Navaids/nav.dat.gz
UNKNOWN: LOWI 26  LOC-GS
  ... done
Loading fixes from
  /usr/share/games/flightgear/Navaids/fix.dat.gz
  ... done
Loading airways from
  /usr/share/games/flightgear/Navaids/awy.dat.gz
  ... done
Loading airports from
  /usr/share/games/flightgear/Airports/apt.dat.gz
AirportsOverlay::load: "/usr/share/games/flightgear/Airports/apt.dat.gz": unknown version 850.
terminate called after throwing an instance of 'std::runtime_error'
  what():  unknown airports file version
zsh: abort      Atlas --atlas=/home/michael/.fgfs/Atlas 


Which has been previously seen, reported and fixed at [1], but the files went offline. I've contacted the author, hang in there.

[1] http://forum.flightgear.org/viewtopic.php?f=31&t=21972#p202275
Comment 12 Maciej Mrozowski gentoo-dev 2014-08-12 23:53:28 UTC
I removed ancient 0.3.1 version and added latest 0.4.9-cvs20140320.
Please check it out.
Comment 13 Maciej Mrozowski gentoo-dev 2014-08-12 23:55:04 UTC
Btw, source package is from Fedora repository:
http://pkgs.fedoraproject.org/repo/pkgs/FlightGear-Atlas/