PDA

View Full Version : Can't compile r318



Chr!x
February 22nd, 2011, 18:43
Hi.

Just for your information, I can't compile last revision. Here is some problems :


C:\Documents and Settings\Propriétaire\Bureau\keeperfx\keeperfx>mingw32-make ALL
'Building file: src/main.cpp'
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/main.d" -MT"obj/main.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/main.o" "src/main.cpp"
In file included from src/version.h:31:0,
from src/globals.h:46,
from src/keeperfx.hpp:22,
from src/main.cpp:8:
src/../obj/ver_defs.h:1:1: warning: character constant too long for its type
src/../obj/ver_defs.h:2:1: warning: character constant too long for its type
src/../obj/ver_defs.h:3:1: warning: character constant too long for its type
src/../obj/ver_defs.h:4:1: warning: character constant too long for its type
src/../obj/ver_defs.h:5:1: warning: character constant too long for its type
src/../obj/ver_defs.h:1:1: error: expected unqualified-id before '\x20202030'
In file included from src/keeperfx.hpp:22:0,
from src/main.cpp:8:
src/globals.h:147:16: error: expected declaration before end of line
mingw32-make: *** [obj/main.o] Error 1

mefistotelis
February 22nd, 2011, 18:59
what do you get when you type "echo --version" from the console?

Chr!x
February 22nd, 2011, 19:21
Sorry for this dummy question, but which console ? Can you be more concrete ? Dos box ?

Edit : Seems working fine with r319

mefistotelis
February 22nd, 2011, 19:29
The same console you run mingw in.

It's not really fixed. I just hidden the problem (again). It's annoying one.

Chr!x
February 22nd, 2011, 19:41
The same console you run mingw in.

So, CMD => (console Dos).

echo -- version display "--version". Not very surprising :) Pure DOS batching. Any other thing you want I test with r318 ? I still get separate sources in differente place than r319.

mefistotelis
February 22nd, 2011, 19:57
So, CMD => (console Dos).
I don't really follow you. But it doesn't matter.


echo -- version display "--version". Not very surprising :)
Actually, it is. With MinGW installed, you should have 'echo.exe' in PATH variable. And this one would display its version.

Please check if you have echo.exe in MinGW or MSYS (MSYS is usually installed with MinGW, in same folder, just deeper).

I think I'll have to prepare a series of dummy Makefile files for you to test.

Chr!x
February 22nd, 2011, 20:01
May be you wants "mingw32-make --version" result ?


C:\Documents and Settings\Propriétaire\Bureau\keeperfx319\keeperfx>mingw32-make --version
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

---------- Post added at 21:01 ---------- Previous post was at 20:59 ----------


I think I'll have to prepare a series of dummy Makefile files for you to test.
I'm your man :) You still have my email address ?

mefistotelis
February 22nd, 2011, 20:27
I'm having problems finding it.

Have you checked if there's 'echo.exe' in MinGW subfolders? Or anywhere else?

Chr!x
February 22nd, 2011, 20:32
Any file call echo.exe exist on my HDD. Sorry :(

Please, wait a minute, I'm reinstall mingw with last remote package + MSYS + MSYS toolkit... May be...

Edit. Result : echo.Exe was include inside MSYS package. Now, here is what it said :


C:\MinGW\msys\1.0\bin>echo.exe --version
echo (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by FIXME unknown.

mefistotelis
February 22nd, 2011, 20:57
Try including it in PATH and compiling the problematic revision (r318).

I hope this 'echo' will always work properly.

Chr!x
February 22nd, 2011, 21:32
* Add echo.exe folder to PATH


C:\Documents and Settings\Propriétaire\Bureau\keeperfx318\keeperfx>set path
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v 1.0;C:\Program Files\TortoiseSVN\bin;C:\MinGW\bin;C:\MinGW\msys\1 .0\bin

Compiling. Same problem than first message.


Test for compiling r320. Result :


Generating: obj/ver_defs.h
mv -f "obj/tmp" "obj/ver_defs.h"

Building file: src/main.cpp
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/main.d" -MT"obj/main.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/main.o" "src/main.cpp"
Finished building: src/main.cpp

Building file: src/bflib_base_tcp.cpp
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_base_tcp.d" -MT"obj/bflib_base_tcp.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_base_tcp.o" "src/bfli
b_base_tcp.cpp"
Finished building: src/bflib_base_tcp.cpp

Building file: src/bflib_client_tcp.cpp
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_client_tcp.d" -MT"obj/bflib_client_tcp.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_client_tcp.o" "sr
c/bflib_client_tcp.cpp"
Finished building: src/bflib_client_tcp.cpp

Building file: src/bflib_dernc.c
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_dernc.d" -MT"obj/bflib_dernc.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_dernc.o" "src/bflib_dernc.c
"
Finished building: src/bflib_dernc.c

Building file: src/bflib_fileio.c
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_fileio.d" -MT"obj/bflib_fileio.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_fileio.o" "src/bflib_file
io.c"
Finished building: src/bflib_fileio.c

Building file: src/bflib_memory.c
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_memory.d" -MT"obj/bflib_memory.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_memory.o" "src/bflib_memo
ry.c"
Finished building: src/bflib_memory.c

Building file: src/bflib_datetm.c
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_datetm.d" -MT"obj/bflib_datetm.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_datetm.o" "src/bflib_date
tm.c"
Finished building: src/bflib_datetm.c

Building file: src/bflib_basics.c
g++ -I"directx/include" -I"sdl/include" -c -fmessage-length=0 -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-strict-aliasing -MM
D -MP -MF"obj/bflib_basics.d" -MT"obj/bflib_basics.d" -march=pentium -O3 -DBFDEBUG_LEVEL=0 -o"obj/bflib_basics.o" "src/bflib_basi
cs.c"
src/bflib_basics.c:427:42: error: too many decimal points in number
src/bflib_basics.c: In function 'int LbLog(TbLog*, const char*, char*)':
src/bflib_basics.c:427:42: error: expected ')' before numeric constant
src/bflib_basics.c:427:107: warning: too many arguments for format
mingw32-make: *** [obj/bflib_basics.o] Error 1

mefistotelis
February 22nd, 2011, 21:54
and could you paste content of the the "obj/ver_defs.h" after compiling r320?

Chr!x
February 22nd, 2011, 21:58
obj/ver_defs.h :

#define VER_MAJOR 0
#define VER_MINOR 3
#define VER_RELEASE 8
#define VER_BUILD 315
#define VER_STRING 0.3.8.315

mefistotelis
February 22nd, 2011, 22:05
Now, we're getting closer to a solution.

The only thing that is missing are quotes around version in last line. I will try to fix it tomorrow.

Chr!x
February 22nd, 2011, 22:12
Again, I'm your man ^_^ !

I'll compile next "Makefile war" episode as soon as it'll be available on the air ;)

mefistotelis
February 23rd, 2011, 18:57
Next "episode" is out.

Chr!x
February 23rd, 2011, 19:59
War is over ?

Check theses warning, but .EXE & .DLL are generated by compilator :



src/bflib_network.cpp:1669:16: warning: 'TbError GenericTCPInit(_GUID)' defined but not used
src/frontmenu_net.c: In function 'void frontnet_draw_current_message(GuiButton*)':
src/frontmenu_net.c:666:13: warning: the address of 'text' will always evaluate as 'true'
C:\MinGW\bin\dlltool.exe: Path components stripped from dllname, 'bin/keeperfx.dll'.