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

Bug#730830: ocaml: Please add powerpcspe to the list of native architectures



Hi,

On 30/11/13 08:27, Stéphane Glondu wrote:
> Le 29/11/2013 23:48, Roland Stigge a écrit :
>> please add powerpcspe to the list of native architectures. I.e., add
>> "powerpcspe" to:
>>
>> * debian/native-archs
>> * debian/natdynlink-archs
>> * debian/control
>>
>> similar as powerpc.
>>
>> I'm attaching a patch that fixes an asm build problem on powerpcspe since some
>> CPU registers don't exist on powerpcspe, so they can't be saved and restored.
> 
> Aren't those registers also used by generated code?

The registers can't be used since they don't exist and the assembler
would show errors if someone would try to use them. Now (with my patch),
the assembler doesn't show errors anymore.

> Does ocamlopt
> produce working executables with this patch? Does the whole test-suite pass?

The package builds fine, including successful dh_auto_test target.
Please tell what else I should run as test-suite.

>> Further, please add libiberty-dev to the build-deps since this prevents a build
>> error.
> 
> Why?

Because it fails to build otherwise, e.g.:

dh_ocaml -Xcompiler-libs -Xcamlp4-extra \
	 --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
	 --checksum 3.12.1
BFD library unavailable, cannot print info on .cmxs files
E: Error running OCAMLLIB=tools boot/ocamlrun tools/objinfo on
debian/ocaml-base-nox/usr/lib/ocaml/unix.cmxs

dh_ocaml: /usr/bin/ocaml-md5sums  --checksum 3.12.1 --package ocaml-nox
--version 3.12.1-4+powerpcspe1 --runtime ocaml-base-nox  --dump-info
debian/ocaml-nox.oinfo.debhelper --dump-provides
debian/ocaml-nox.oprovides.debhelper compute <
debian/ocaml-nox.olist.debhelper >
debian/ocaml-nox//var/lib/ocaml/md5sums/ocaml-nox.md5sums returned exit
code 2
make[1]: *** [override_dh_gencontrol] Error 2
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [binary] Error 2

I just checked that the same FTBFS bug is present on amd64 also.

Thanks in advance,

Roland


Reply to: