[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC: kgb -- Archiver for .kgb files (doesn't work on non-32bits archs, changes made to address that issue)



Hi Raphael,

On Sat, 2008-04-05 at 20:19 -0600, Raphael Geissert wrote:
> This package is already in the archive, and I have DM upload rights for it.
> A few days ago I noticed this package doesn't work on non 32bits
> architectures so I've done a few changes to the package.
> 
> The relevant part of changelog of the next upload is:
> 
>  * debian/test.sh: add a simple test suite to be run at the build target
>  * debian/control: Build-Depend on gcc-multilib
>    + Not building 64bits bins as the code is designed for 32bits archs
> 
> The changes I made, as suggested by Goswin von Brederlow, until I get it to
> work on non 32bits archs were:
> 
> adding a Build-Depends: gcc-multilib [amd64 kfreebsd-amd64 ppc64]
> calling gcc with -m32
 Your package has some problems. It FTBFS on my x86_64 arch:
dh_testdir
g++ -Wall -fno-strict-aliasing -m32 -O3 -gstabs -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o kgb kgb_arch_posix_by_slawek.cpp
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [kgb] Error 1

Removing -m32 from CFLAGS make it compile, but the test assert on U32
size. I have commented that out, but your package can't be build again:
 debian/rules clean
debian/rules:36: warning: overriding commands for target `debian/stamp-patched'
/usr/share/quilt/quilt.make:16: warning: ignoring old commands for target `debian/stamp-patched'
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2 
Patch lfs.patch does not remove cleanly (refresh it or enforce with -f)
make: *** [unpatch] Error 1

What does upstream say about 64 bits support?

Regards,
Laszlo/GCS


Reply to: