Bug#147500: [pkg-firebird-general] Bug#147500: firebird2 on sparc

Daniel Smolik marvin at mydatex.cz
Sun Mar 4 21:11:19 CET 2007


Daniel Smolik napsal(a):
> Emanuele Rocca napsal(a):
> 
>> Hello,
>>
>> * Damyan Ivanov <dam at modsoftsys.com>, [2006-09-15  9:15 +0300]:
>>
>>> Clint Adams -- 15.09.2006 07:50 --:
>>> > debian/patches/fix-mcpu-to-mtune.dpatch changes -mcpu=ultrasparc to
>>> > -march=ultrasparc.
>>> > > This is invalid and should be dropped altogether.
>>>
>>> Thank you for your interest for building firebird2 on sparc.
>>>
>>> The above patch snipplet was modelled around the changes for
>>> i386/amd64 and sort of blindly applied to sparc too. This is now
>>> removed in the pkg-firebird svn repository.
>>>
>>> Does firebird2 packages build on sparc after this change? If yes, I'll
>>> be glad to initiate an upload that adds sparc to the list of supported
>>> architectures.
>>
>>
>>
>> Now firebird builds correctly on sparc:
>> http://people.debian.org/~ema/firebird2_1.5.3.4870-12_sparc.build
>>
>> What I did was just dropping the -march=ultrasparc patch and adding
>> sparc to the list of supported architectures (see attached patch).
>>
>> ciao,
>>     ema
> 
> Hello,
> I am interseted to build firebird on Sparc too. But with attached patch 
> I haven't success. I mean that gcc options -march=ultrasparc  etc. mus 
> be completly disabled to property build on SPARC. But this patch don't 
> do this for me. I do:
> 
>  dpkg-source -x firebird2_1.5.3.4870-12.dsc
> dpkg-source: warning: extracting unsigned source package 
> (./firebird2_1.5.3.4870-12.dsc)
> dpkg-source: extracting firebird2 in firebird2-1.5.3.4870
> dpkg-source: unpacking firebird2_1.5.3.4870.orig.tar.gz
> dpkg-source: applying ./firebird2_1.5.3.4870-12.diff.gz
> patch -p1 < /home/marvin/firebird.patch
> But this says something abou reversly patch applied etc.
> If I by hand edit
> builds/posix/prefix.linux_sparc32
> 
> 
> 
> 
> # you may remove it if engine is getting compiled with any other GCC 
> version
> PROD_FLAGS=-m32  -O3 -DNDEBUG -DLINUX -pipe -MMD -fPIC -Dsparc
> DEV_FLAGS=-ggdb -m32 -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall 
> -Wno-switch -Dsparc
> 
> Now looks like this. And compilation starts and run.
> Any sugestions ?
> 
>                 Thanks
>                         Dan
> 
> 
> 
Hm,
that building fails with this:

  rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
make: *** [empty.fdb] Segmentation fault
make: *** Deleting file `empty.fdb'
:-(.
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=21568, ...}) = 0
mmap(NULL, 21568, PROT_READ, MAP_SHARED, 7, 0) = 0xf7bc4000
close(7)                                = 0
open("/usr/lib/gconv/ISO8859-2.so", O_RDONLY) = 7
read(7, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\4x"..., 
512) = 512
fstat64(7, {st_mode=S_IFREG|0644, st_size=9576, ...}) = 0
mmap(NULL, 73952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) 
= 0xf7bb0000
mprotect(0xf7bb2000, 65760, PROT_NONE)  = 0
mmap(0xf7bc0000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0) = 0xf7bc0000
close(7)                                = 0
mprotect(0xf7bc0000, 8192, PROT_READ)   = 0
write(2, "make: ", 6make: )                   = 6
write(2, "*** [empty.fdb] Segmentation fau"..., 34*** [empty.fdb] 
Segmentation fault) = 34
write(2, "\n", 1
)                       = 1
stat64("empty.fdb", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0

Dan




















More information about the pkg-firebird-general mailing list