project-navigation
Personal tools

Author Topic: compile errors  (Read 10600 times)

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
compile errors
« on: March 27, 2012, 05:55:33 pm »
since the c++ switch im unable to link ufo2map

and the folder
base/videos
is missing in
master
ufoai_2.4
ufoai_2.3

7zip doesnt like the created archive
videos.pk3

btw.
a subforum 2.5dev would be nice
« Last Edit: April 09, 2012, 07:44:19 am by Muton »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: 2.5 dev
« Reply #1 on: March 27, 2012, 08:00:28 pm »
ufo2map linking should work again.

2.5 subforum will follow once 2.4 is released

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: 2.5 dev
« Reply #2 on: March 28, 2012, 07:49:42 pm »
its fine now
but
base/videos
folder
is still missing
but pk3_def.mk still includes this folder

Nokim

  • Guest
Re: compile errors
« Reply #3 on: July 01, 2012, 05:43:51 pm »
Suppose it's right topic...

I can't compile latest master. From make log:

Quote
===> CC [ufo] src/libs/mxml/mxml-attr.c
===> CC [ufo] src/libs/mxml/mxml-entity.c
===> CC [ufo] src/libs/mxml/mxml-file.c
===> CC [ufo] src/libs/mxml/mxml-index.c
===> CC [ufo] src/libs/mxml/mxml-node.c
===> CC [ufo] src/libs/mxml/mxml-private.c
===> CC [ufo] src/libs/mxml/mxml-search.c
===> CC [ufo] src/libs/mxml/mxml-set.c
===> CC [ufo] src/libs/mumble/libmumblelink.c
===> CXX [ufo] src/ports/linux/linux_main.cpp
===> CXX [ufo] src/ports/unix/unix_console.cpp
===> CXX [ufo] src/ports/unix/unix_files.cpp
src/libs/mumble/libmumblelink.c:185:1: fatal error: opening dependency file debug-linux-x86_64/ufo/libs/mumble/libmumblelink.c.d: No such file or directory
compilation terminated.

My system is Gentoo 64-bit, using GCC.

UPD: Sorry. make clean && make resolved problem  :)
« Last Edit: July 01, 2012, 05:51:10 pm by Nokim »

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: compile errors
« Reply #4 on: June 01, 2013, 07:39:58 am »
Im having troubles to build ufoai inside Mingw
some changes in the make files causing this
Im able to build 2.4 without any error or warning


My last nightly run sucessfull on 2013.05.27 04:13:29
since than ill get
cd /ufoai_2.5 && make pk3 -B -j2 || exit $? ; exit 0
    /bin/sh: - : invalid option
    Usage:    /bin/sh [GNU long option] [option] ...
        /bin/sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --protected
        --rcfile
        --restricted
        --verbose
        --version
        --wordexp
    Shell options:
        -irsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    /bin/sh: -r: command not found
    make: *** [base/0pics.pk3] Error 1
    logout


Even more strange is this, but i can see that error even since 2013.05.12
(got no older logs anymore)
/bin/sh: - : invalid option





and this is not true
    Found zip
>>>    Could not find python
    Could not find doxygen
    Found xvid.h
    Found theora/theora.h
    Could not find execinfo.h
    Found bfd.h
    Could not find sys/utsname.h
    Could not find link.h
    Found CUnit/Basic.h
    Could not find mxml.h
    Could not find picomodel.h
    Found gtk/gtk.h
    Found gtksourceview/gtksourceview.h


which python
/d/UFOAIwin32BUILDenv/MinGW/Python/Python27/python.exe


Ive attached the whole build log ....

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compile errors
« Reply #5 on: June 03, 2013, 11:35:10 am »
btw. should be fixed already.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: compile errors
« Reply #6 on: June 24, 2013, 08:03:13 pm »
you broke make files again

