Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UFO-AI compiling errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Mon Sep 26, 2011 12:55 pm    Post subject: UFO-AI compiling errors Reply with quote

Just wanted to try this game and got plenty of those errors:

Code:

 * [GAM] src/game/lua/print.c
 * [GAM] src/shared/mathlib.c
In file included from src/shared/../common/../common/unzip.h:62:0,
                 from src/shared/../common/../common/qfiles.h:33,
                 from src/shared/../common/cmodel.h:29,
                 from src/shared/../common/common.h:167,
                 from src/shared/mathlib.c:26:
src/shared/../common/../common/ioapi.h:38:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:39:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:40:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:41:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:42:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:43:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:44:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/ioapi.h:48:5: error: expected specifier-qualifier-list before 'open_file_func'
src/shared/../common/../common/ioapi.h:60:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
In file included from src/shared/../common/../common/qfiles.h:33:0,
                 from src/shared/../common/cmodel.h:29,
                 from src/shared/../common/common.h:167,
                 from src/shared/mathlib.c:26:
src/shared/../common/../common/unzip.h:127:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:140:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:151:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:158:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:165:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:173:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:186:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:192:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:199:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:231:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:271:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:277:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:285:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:298:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:313:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:319:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:333:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:338:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/shared/../common/../common/unzip.h:343:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
make: *** [release-linux-gnu-x86_64/game/shared/mathlib.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: games-strategy/ufo-ai-2.3.1-r1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  91:  Called src_compile
 *   environment, line 2892:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";



make.conf:
Code:

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CXXFLAGS="${CFLAGS}"

#CFLAGS="-O2 -pipe"
#CXXFLAGS="-O2 -pipe"

ACCEPT_KEYWORDS="~amd64"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

CHOST="x86_64-pc-linux-gnu"


# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

USE="3dnow 3dnowext 3ds 64bit X a52 aac ace acpi ads aio alisp alsa amr
     apache2 apm apng archive asf ass async atsc audio avahi ban
     bash-completion binary-drivers bind binfilter blender blender-game
     bwscheduler chm client colordiff compress consolekit contactnotes
     contrast cover css ctrls cuda custom-optimization dbus declarative dhcpcd
     dirac disk-partition djvu downloadorder dvd dvdnav dvdr ebook embedded
     enca encode exif fat ffmpeg firefox flac flash foomaticdb fuse gadu gd
     gif gimp glib glitz gmp gnutella gzip hardened hddtemp hdri hotpixels
     ices icons ident imagemagick imlib infowidget inkjar ipfilter jfs jpeg
     kate kde kross ladspa lcdfilter lcms lensfun libproxy libv4l libv4l2 lilo
     live lm_sensors logviewer lqr lv2 lyrics lzma lzo mac mad mapnik matroska
     md5sum mdadm mdb mdnsresponder-compat menubar midi mime minizip mms mmx
     mmxext mng mp3 mp4 mpeg multimedia musepack nat normalize notifier nss
     nut nvidia ogg ogm okular opengl osdmenu pcf pdf plasma player policykit
     ppds pvr qwt rar real reiser4 reiserfs samba search semantic-desktop sftp
     shutdown smbclient smp sortrecords sse sse2 ssh statistics stats
     subtitles svg theora threads timezone toolame toolbar tremor truetype
     ttxtsubs udev usb userlocales v4l v4l2 vaapi vdpau verse virtuoso vocoder
     vorbis vpx wav wma x264 xchatdccserver xcomposite xfs xft xml
     xscreensaver xvid xvmc zeroconf zip -bluetooth -branding -curl -dxr3
     -emboss -fam -google-gadgets -jpeg2k -llvm -loop-aes -lto -pcntl
     -xinerama"

MAKEOPTS="-j3"
LINGUAS="en pl de"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="nvidia nv"

PORTAGE_NICENESS="19"

ACCEPT_LICENSE="dlj-1.1 skype-eula ETQW PUEL googleearth"
EMERGE_DEFAULT_OPTS="--autounmask=n"


Any suggestions ?


btw - the version from gentoo.org still has bad checksum[/code]
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Sep 26, 2011 2:50 pm    Post subject: Reply with quote

At a guess, maybe you have a very recent gcc?

Regarding "bad checksum" - reporting bugs here doesn't work - use the Gentoo bugzilla.
Back to top
View user's profile Send private message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Mon Sep 26, 2011 2:53 pm    Post subject: Reply with quote

Yes, I have gcc-4.5.3-r1 ...
Is there anything I can do in order to install this game ?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Sep 26, 2011 2:58 pm    Post subject: Reply with quote

Maybe as PaulBredbury already suggest:
install an older gcc version or filebug to let the ebuild be fixed
Back to top
View user's profile Send private message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Mon Sep 26, 2011 3:03 pm    Post subject: Reply with quote

I just couldn't see where he suggest to install older gcc version, and he suggested to file a bug about bad checksum and not the compilation errors. Therefore I was unsure if installing older gcc version and using it won't damage my gentoo. I'll try using older GCC only for ufo-ai.

Thanks!
Back to top
View user's profile Send private message
dr_Fell
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 170
Location: Sosnowiec, Poland

PostPosted: Mon Sep 26, 2011 3:04 pm    Post subject: Reply with quote

I just couldn't see where he suggest to install older gcc version, and he suggested to use bugzilla for bad checksum and not the compilation errors. Therefore I was unsure if installing older gcc version and using it won't damage my gentoo. I'll try using older GCC only for ufo-ai.

Thanks!
Back to top
View user's profile Send private message
Alfreder
n00b
n00b


Joined: 24 Jul 2011
Posts: 2
Location: Poland

PostPosted: Sat Jan 21, 2012 2:39 pm    Post subject: Reply with quote

Hello!

The same problem exists with the Git version of UFO:AI, did someone find a version of GCC that works? I tested versions 4.2.4, 4.4.5, 4.5.3 with no luck. I see in the first report that CHOST="x86_64-pc-linux-gnu" and so is mine - I had it working on a 32bit machine, maybe it is a 64bit connected bug? I'll try compiling it on a 32bit machine.
Code:

===> CC [ufo] src/client/cl_screen.c
In file included from src/client/renderer/../../common/unzip.h:62,
                 from src/client/renderer/../../common/qfiles.h:33,
                 from src/client/renderer/r_local.h:30,
                 from src/client/cl_screen.c:45:
src/client/renderer/../../common/ioapi.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/ioapi.h:48: error: expected specifier-qualifier-list before 'open_file_func'
src/client/renderer/../../common/ioapi.h:56: warning: struct has no members
src/client/renderer/../../common/ioapi.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
In file included from src/client/renderer/../../common/qfiles.h:33,
                 from src/client/renderer/r_local.h:30,
                 from src/client/cl_screen.c:45:
src/client/renderer/../../common/unzip.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:151: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:186: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:199: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:231: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:271: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:277: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:285: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:298: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:313: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:319: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:333: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:338: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
src/client/renderer/../../common/unzip.h:343: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
make: *** [debug-linux-x86_64/ufo/client/cl_screen.c.o] Error 1

Or maybe it is not the same? Source file is different, but includes/errors are the same.
Back to top
View user's profile Send private message
okias
n00b
n00b


Joined: 03 Jul 2007
Posts: 17
Location: Czech Republic

PostPosted: Fri Mar 02, 2012 12:51 pm    Post subject: Reply with quote

UrbanTerror - exactly same problem
Back to top
View user's profile Send private message
Alfreder
n00b
n00b


Joined: 24 Jul 2011
Posts: 2
Location: Poland

PostPosted: Mon Mar 05, 2012 6:22 pm    Post subject: Reply with quote

This is just silly... One macro in the source is not defined. Literally one! Everything seems fine on x86, so it must be defined for 32bit systems, but not for x86_64. Here is a fix, I hope this helps:
Code:

diff --git a/src/common/ioapi.h b/src/common/ioapi.h
index 958d65d..2c0a347 100644
--- a/src/common/ioapi.h
+++ b/src/common/ioapi.h
@@ -31,6 +31,12 @@
 #endif
 #endif

+#if PRE_ANSI_C89
+#  define OF(args) ()
+#else
+#  define OF(args) args
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 278
Location: Kenzingen, Germany

PostPosted: Fri May 09, 2014 5:55 pm    Post subject: New problems on ~amd64 Reply with quote

I tried to compile ufo-ai on an ~amd64 system but failed:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: release-linux-x86_64/ufo/common/common.c.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'
/lib64/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:135: recipe for target 'ufo' failed
make: *** [ufo] Error 1
emake failed
* ERROR: games-strategy/ufo-ai-2.4::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2931: Called die
* The specific snippet of code:
* emake || die;


Anyone experienced the same?
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 278
Location: Kenzingen, Germany

PostPosted: Fri May 09, 2014 6:09 pm    Post subject: Bug 509928 Reply with quote

The bug is now in Bugzilla:

Bug 509928
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 278
Location: Kenzingen, Germany

PostPosted: Fri May 09, 2014 6:27 pm    Post subject: Users Reply with quote

The majority of users seems to prefer reading in the forum only.

There are all the time 300-400 anonymous users online and something like 6 or so registered ones.

So not reading many new postings doesn't mean there is no interest.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat May 10, 2014 8:42 am    Post subject: Re: Bug 509928 Reply with quote

YPenguin wrote:
The bug is now in Bugzilla:

Bug 509928


And is fixed now in Portage ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum