View Issue Details

IDProjectCategoryView StatusLast Update
0002576Spring engineLinuxpublic2011-07-26 17:56
ReporterSvenstaro Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version0.82.7.1 
Summary0002576: Building java bindings fails
DescriptionI'm building this in a clean chroot on Arch Linux and get lots of these:


/build/src/spring_0.82.7.1/AI/Interfaces/Java/src-generated/main/java/com/springrts/ai/oo/OOAIFactory.java:216: <identifier> expected
                                                _ret = ai.();
                                                          ^
and lots of these:

/build/src/spring_0.82.7.1/AI/Interfaces/Java/src-generated/main/java/com/springrts/ai/oo/AbstractOOAI.java:37: <identifier> expected
        public int () {
                  ^

Building without java works fine. Neither jre6, jre7 or openjdk6 work.
Additional InformationArch Linux
GCC 4.6
openjdk6 6.b22_1.10.3-1
jdk 6u26-1
jdk 7b147-1
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2011-07-26 16:42

administrator   ~0007073

are you using awk 4.0? (awk --version)

if so: please disable compiling java-ais with:

cmake . -DAI_TYPES=NATIVE


this is already fixed in the current development version of spring

Svenstaro

2011-07-26 17:13

reporter   ~0007074

Last edited: 2011-07-26 17:13

That is essentially the same as building without java, though, isn't it? I already said that that worked fine.

As this is an official package, I'm probably making some people unhappy by disabling java AIs. Any chance for a stable maintenance release very soon?

abma

2011-07-26 17:21

administrator   ~0007075

Last edited: 2011-07-26 17:21

sorry! i didn't know you where a package maintainer.

we are still trying to catch a sync-error... so there is no real releasedate :-/

https://github.com/spring/spring/commit/ef615de94828e693115838110c7fae8b0ab464ad
https://github.com/spring/spring/commit/b814e397fb15c7991faa9230473625d85188221e

should fix the awk-problems. but afaik you'll still get some gcc compile errors. these should be fixed by https://github.com/spring/spring/tree/0.82.7.1-gcc-4.6


i'm unsure if its worth to try to backport these commits: newer linux distributions with gcc-4.6 are known to produce sync errors... (but it looked like it isn't gcc, imo its a different system-lib like boost or so...)

Svenstaro

2011-07-26 17:45

reporter   ~0007076

Well that kind of worked. I ended up writing my own patch because those commits are much more recent than my current build.

I think this can be closed now. The proper solution would be to make a stable release soon, though.

Hopefully you guys can find out what causes the sync errors.

abma

2011-07-26 17:56

administrator   ~0007077

yes, true! thx for reporting!

Issue History

Date Modified Username Field Change
2011-07-26 05:44 Svenstaro New Issue
2011-07-26 05:44 Svenstaro Graphics Card => unknown
2011-07-26 16:42 abma Note Added: 0007073
2011-07-26 16:42 abma Status new => feedback
2011-07-26 17:13 Svenstaro Note Added: 0007074
2011-07-26 17:13 Svenstaro Note Edited: 0007074
2011-07-26 17:21 abma Note Added: 0007075
2011-07-26 17:21 abma Status feedback => new
2011-07-26 17:21 abma Note Edited: 0007075
2011-07-26 17:45 Svenstaro Note Added: 0007076
2011-07-26 17:56 abma Note Added: 0007077
2011-07-26 17:56 abma Status new => resolved
2011-07-26 17:56 abma Resolution open => no change required
2011-07-26 17:56 abma Assigned To => abma