[Parted-maintainers] Bug#286462: FTBFS in experimental

Sven Luther Sven Luther <sven.luther@wanadoo.fr>, 286462@bugs.debian.org
Mon, 20 Dec 2004 14:11:25 +0100


On Mon, Dec 20, 2004 at 12:48:12PM +0100, Andreas Barth wrote:
> Package: parted
> Version: 1.6.20-0.exp.1
> Severity: serious
> Tags: experimental
> 
> Automatic build of parted_1.6.20-0.exp.1 on freyja by sbuild/alpha 1.170.5
> Build started at 20041220-1231
> ******************************************************************************
> Checking available source versions...
> Fetching source files...
> Reading Package Lists...
> Building Dependency Tree...
> Need to get 1520kB of source archives.
> Get:1 ftp://linux.mathematik.tu-darmstadt.de experimental/main parted 1.6.20-0.exp.1 (dsc) [951B]
> Get:2 ftp://linux.mathematik.tu-darmstadt.de experimental/main parted 1.6.20-0.exp.1 (tar) [1438kB]
> Get:3 ftp://linux.mathematik.tu-darmstadt.de experimental/main parted 1.6.20-0.exp.1 (diff) [81.3kB]
> Fetched 1520kB in 1s (1271kB/s)
> Download complete and in download only mode
...
> if /bin/sh ../libtool --mode=compile alpha-linux-gcc -DHAVE_CONFIG_H -I. -I../../libparted -I.. -I../../include     -g -O2 -D_REENTRANT -D_FILE_OFFSET_BITS=no -DLOCALEDIR="\"/usr/share/locale\"" -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wno-unused -Wno-switch -Wno-format -Werror -MT disk_amiga.lo -MD -MP -MF ".deps/disk_amiga.Tpo" -c -o disk_amiga.lo ../../libparted/disk_amiga.c; \
> then mv -f ".deps/disk_amiga.Tpo" ".deps/disk_amiga.Plo"; else rm -f ".deps/disk_amiga.Tpo"; exit 1; fi
>  alpha-linux-gcc -DHAVE_CONFIG_H -I. -I../../libparted -I.. -I../../include -g -O2 -D_REENTRANT -D_FILE_OFFSET_BITS=no -DLOCALEDIR=\"/usr/share/locale\" -DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wno-unused -Wno-switch -Wno-format -Werror -MT disk_amiga.lo -MD -MP -MF .deps/disk_amiga.Tpo -c ../../libparted/disk_amiga.c  -fPIC -DPIC -o .libs/disk_amiga.o
> ../../libparted/disk_amiga.c: In function `amiga_write':
> ../../libparted/disk_amiga.c:732: warning: cast from pointer to integer of different size
> ../../libparted/disk_amiga.c:732: warning: cast from pointer to integer of different size
> ../../libparted/disk_amiga.c:732: warning: cast from pointer to integer of different size
> ../../libparted/disk_amiga.c:732: warning: cast from pointer to integer of different size
> make[4]: *** [disk_amiga.lo] Error 1
> make[4]: Leaving directory `/build/buildd/parted-1.6.20/build-deb/libparted'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/build/buildd/parted-1.6.20/build-deb/libparted'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/build/buildd/parted-1.6.20/build-deb'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/parted-1.6.20/build-deb'
> make: *** [build-deb/build-stamp] Error 2
> ******************************************************************************
> Build finished at 20041220-1237
> FAILED [dpkg-buildpackage died]

Oh, damn, this seems to be a 64bit problem. What wonders me is why this causes
problem, while the exact same code was present in 1.6.19 and 1.6.11 in
sarge/sid. Mmm, i think Andrew rewrote some of that stuff, so maybe he broke
it, let me check ...

Can you try replacing :

rdb->rdb_PartitionList = PED_CPU_TO_BE32(part ? part_num : LINK_END);

by : 

if (part == NULL) rdb->rdb_PartitionList = PED_CPU_TO_BE32(LINK_END);
else rdb->rdb_PartitionList = PED_CPU_TO_BE32(part_num);

And see if it fixes this build problem for you ? 

Friendly,

Sven Luther