Code: [Select]
$ export LDFLAGS='-s' ; export CFLAGS='-mtune=core2 -O1 -fthread-jumps -falign-
functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjump
ing -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -f
gcse-lm -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freord
er-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-
insns2 -fstrict-overflow -ftree-pre -ftree-vrp -finline-functions -funswitch-lo
ops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -mssse3 -mfpmat
h=sse -mieee-fp -fno-strict-aliasing --param l1-cache-line-size=32 --param l1-c
ache-size=32 --param l2-cache-size=4096' ; cd /ufoai && ./configure --prefix= -
-enable-sse --enable-release --enable-static --target-os=mingw32 && make ufo2ma
p Q= -B -j2 || exit 1 ; exit 0
Could not get the mxe path from /home/user/.mxe.settings
use c compiler: gcc
use c++ compiler: g++
Enable static linking
Enable Streaming SIMD Extensions
Compile for mingw32
Compile for i386
Compile in release mode
Found cc gcc
Found cxx g++
Using bindir /bin/
Using datadir /games/ufo/
Using libdir /lib/
Build modules:
Build cgame-campaign
Build cgame-multiplayer
Build cgame-skirmish
Build cgame-staticcampaign
Build game
Build memory
Build testall
Build ufo
Build ufo2map
Build ufoded
Build ufomodel
Build uforadiant
Build ufoslicer
Enable hard linked cgame
Use signal handler
Setting custom data directory
Setting custom library directory
Found zip from zip
Could not find python from python
Could not find doxygen from doxygen
Found xvid.h
Found theora/theora.h
Found execinfo.h
Found bfd.h
Found sys/utsname.h
Found link.h
Found jpeglib.h
Found zlib.h
Found png.h
Found CUnit/Basic.h
Found mxml.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Found picomodel.h
Found gtk/gtk.h
Found gtksourceview/gtksourceview.h
Found libxml/parser.h
Found AL/al.h
Found gtk/gtkglwidget.h
/bin/sh: - : invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
restarting configure for mingw32
./configure

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compile errors
« Reply #7 on: June 24, 2013, 09:23:09 pm »
please execute with set -x, so i can see where it failed

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: compile errors
« Reply #8 on: August 15, 2013, 12:29:18 pm »
ive found some time to look into make files ...

