2025-07-27 18:49 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003109Spring engineLinuxpublic2012-06-20 17:39
Reporterskaumo 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version88.0 
Target VersionFixed in Version 
Summary0003109: streflop fails with "Invalid headingToVectorTable checksum" on gentoo
DescriptionGreetings,

I`m getting this error when trying to start a game - Gentoo, AMD Bulldozer.


Invalid headingToVectorTable checksum. Most likely your streflop library was not compiled with the correct options, or you are not using streflop at all.



Regards
Additional Information[ebuild R ~] games-strategy/spring-88.0-r1::spring USE="ai default java multithreaded openmp -custom-cflags -debug -dedicated -headless -lto -lto_whopr -profile -test -test-ai"


emerge --info
Portage 2.2.0_alpha105 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.14.1-r3, 3.4.0-gentoo x86_64)
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.0.3
Timestamp of tree: Thu, 07 Jun 2012 08:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.3-r1, 3.2.3
dev-util/ccache: 3.1.6
dev-util/cmake: 2.8.7-r5
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo spring
Installed sets:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula AdobeFlash-10.3 AdobeFlash-11 google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mlwp -mavx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mlwp -mavx"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it hu en"
MAKEOPTS="-j8"
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="/var/lib/layman/Spring"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac acl acpi alsa alsaa amd64 amr apache2 apm apng ass berkdb bzip2 cairo cdda cddb cgi cli consolekit corefonts cracklib crypt curl cxx dbus device-mapper dga dhclient dri dv dvd dvdnav enca encode exif expat faac faad fam fbcon fbcondecor ffmpeg flac foomaticdb fts3 gd gdbm geoip gif gimp git glade glibc-omitfp gmp gnutls gphoto2 graphite gsm gstreamer gtk gudev hddtemp iconv icu id3tag idn ieee1394 ilbc injection inotify iproute2 ipv6 java jpeg jpg kde kdeenablefinal kdehiddenvisibility lame lcms libnl libv4l2 lm_sensors lzma mad maps mikmod mmap mmx mmxext mng modules moznopango mp2 mp3 mp3rtp mpeg mpi mudflap multilib multislot multitarget mysql mysqli ncurses network networkmanager nls npp nptl nsplugin nut ogg openal opencl openexr opengl openmp osdmenu otr pam pcre pdf pdo pgo phonon php pmu png policykit portaudio ppds pppd pvr python qt3 qt3support qt4 quicktime readline rle rtc rtsp samba sdl session shm shout sip smp sndfile sox speex sql sqlite sqlite3 srtp sse sse2 sse3 ssl ssse3 startup-notification stream suhosin svg swat system-sqlite tcpd theora threads tidy tiff tk tools tremor truetype unicode unlock-notify usb v4l v4l2 v8 vboxwebsrv vhook vhosts video vim-pager vnc vorbis wav webdav webgl webkit x264 xcomposite xinedtd xml xorg xpm xrandr xv xvfb xvid xvmc zip zlib" 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="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 proxy proxy_http proxy_connect" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it hu en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" 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
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0000327closedtvo invalid headingToVectorTable checksum (was: Unable to start game because of error) 
+Relationships

-Notes

~0008751

abma (administrator)

seems like your compiler flags are wrong, not sure which ones...afaik "-custom-cflags" removes all custom flags...

maybe jk has better hints

~0008752

abma (administrator)

error message is from here:

https://github.com/spring/spring/blob/88.0/rts/System/myMath.cpp#L95

~0008753

abma (administrator)

Last edited: 2012-06-11 10:14

can you attach infolog.txt please? (this answers some more questions...)

also i would expect if you change CXXFLAGS and CFLAGS to "-O2" it should work fine.

~0008755

skaumo (reporter)

I tried with the following combinations, and also tried enabling and disabling custom-cflags - same result in each case.
-O2 was always set.
CXXFLAGS equals CFLAGS


CFLAGS="-O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mlwp -mavx"


CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"

~0008757

abma (administrator)

Last edited: 2012-06-12 11:14

http://springrts.com/phpbb/viewtopic.php?f=20&t=17239


march could be the problem... can you try without march/different march?

~0008758

skaumo (reporter)

-march=i686 does not work.


>>> Configuring source in /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring_88.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DOPENMP=ON -DLTO=OFF -DLTO_WHOPR=OFF -DAI_EXCLUDE_REGEX="Null|Test" -DBUILD_spring-default=ON -DBUILD_spring-multithreaded=ON -DBUILD_spring-headless=OFF -DBUILD_spring-dedicated=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBINDIR=games/bin -DLIBDIR=games/lib64 -DDATADIR=share/games/spring -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/gentoo_rules.cmake /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring_88.0
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/gentoo_common_config.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc" is not able
  to compile a simple test program.

  It fails with the following output:

   Change Dir: /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp



  Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  gmake[1]: Entering directory
  `/var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp'


  /usr/bin/cmake -E cmake_progress_report
  /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

  /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=i686 -o
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
  /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp/testCCompiler.c



  /var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp/testCCompiler.c:1:0:
  error: CPU you selected does not support x86-64 instruction set

  gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 1

  gmake[1]: Leaving directory
  `/var/tmp/portage/games-strategy/spring-88.0-r1/work/spring-88.0_build/CMakeFiles/CMakeTmp'


  gmake: *** [cmTryCompileExec/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
 * ERROR: games-strategy/spring-88.0-r1 failed (configure phase):
 * cmake failed

~0008759

abma (administrator)

Last edited: 2012-06-12 21:46

ops, i686 is 32bit, you're on 64 bit:
http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags

-march=k8 should do the trick then...

~0008760

skaumo (reporter)

Thanks: -march=k8 worked (although now I have another issue which I`ll handle separately).


Anyway, users are not supposed to change -march manually to compile individual packages, and this is too much of an amazing game engine to just fail on things like this. ;)
On Gentoo, the compiler flags are set to best match the current architecture. If some package needs sticking to specific settings, that should happen within the make scripts, which can override the user-defined defaults as needed.
Is it possible to make that happen, please?


It may also be an option to start supporting the AMD Bulldozer, or fixing the Streflop checks. I don`t think it has much stuff this CPU can`t support.



Thanks again for your help.
Best,
Skaumo

~0008809

jK (developer)

https://github.com/spring/spring/commit/bc642075cbd9564c6ecbd489577346fa910fd7ab
+Notes

-Issue History
Date Modified Username Field Change
2012-06-10 13:55 skaumo New Issue
2012-06-10 22:54 abma Note Added: 0008751
2012-06-10 22:54 abma Severity block => minor
2012-06-10 22:54 abma Product Version 89.0 => 88.0
2012-06-10 22:54 abma Summary STREFLOP error => some compiler flags causes streflop to fail with "Invalid headingToVectorTable checksum"
2012-06-10 23:07 abma Note Added: 0008752
2012-06-10 23:09 abma Note Added: 0008753
2012-06-11 10:14 abma Note Edited: 0008753
2012-06-12 03:12 skaumo Note Added: 0008755
2012-06-12 11:01 abma Summary some compiler flags causes streflop to fail with "Invalid headingToVectorTable checksum" => streflop fails with "Invalid headingToVectorTable checksum" on gentoo
2012-06-12 11:12 abma Note Added: 0008757
2012-06-12 11:12 abma Relationship added duplicate of 0000327
2012-06-12 11:14 abma Relationship replaced related to 0000327
2012-06-12 11:14 abma Note Edited: 0008757
2012-06-12 21:29 skaumo Note Added: 0008758
2012-06-12 21:46 abma Note Added: 0008759
2012-06-12 21:46 abma Note Edited: 0008759
2012-06-12 21:46 abma Note Edited: 0008759
2012-06-12 22:13 skaumo Note Added: 0008760
2012-06-20 17:39 jK Note Added: 0008809
2012-06-20 17:39 jK Status new => resolved
2012-06-20 17:39 jK Resolution open => fixed
2012-06-20 17:39 jK Assigned To => jK
+Issue History