FreeOrion

Forums for the FreeOrion project
It is currently Wed Aug 23, 2017 10:00 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: build error git
PostPosted: Fri Mar 17, 2017 2:18 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
commit 10ad56917beb852ee604d722d7e8ea88366bbc4b

In file included from /home/user/games/freeorion/parse/BuildingsParser.cpp:10:0:
/home/user/games/freeorion/parse/../universe/Enums.h:12:5: error: ‘INVALID_UNIVERSE_OBJECT_TYPE’ has not been declared


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 2:20 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 11951
Location: Munich
What compiler? If an MSVC older than 2015, get a newer version.


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 2:27 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
gcc (GCC) 5.3.0


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 2:40 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4142
Location: Sol III
@pheldens, are you familiar with git bisect? Can you try to narrow down which commit exactly introduced the issue?


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 3:21 pm 
Offline
Programmer
User avatar

Joined: Fri Mar 01, 2013 9:52 am
Posts: 1038
Location: Germany
Not reproducible locally or on any CI system.

https://github.com/freeorion/freeorion/commits/master

_________________
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 8:47 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
bisected to:

0a6f858ad8d10069e3f1d7ef3be9c890bccb80b8 is the first bad commit
commit 0a6f858ad8d10069e3f1d7ef3be9c890bccb80b8
Author: Marcel Metz <mmetz@adrian-broher.net>
Date: Fri Mar 3 23:39:31 2017 +0100

Use CMake target_include_directories for all targets

:100644 100644 d4396dedb3e85467a3c468a0c05db165cc5be151 0abbf106111e6679095d99b51e89a9aaab52e28c M CMakeLists.txt
:040000 040000 36982356630f99b574764be431fc91135841a5e5 0540ecf8d1f8ce1faadc896f9bca375ae70383d5 M client
:040000 040000 3e39fe9bca7e1eb8a275232912e0ecca575247a2 161b39fb9651a944408d34982447a0e95c53d89d M parse
:040000 040000 a300c8f5a2bd588a61835f8dbb5a0326eada33fd 751a8423fc6b069d6e090dba5ac02e839c3f63dc M server


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 9:01 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 11951
Location: Munich
Perhaps you need to re-run cmake before building?


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 9:36 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
upgraded cmake from cmake-3.6.1 to cmake-3.7.2 , still get the error

it's a clean build outside of the source tree


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 9:39 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
/usr/local/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
# warning "Boost.Signals is no longer being maintained and is now depr
^
In file included from /home/user/games/freeorion/combat/CombatEvents.cpp:8:0:
/home/user/games/freeorion/combat/../universe/Enums.h:12:5: error: ‘INVALID_UNIVERSE_OBJECT_TYPE’ has not been declared



boost_1_60_0


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 10:01 pm 
Offline
Programmer
User avatar

Joined: Fri Mar 01, 2013 9:52 am
Posts: 1038
Location: Germany
pheldens wrote:
/usr/local/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
# warning "Boost.Signals is no longer being maintained and is now depr


No idea what are you doing there, but we replaced boost::signals with boost::signals2 more than 3 years ago.

https://github.com/freeorion/freeorion/ ... 5ef5a153d3

also

pheldens wrote:
/usr/local/


I just assume you butchered your build environment beyond recognition.

_________________
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 10:16 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
ok I'll look into it, may be a stale file, though my install logger says it's part of 1.60

/usr/local is my correct prefix

/usr/local/include/boost/signal.hpp
/usr/local/include/boost/signals2/signal.hpp

signals 2 is in its own subdir, your includes and cmake procedure should take this into account


Top
 Profile  
 
 Post subject: Re: build error git
PostPosted: Fri Mar 17, 2017 10:44 pm 
Offline
Pupating Mass

Joined: Fri Mar 15, 2013 12:54 pm
Posts: 96
I Think I found it, it were old GiGi includes from 2013 when this was a seperate project (iirc) up until march3 these were never picked up


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group