You are not logged in.

#1 2008-04-13 16:16:07

kilyx
Member
Registered: 2007-11-01
Posts: 18

Compilation troubles

Hi,I'm trying to compile mangos but I have some problems:

First problem i've encountered involved INT_MAX and i've solved downgrading gcc to 4.2.3-1

here's the second problem

g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crti.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtendS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crtn.o: No such file or directory
make[4]: *** [libZThread.la] Error 1
make[4]: Leaving directory `/home/valerio/mangos/dep/src/zthread'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/valerio/mangos/dep/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/valerio/mangos/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/valerio/mangos'
make: *** [all] Error 2

Hope someone could help
thanks and sorry for the english

Offline

#2 2008-04-13 17:50:05

brebs
Member
Registered: 2007-04-03
Posts: 3,066

Re: Compilation troubles

Show the first error message.

If that is the first, then try "make -j1" rather than "make".

Offline

#3 2008-04-13 19:04:55

kilyx
Member
Registered: 2007-11-01
Posts: 18

Re: Compilation troubles

The first error was about a non declarated variable called 'INT_MAX' but i'm solved it.

Offline

#4 2008-04-13 19:40:54

brebs
Member
Registered: 2007-04-03
Posts: 3,066

Re: Compilation troubles

No, I mean, is this really the first error line:

g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crti.o: No such file or directory

Offline

#5 2008-04-13 19:58:57

kilyx
Member
Registered: 2007-11-01
Posts: 18

Re: Compilation troubles

here's all the output

 make  all-recursive
make[1]: Entering directory `/home/valerio/mangos'
Making all in dep
make[2]: Entering directory `/home/valerio/mangos/dep'
Making all in include
make[3]: Entering directory `/home/valerio/mangos/dep/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/valerio/mangos/dep/include'
Making all in lib
make[3]: Entering directory `/home/valerio/mangos/dep/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/valerio/mangos/dep/lib'
Making all in src
make[3]: Entering directory `/home/valerio/mangos/dep/src'
Making all in g3dlite
make[4]: Entering directory `/home/valerio/mangos/dep/src/g3dlite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/valerio/mangos/dep/src/g3dlite'
Making all in sockets
make[4]: Entering directory `/home/valerio/mangos/dep/src/sockets'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/valerio/mangos/dep/src/sockets'
Making all in zlib
make[4]: Entering directory `/home/valerio/mangos/dep/src/zlib'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/valerio/mangos/dep/src/zlib'
Making all in zthread
make[4]: Entering directory `/home/valerio/mangos/dep/src/zthread'
/bin/sh ../../../libtool --tag=CXX   --mode=link g++  -DENABLE_RA -DENABLE_CLI -
DDO_MYSQL -g -O2 -version-info 2:3:2  -o libZThread.la -rpath /home/valerio/mang
os/lib AtomicCount.lo Condition.lo ConcurrentExecutor.lo CountingSemaphore.lo Fa
stMutex.lo FastRecursiveMutex.lo Mutex.lo RecursiveMutexImpl.lo RecursiveMutex.l
o Monitor.lo PoolExecutor.lo PriorityCondition.lo PriorityInheritanceMutex.lo Pr
iorityMutex.lo PrioritySemaphore.lo Semaphore.lo SynchronousExecutor.lo Thread.l
o ThreadedExecutor.lo ThreadImpl.lo ThreadLocalImpl.lo ThreadQueue.lo Time.lo Th
readOps.lo  -lpthread
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../
../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtbeginS.o  .libs/AtomicCount.o
.libs/Condition.o .libs/ConcurrentExecutor.o .libs/CountingSemaphore.o .libs/Fas
tMutex.o .libs/FastRecursiveMutex.o .libs/Mutex.o .libs/RecursiveMutexImpl.o .li
bs/RecursiveMutex.o .libs/Monitor.o .libs/PoolExecutor.o .libs/PriorityCondition                                                                             .o .libs/PriorityInheritanceMutex.o .libs/PriorityMutex.o .libs/PrioritySemaphor                                                                             e.o .libs/Semaphore.o .libs/SynchronousExecutor.o .libs/Thread.o .libs/ThreadedE                                                                             xecutor.o .libs/ThreadImpl.o .libs/ThreadLocalImpl.o .libs/ThreadQueue.o .libs/T                                                                             ime.o .libs/ThreadOps.o   -lpthread -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.0 -L/us                                                                             r/lib/gcc/i686-pc-linux-gnu/4.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc                                                                             /i686-pc-linux-gnu/4.3.0/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../..                                                                             /crtn.o    -Wl,-soname -Wl,libZThread.so.0 -o .libs/libZThread.so.0.2.3
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crti.o: No such file or direc                                                                             tory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/crtendS.o: No such file or directory
g++: /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crtn.o: No such file or direc                                                                             tory
make[4]: *** [libZThread.la] Error 1
make[4]: Leaving directory `/home/valerio/mangos/dep/src/zthread'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/valerio/mangos/dep/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/valerio/mangos/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/valerio/mangos'
make: *** [all] Error 2

Last edited by kilyx (2008-04-13 20:00:54)

Offline

#6 2008-04-14 15:46:54

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: Compilation troubles

did you remember to to `make clean` before recompiling?

Offline

#7 2008-04-14 16:35:24

kilyx
Member
Registered: 2007-11-01
Posts: 18

Re: Compilation troubles

kumico wrote:

did you remember to to `make clean` before recompiling?

yes,same problem sad

Offline

#8 2008-04-14 20:05:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Compilation troubles

You are having this problem because you are using gcc 4.2.3 with gcc-libs 4.3.0. Update gcc to 4.3.0 and post the error message you were getting about INT_MAX.

Offline

#9 2008-04-14 22:09:54

kilyx
Member
Registered: 2007-11-01
Posts: 18

Re: Compilation troubles

here's the log with gcc 4.3.0

.....

mv -f .deps/CoordModelMapping.Tpo .deps/CoordModelMapping.Po
g++ -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/mysql  -I../../../src/shared -I. -I./../../../dep/include -I./../../framework -I./../../shared -I./../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT DebugCmdLogger.o -MD -MP -MF .deps/DebugCmdLogger.Tpo -c -o DebugCmdLogger.o DebugCmdLogger.cpp
mv -f .deps/DebugCmdLogger.Tpo .deps/DebugCmdLogger.Po
g++ -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/mysql  -I../../../src/shared -I. -I./../../../dep/include -I./../../framework -I./../../shared -I./../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT ManagedModelContainer.o -MD -MP -MF .deps/ManagedModelContainer.Tpo -c -o ManagedModelContainer.o ManagedModelContainer.cpp
mv -f .deps/ManagedModelContainer.Tpo .deps/ManagedModelContainer.Po
g++ -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/mysql  -I../../../src/shared -I. -I./../../../dep/include -I./../../framework -I./../../shared -I./../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT ModelContainer.o -MD -MP -MF .deps/ModelContainer.Tpo -c -o ModelContainer.o ModelContainer.cpp
mv -f .deps/ModelContainer.Tpo .deps/ModelContainer.Po
g++ -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/mysql  -I../../../src/shared -I. -I./../../../dep/include -I./../../framework -I./../../shared -I./../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT SubModel.o -MD -MP -MF .deps/SubModel.Tpo -c -o SubModel.o SubModel.cpp
mv -f .deps/SubModel.Tpo .deps/SubModel.Po
g++ -DHAVE_CONFIG_H -I. -I../../..  -I/usr/include/mysql  -I../../../src/shared -I. -I./../../../dep/include -I./../../framework -I./../../shared -I./../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT TileAssembler.o -MD -MP -MF .deps/TileAssembler.Tpo -c -o TileAssembler.o TileAssembler.cpp
TileAssembler.cpp: In member function 'bool VMAP::TileAssembler::readRawFile(std::string&, VMAP::ModelPosition&, G3D::AABSPTree<VMAP::SubModel*>*)':
TileAssembler.cpp:377: error: 'INT_MAX' was not declared in this scope
make[4]: *** [TileAssembler.o] Error 1
make[4]: Leaving directory `/home/valerio/mangos/src/shared/vmap'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/valerio/mangos/src/shared'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/valerio/mangos/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/valerio/mangos'
make: *** [all] Error 2

Offline

#10 2008-04-14 22:41:05

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Compilation troubles

For INT_MAX you need to add "#include <climits>" to the source file

Offline

Board footer

Powered by FluxBB