View previous topic :: View next topic |
Author |
Message |
Lazy
Joined: 01 Jul 2005 Posts: 8
|
Posted: Sun Sep 18, 2005 3:59 Post subject: Compiling Linux version |
|
|
I try to
1) configure
2) make
Fails...
sh configure
configure: loading cache /dev/null
/dev/null: line 1: configure:: command not found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for bzero... yes
checking for getspnam... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating db/Makefile
config.status: creating mnx/Makefile
config.status: creating functions/Makefile
config.status: creating hashset/Makefile
config.status: creating config.h
config.status: config.h is unchanged
make
g++ -c -o nwnx2lib.o nwnx2lib.cpp
nwnx2lib.cpp: In function 'void enable_write(long unsigned int)':
nwnx2lib.cpp:330: error: cast from 'char*' to 'int' loses precision
make: *** [nwnx2lib.o] Error 1
Using 2 AMD Opteron 248's x64 mandrake
Linux localhost 2.6.13.1 #1 SMP Thu Sep 15 10:27:19 EDT 2005 x86_64 AMD Opteron(tm) Processor 248 unknown GNU/Linux
gcc version 4.0.1
Any ideas? |
|
Back to top |
|
|
odenien
Joined: 26 Sep 2005 Posts: 37
|
Posted: Tue Sep 27, 2005 16:28 Post subject: |
|
|
what version of nwnx do you have? Line #330 is not in the enable_write function in the 2.5.3 linux version. With problems in int, you might be hitting the 64bit compiler and not the 32bit one.
calling g++ -v will give you all of the predefined compiler options plus the important --libdir. Whether it is pointing to /usr/lib, /usr/lib32 or usr/lib64. If the latter then you know you have the wrong settings. The first entry or second mean you have to may have a 32bit env. The default on x64 compilers is to generate 64bit code, unless you add the -m32 flag. |
|
Back to top |
|
|
Lazy
Joined: 01 Jul 2005 Posts: 8
|
Posted: Thu Sep 29, 2005 16:55 Post subject: |
|
|
odenien wrote: | what version of nwnx do you have? Line #330 is not in the enable_write function in the 2.5.3 linux version. With problems in int, you might be hitting the 64bit compiler and not the 32bit one.
calling g++ -v will give you all of the predefined compiler options plus the important --libdir. Whether it is pointing to /usr/lib, /usr/lib32 or usr/lib64. If the latter then you know you have the wrong settings. The first entry or second mean you have to may have a 32bit env. The default on x64 compilers is to generate 64bit code, unless you add the -m32 flag. |
Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag . |
|
Back to top |
|
|
MaestroNL
Joined: 02 Jan 2005 Posts: 1 Location: Nieuw Vennep, The Netherlands
|
Posted: Sat Oct 29, 2005 11:06 Post subject: |
|
|
Quote: | Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag . |
For SuSE 10.0 on Athlon 64 bit installs this works:
"march=athlon -m32" _________________ -----------------------------------------------
Linux is voor types zonder sociaal leven! |
|
Back to top |
|
|
Veleno
Joined: 02 Jan 2006 Posts: 2 Location: Italy
|
Posted: Mon Jan 02, 2006 14:33 Post subject: |
|
|
MaestroNL wrote: | Quote: | Powerblade, one of our developers got it to compile with "-march=i386 -m32" flag . |
For SuSE 10.0 on Athlon 64 bit installs this works:
"march=athlon -m32" |
sorry, where to put this option?
I'm trying to execute ./configure but i receive an error message like :
Quote: | C compiler cannot create executables |
So i asked for vi config.log in witch i found an error like:
Quote: | error: CPU you selected does not support x86-64 instruction set
|
i'm using a Fedora 4 64 bit on a Dell Poweredge Xeon EM 64
May someone help me please?
i'm italian , sorry for my english
i hope you undestand
Last edited by Veleno on Tue Jan 03, 2006 2:52; edited 1 time in total |
|
Back to top |
|
|
cieciwa
Joined: 09 Aug 2005 Posts: 33 Location: Cracov, Poland
|
Posted: Mon Jan 02, 2006 21:55 Post subject: |
|
|
Veleno wrote: |
sorry, where to put this option?
I'm trying to execute ./configure but i receive an error message like :
Quote: | C compiler cannot create executables |
|
look at file named config.log
and look for package gcc-objc or gcc-c++ .. |
|
Back to top |
|
|
Veleno
Joined: 02 Jan 2006 Posts: 2 Location: Italy
|
Posted: Thu Jan 05, 2006 2:28 Post subject: |
|
|
really i'm sorry but i don't find the right way... may you help me please?
_________________ http://www.teamsolaria.it |
|
Back to top |
|
|
Lazy
Joined: 01 Jul 2005 Posts: 8
|
|
Back to top |
|
|
|