Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611980 - games-util/atlas-0.5.x : multiple compilation/linking failures
Summary: games-util/atlas-0.5.x : multiple compilation/linking failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-07 18:35 UTC by Toralf Förster
Modified: 2017-03-18 04:30 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.74 KB, text/plain)
2017-03-07 18:35 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,8.71 KB, application/x-bzip)
2017-03-07 18:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,314.39 KB, text/plain)
2017-03-07 18:36 UTC, Toralf Förster
Details
environment (environment,123.19 KB, text/plain)
2017-03-07 18:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,28.40 KB, application/x-bzip)
2017-03-07 18:36 UTC, Toralf Förster
Details
games-util:atlas-0.5.0_p20141002:20170306-222600.log (games-util:atlas-0.5.0_p20141002:20170306-222600.log,62.59 KB, text/plain)
2017-03-07 18:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.80 KB, application/x-bzip)
2017-03-07 18:36 UTC, Toralf Förster
Details
Partial patch (atlas.patch,1.39 KB, patch)
2017-03-08 02:49 UTC, Maciej Mrozowski
Details | Diff
Partial compilation fix (atlas.patch,1.58 KB, patch)
2017-03-08 03:00 UTC, Maciej Mrozowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-07 18:35:54 UTC
           ^
/usr/include/simgear/math/simd.hxx: At global scope:
/usr/include/simgear/math/simd.hxx:1268:8: error: redefinition of ‘simd4_t<T, N>::simd4_t(T) [with T = int; int N = 4]’
 inline simd4_t<int,4>::simd4_t(int i) {
        ^
/usr/include/simgear/math/simd.hxx:1256:8: note: ‘simd4_t<T, N>::simd4_t(T) [with T = int; int N = 4]’ previously declared here

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-abi32+64_20170228-084815) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
2)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-7  system-vm
  [2]   icedtea-bin-8
Comment 1 Toralf Förster gentoo-dev 2017-03-07 18:35:59 UTC
Created attachment 466240 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-07 18:36:03 UTC
Created attachment 466242 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-03-07 18:36:09 UTC
Created attachment 466244 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-03-07 18:36:16 UTC
Created attachment 466246 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-03-07 18:36:20 UTC
Created attachment 466248 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-03-07 18:36:24 UTC
Created attachment 466250 [details]
games-util:atlas-0.5.0_p20141002:20170306-222600.log
Comment 7 Toralf Förster gentoo-dev 2017-03-07 18:36:28 UTC
Created attachment 466252 [details]
temp.tbz2
Comment 8 Maciej Mrozowski gentoo-dev 2017-03-08 02:21:29 UTC
There are other issues: there is new vcs snasphot needed, -std=c++ is needed in CXXFLAGS, then missing #include <cmath> and prefixing isnan with std namespace, finally read_bin(const char*) -> read_bin(SGPath&). But after this I still get linking error:

x86_64-pc-linux-gnu-g++  -std=c++11 -DFGBASE_DIR='"/usr/share/flightgear"'  -Wl,-O1 -Wl,--as-needed -L/usr/local//lib -o Map Map.o Tiles.o TileMapper.o Bucket.o Subbucket.o Palette.o Image.o misc.o -lSimGearCore -lplibpu -lplibfnt -lplibsg -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lpthread -lm  -lpng -lz -ljpeg -lGLEW -lplibul -lcurl -lm 
Map.o: In function `parse_arg(char*)':
Map.cxx:(.text+0x3a3): undefined reference to `SGPath::set(std::string const&)'
Map.cxx:(.text+0x412): undefined reference to `SGPath::set(std::string const&)'
Map.cxx:(.text+0x481): undefined reference to `SGPath::set(std::string const&)'
Map.cxx:(.text+0x4f0): undefined reference to `SGPath::set(std::string const&)'
Map.o: In function `main':
Map.cxx:(.text+0xb00): undefined reference to `SGPath::set(std::string const&)'
Map.o:Map.cxx:(.text+0xb63): more undefined references to `SGPath::set(std::string const&)' follow
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:525: Map] Error 1
make[3]: *** Waiting for unfinished jobs....
FlightTrack.o: In function `FlightTrack::FlightTrack(NavData*, char const*)':
FlightTrack.cxx:(.text+0x2c8): undefined reference to `SGPath::set(std::string const&)'
FlightTrack.o: In function `FlightTrack::FlightTrack(NavData*, int, unsigned int)':
FlightTrack.cxx:(.text+0x683): undefined reference to `SGPath::set(std::string const&)'
FlightTrack.o: In function `FlightTrack::FlightTrack(NavData*, char const*, int, unsigned int)':
FlightTrack.cxx:(.text+0xa7c): undefined reference to `SGPath::set(std::string const&)'
FlightTrack.o: In function `FlightTrack::setFilePath(char*)':
FlightTrack.cxx:(.text+0x1668): undefined reference to `SGPath::set(std::string const&)'
Tiles.o: In function `TileManager::mapPath(unsigned int)':
Tiles.cxx:(.text+0x1429): undefined reference to `SGPath::set(std::string const&)'
Tiles.o:Tiles.cxx:(.text._ZN6SGPathaSEPKc[_ZN6SGPathaSEPKc]+0x52): more undefined references to `SGPath::set(std::string const&)' follow
collect2: error: ld returned 1 exit status

against symbols that are marked as undefined in simgear...:
maciek@liwardyna ~ $ readelf -Ws /usr/lib64/libSimGearScene.so | c++filt  | grep SGPath
    10: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    56: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::lower_extension() const
    69: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::exists() const
   287: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND simgear::ResourceManager::findPath(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath)
   315: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::file_base() const
   440: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::SGPath(SGPath const&)
   442: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::~SGPath()
   524: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::local8BitStr() const
   574: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::extension() const
   589: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sg_gzifstream::sg_gzifstream(SGPath const&, std::_Ios_Openmode, bool)
   616: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::dir() const
   760: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGBinObject::read_bin(SGPath const&)
   769: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::SGPath(SGPath::Permissions (*)(SGPath const&))
   850: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::operator/(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const
   973: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::isNull() const
   992: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND readProperties(SGPath const&, SGPropertyNode*, int, bool)
  1032: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND sg_location::sg_location(SGPath const&, int, int)
  1083: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::SGPath(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath::Permissions (*)(SGPath const&))
  1108: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND SGPath::operator=(SGPath const&)
  1734: 00000000002a89b0  3527 FUNC    WEAK   DEFAULT   10 simgear::ReaderWriterSTG::_ModelBin::checkInsideBucket(SGPath const&, float, float)
  2018: 0000000000276ef0   248 FUNC    GLOBAL DEFAULT   10 simgear::SGModelLib::findDataFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*, SGPath)
  2185: 0000000000290a30  2481 FUNC    GLOBAL DEFAULT   10 SGNewCloud::SGNewCloud(SGPath const&, SGPropertyNode const*, mt*)
  2487: 0000000000292330  9957 FUNC    GLOBAL DEFAULT   10 SGSun::build(SGPath, double, SGPropertyNode*)
  5407: 00000000002f9fa0 13957 FUNC    GLOBAL DEFAULT   10 SGXmlSound::init(SGPropertyNode*, SGPropertyNode*, SGSampleGroup*, SGSampleGroup*, SGPath const&)
  6259: 00000000002f4290   586 FUNC    GLOBAL DEFAULT   10 SGSoundSample::SGSoundSample(char const*, SGPath const&)
  6760: 00000000002a5420   257 FUNC    WEAK   DEFAULT   10 std::basic_ostream<char, std::char_traits<char> >& operator<< <char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, SGPath const&)
  6864: 00000000002f4290   586 FUNC    GLOBAL DEFAULT   10 SGSoundSample::SGSoundSample(char const*, SGPath const&)
  6897: 0000000000290a30  2481 FUNC    GLOBAL DEFAULT   10 SGNewCloud::SGNewCloud(SGPath const&, SGPropertyNode const*, mt*)
  7034: 000000000028f740  1543 FUNC    GLOBAL DEFAULT   10 SGMoon::build(SGPath, double)
  7362: 00000000002ac410 14489 FUNC    WEAK   DEFAULT   10 simgear::ReaderWriterSTG::_ModelBin::read(SGPath const&, osgDB::Options const*)
  7430: 00000000002fde90  4319 FUNC    GLOBAL DEFAULT   10 simgear::loadWAVFromFile(SGPath const&, unsigned int&, int&, float&, unsigned int&)

I'll do new bump for you to play with but mask the package for now.
Comment 9 Maciej Mrozowski gentoo-dev 2017-03-08 02:49:15 UTC
Created attachment 466304 [details, diff]
Partial patch

I've added atlas-0.5.1_beta_pre20160907 to repo.
Feel free to play with attached patch until I have the time for that myself, that need for -std=c++ might be problematic for atlas.
Comment 10 Maciej Mrozowski gentoo-dev 2017-03-08 03:00:50 UTC
Created attachment 466306 [details, diff]
Partial compilation fix
Comment 11 Maciej Mrozowski gentoo-dev 2017-03-18 04:04:47 UTC
Removing gcc blocker. Atlas is just not adapted to latest simgear API.
Comment 12 Maciej Mrozowski gentoo-dev 2017-03-18 04:30:36 UTC
I had to port atlas to new simgear SGPath API.