.)/bin/sh: - : invalid option
Is caused (i guess) by maps.mk
if $PROGRAM_PYTHON is empty
Code: (make debug output) [Select]
Reading makefile `build/maps.mk' (search path) (no ~ expansion)...
/bin/sh: - : invalid option

.)i was unable to build ufomodel
i had to remove the most annoying reconfigure from within make
because of
Code: [Select]
./configure --prefix= --enable-sse --enable-release --enable-static --target-os=mingw32 && make ufomodel Q= -B -j4
Could not get the mxe path from /home/Administrator/.mxe.settings
use c compiler: gcc
use c++ compiler: g++
....
Build ufo2map
Build ufoded
Build ufomodel
Build uforadiant
Build ufoslicer
+ make ufomodel Q= -B -j4
restarting configure for mingw32
./configure
Could not get the mxe path from /home/Administrator/.mxe.settings
use c compiler: "gcc"
use c++ compiler: "g++"
Could not find the c compiler: "gcc"
make: *** [mingw32-config.h] Error 1
+ exit 2
Code: (make) [Select]
....
$(TARGET_OS)-config.h: configure
@echo "restarting configure for $(TARGET_OS)"
$(Q)$(CONFIGURE_PREFIX) ./configure $(CONFIGURE_OPTIONS)
$(Q)$(MAKE)
....

.)and replace ...
Code: (config.h) [Select]
#ifdef __WIN64__
#include "mingw64_64.h"
#elif defined __WIN32__
- #include "mingw64-config.h"
+ #include "mingw32-config.h"
#endif
because of
Code: [Select]
+ make ufomodel Q= -B -j4
mkdir -p release-mingw32-i386/ufomodel/tools/ufomodel/ release-mingw32-i386/ufomodel/tools/ufomodel/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/shared/ release-mingw32-i386/ufomodel/common/ release-mingw32-i386/ufomodel/common/ release-mingw32-i386/ufomodel/common/ release-mingw32-i386/ufomodel/common/ release-mingw32-i386/ufomodel/common/ release-mingw32-i386/ufomodel/client/renderer/ release-mingw32-i386/ufomodel/client/renderer/ release-mingw32-i386/ufomodel/client/renderer/ release-mingw32-i386/ufomodel/client/renderer/ release-mingw32-i386/ufomodel/client/renderer/ release-mingw32-i386/ufomodel/ports/windows/
touch release-mingw32-i386/ufomodel/.dirs
===> CXX [ufomodel] src/tools/ufomodel/ufomodel.cpp
"g++" -msse -mfpmath=sse -mtune=k8-sse3 -O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -fgcse-lm -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns2 -fstrict-overflow -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -msse4a -mfpmath=sse -mieee-fp -fno-strict-aliasing --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -DHAVE_CONFIG_H -g -Winline -Wcast-qual -Wcast-align -Wmissing-declarations -Wpointer-arith -Wno-long-long -pedantic -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wreturn-type -Wwrite-strings -Wno-variadic-macros -DNDEBUG -DSHARED_EXT=\"dll\" -DGETTEXT_STATIC -DWINVER=0x501 -ffast-math -D_FORTIFY_SOURCE=2 -DNDEBUG -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -Wnon-virtual-dtor -DCOMPILE_MAP -D_GNU_SOURCE=1 -Dmain=SDL_main -IF:/UFOAIwin32BUILDenv/MinGW/include/SDL -c -o release-mingw32-i386/ufomodel/tools/ufomodel/ufomodel.cpp.o src/tools/ufomodel/ufomodel.cpp -MP -MD -MT release-mingw32-i386/ufomodel/tools/ufomodel/ufomodel.cpp.o
===> CXX [ufomodel] src/tools/ufomodel/md2.cpp
"g++" -msse -mfpmath=sse -mtune=k8-sse3 -O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -fgcse-lm -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns2 -fstrict-overflow -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -msse4a -mfpmath=sse -mieee-fp -fno-strict-aliasing --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -DHAVE_CONFIG_H -g -Winline -Wcast-qual -Wcast-align -Wmissing-declarations -Wpointer-arith -Wno-long-long -pedantic -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wreturn-type -Wwrite-strings -Wno-variadic-macros -DNDEBUG -DSHARED_EXT=\"dll\" -DGETTEXT_STATIC -DWINVER=0x501 -ffast-math -D_FORTIFY_SOURCE=2 -DNDEBUG -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -Wnon-virtual-dtor -DCOMPILE_MAP -D_GNU_SOURCE=1 -Dmain=SDL_main -IF:/UFOAIwin32BUILDenv/MinGW/include/SDL -c -o release-mingw32-i386/ufomodel/tools/ufomodel/md2.cpp.o src/tools/ufomodel/md2.cpp -MP -MD -MT release-mingw32-i386/ufomodel/tools/ufomodel/md2.cpp.o
===> CXX [ufomodel] src/shared/mathlib.cpp
"g++" -msse -mfpmath=sse -mtune=k8-sse3 -O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -fgcse-lm -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns2 -fstrict-overflow -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -msse4a -mfpmath=sse -mieee-fp -fno-strict-aliasing --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -DHAVE_CONFIG_H -g -Winline -Wcast-qual -Wcast-align -Wmissing-declarations -Wpointer-arith -Wno-long-long -pedantic -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wreturn-type -Wwrite-strings -Wno-variadic-macros -DNDEBUG -DSHARED_EXT=\"dll\" -DGETTEXT_STATIC -DWINVER=0x501 -ffast-math -D_FORTIFY_SOURCE=2 -DNDEBUG -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -Wnon-virtual-dtor -DCOMPILE_MAP -D_GNU_SOURCE=1 -Dmain=SDL_main -IF:/UFOAIwin32BUILDenv/MinGW/include/SDL -c -o release-mingw32-i386/ufomodel/shared/mathlib.cpp.o src/shared/mathlib.cpp -MP -MD -MT release-mingw32-i386/ufomodel/shared/mathlib.cpp.o
===> CXX [ufomodel] src/shared/aabb.cpp
"g++" -msse -mfpmath=sse -mtune=k8-sse3 -O1 -fthread-jumps -falign-functions -falign-jumps -falign-loops -falign-labels -fcaller-saves -fcrossjumping -fcse-skip-blocks -fdelete-null-pointer-checks -fexpensive-optimizations -fgcse-lm -foptimize-sibling-calls -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec -fschedule-insns2 -fstrict-overflow -ftree-pre -ftree-vrp -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -msse4a -mfpmath=sse -mieee-fp -fno-strict-aliasing --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -DHAVE_CONFIG_H -g -Winline -Wcast-qual -Wcast-align -Wmissing-declarations -Wpointer-arith -Wno-long-long -pedantic -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wreturn-type -Wwrite-strings -Wno-variadic-macros -DNDEBUG -DSHARED_EXT=\"dll\" -DGETTEXT_STATIC -DWINVER=0x501 -ffast-math -D_FORTIFY_SOURCE=2 -DNDEBUG -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -Wnon-virtual-dtor -DCOMPILE_MAP -D_GNU_SOURCE=1 -Dmain=SDL_main -IF:/UFOAIwin32BUILDenv/MinGW/include/SDL -c -o release-mingw32-i386/ufomodel/shared/aabb.cpp.o src/shared/aabb.cpp -MP -MD -MT release-mingw32-i386/ufomodel/shared/aabb.cpp.o
In file included from src/tools/ufomodel/../../shared/shared.h:32:0,
                 from src/tools/ufomodel/md2.cpp:4:
src/tools/ufomodel/../../shared/../../config.h:15:28: fatal error: mingw64-config.h: No such file or directory
compilation terminated.
make: *** [release-mingw32-i386/ufomodel/tools/ufomodel/md2.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/tools/ufomodel/../../shared/shared.h:32:0,
                 from src/tools/ufomodel/ufomodel.cpp:28:
src/tools/ufomodel/../../shared/../../config.h:15:28: fatal error: mingw64-config.h: No such file or directory
compilation terminated.
make: *** [release-mingw32-i386/ufomodel/tools/ufomodel/ufomodel.cpp.o] Error 1
In file included from src/shared/../common/../shared/shared.h:32:0,
                 from src/shared/../common/common.h:30,
                 from src/shared/mathlib.cpp:27:
src/shared/../common/../shared/../../config.h:15:28: fatal error: mingw64-config.h: No such file or directory
compilation terminated.
make: *** [release-mingw32-i386/ufomodel/shared/mathlib.cpp.o] Error 1
+ exit 2