Subject Core2 Duo, AMD64, EM64T support
Author David Ross
I'm currently using the classic version of firebird. I tried building
firebird-2.0.0.12748 on my machine for the superserver version but
resulted in failure. Classic builds just fine.


machine info:

Linux tsunomon 2.6.18-gentoo-r4 #2 SMP Sun Dec 17 03:56:47 AKST 2006
x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GNU/Linux


gcc info:
gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g
++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-altivec --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-multilib --disable-libmudflap
--disable-libssp --disable-libgcj --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)


installed glibc version:
* sys-libs/glibc
Latest version available: 2.4-r4
Latest version installed: 2.4-r3
Size of files: 15,711 kB
Homepage: http://www.gnu.org/software/libc/libc.html
Description: GNU libc6 (also called glibc2) C library



Here is what I did below:


./configure --enable-superserver

The Firebird2 package has been configured with the following options:

Architecture : SuperServer
Debug : disabled
64 bit I/O for 32-bit platforms : enabled
Raw devices : enabled
Service name : gds_db
Service port : 3050
GPRE modules : c_cxx.cpp

Install Dir : /usr/local/firebird


Compile error:

g++ -I../src/include/gen -I../src/include -I../src/vulcan
-I../extern/icu/source/common -I../extern/icu/source/i18n
-DNAMESPACE=Vulcan -ggdb -O3 -fno-omit-frame-pointer -DNDEBUG -DLINUX
-DAMD64 -pipe -MMD -fPIC -fmessage-length=0 -DPROD_BUILD
-c ../src/gpre/cob.cpp -o ../temp/std/gpre/cob.o
../src/gpre/../jrd/gds_proto.h:37: warning: large integer implicitly
truncated to unsigned type
../src/gpre/cob.cpp: In function 'void gen_event_init(const act*)':
../src/gpre/cob.cpp:2422: error: cast from 'gpre_nod*' to 'int' loses
precision
../src/gpre/cob.cpp: In function 'void gen_event_wait(const act*)':
../src/gpre/cob.cpp:2493: error: cast from 'gpre_nod*' to 'int' loses
precision
../src/gpre/cob.cpp: In function 'void gen_request(gpre_req*)':
../src/gpre/cob.cpp:3342: error: cast from 'gpre_req*' to 'int' loses
precision
../src/gpre/cob.cpp: In function 'void gen_type(const act*)':
../src/gpre/cob.cpp:3829: error: cast from 'ref*' to 'SLONG' loses
precision
make[2]: *** [../temp/std/gpre/cob.o] Error 1
make[2]: Leaving directory
`/home/tsume/Desktop/firebird-2.0.0.12748/gen'
make[1]: *** [client_gpre] Error 2
make[1]: Leaving directory
`/home/tsume/Desktop/firebird-2.0.0.12748/gen'
make: *** [firebird] Error 2