[Soc-coordination] [GSoC 2014] Improve Debian port on mips/mipsel: Report

Plamen Aleksandrov plamen at aomeda.com
Wed Jun 18 15:49:48 UTC 2014


Here is what I have done so far on the project "Improve Debian port on mips/mipsel".


At the beginning I spent some time setting up my environment. I created 3 MIPS virtual machines because the compilation is painfully slow and that way I can work on one machine while the others are compiling.

I created a list of the packages that don't compile with description of the problems of each package. I'm using this list in my work. I'm sending the most recent version of it as an attachment.

I found a security problem with the Linux 3.2 kernel. I sent a report and several days later it was fixed.
linux-image-3.2.0-4-5kc-malta: no SIGKILL after prctl(PR_SET_SECCOMP, 1, ...) on MIPS
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751417
I also reported this problem in the kernel's site.

Here are the other resolved bugs:

minidlna: doesn't compile with the new ffmpeg library on mips
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751011

While working on libldm I found an issue with endian.h in libc6-dev. I fixed the package and also reported the problem as a libc6-dev bug. I expected to start a discussion with this report but still nobody has responded.

libldm: fails to compile on mips and mipsel
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751410

libc6-dev: endian.h macros don't always return the correct type
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751409

For the bugs below I have uploaded patches but I'm still waiting for a response:

bibletime: FTBFS when rebuilt against libsword10
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748685

xiphos: FTBFS: error: ftptrans.h: No such file or directory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747784

// this is the same bug as above
xiphos: doesn't compile on mips
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751023

routino: does not compile on mips
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751022

libffado: does not compile on mips
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751228

rhmessaging: does not compile on mips
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751383

--

I'm working on several other packages. Here are the ones that I have some progress with:

ck: fails to compile on MIPS
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750998

I fixed the compilation problem of ck but the package contains tests that still can't compile. It looks like the tests use features unsupported by gcc on MIPS. I'll have a definitive answer soon.

liblinux-prctl-perl - With the fix of #751417 this package should compile. I'm going to test it with the fixed kernel and I'll report the results.

seed - The version of readline was not compatible with seed. To fix this I modified seed so that it can work with the corresponding readline version. This was not the only problem so I'm working on fixing the others.

urwid - One of the tests fails in the build logs but everything works on my system. I believe there is a race condition in the package but I'm still not certain.

python-pysam - I'm working on it. I fixed most of the warnings, but still I can't compile it.

--

I found that some of the packages don't compile because they are not designed to work on MIPS:

lierolibre - works only on i386 and amd64
https://buildd.debian.org/status/package.php?p=lierolibre&suite=sid

openmprtl - works only on i386 and amd64
https://buildd.debian.org/status/package.php?p=openmprtl&suite=sid

skimage - works only on little endian because of how it uses cython and python-numpy:
http://cython.readthedocs.org/en/latest/src/tutorial/numpy.html "data types describing data which is not in the native endian will likely never be supported"
https://buildd.debian.org/status/package.php?p=skimage&suite=sid


Plamen Alexandrov
-------------- next part --------------
X - unsupported architecture
? - unknown
OK - compiled
PRO - in the process of fixing
WOR - compiles without changes (working)
REP - bug reported by somebody
NR - not reproducable (issues a different error)

PACKAGE								LANGUAGE		RES	ERROR DESCRIPTION

Failed:
libscalar-number-perl				perl				test fails
openvas-client-dfsg					c					Makefile; patch available
eris								c++					gcc version-specific problem
kiwix								c++					type PRUint32 not found
ioapps								c					uses "rdtsc" assembly instruction
janest-core							ocaml				"The signature constrained by `with' has no component named binable"
ogre								c++					boost linking problem (probably fixed in a newer version)
rapicorn							c++					size_t is not 64 bits
plplot								c++,etc				Makefile
drift								haskell				dpkg rules file
varnish-agent						c					dpkg rules file
vmkit								?					Makefile
libtext-kakasi-perl					perl			?	test error // perl frontend for kakasi; probably kakasi doesn't work on mips in the 分かち書き format
libscrypt							c					endian detection not working (can be fixed with a macro)
routino								c				OK	zlib not found
pyfftw								c					libfftw3l doesn't exist because "double" and "long double" are the same type
root-system							c					header not found because it was moved since ruby 2.0
fence-agents						?python				dependency missing; patch available
pdl									perl			?	test fails // math computation language; big endian bug
xiphos								c++				OK	header not found
abinit								fortran				"Cannot assign to a named constant"
bibletime							c++				OK	header not found
telepathy-logger-qt					?					generated symbols are not as expected
twinkle								c++					dependency missing; patch available

Build-Attempted:
rhmessaging							c++				OK	endian problem
thepeg								c++					class not found; cannot allocate memory
ghdl								c					macro not visible
freefoam							c++					path to compiled file does not match
lierolibre							c++				X	unknown architecture
phantomjs							c++					type definition not visible
libldm								c				OK	-Werror=shadow
mrpt								c++					internal compiler error: Segmentation fault
lhasa								c					test error
brise								c++					bus error
cuneiform							c,c++				OCR test error
haskell-src-exts					haskell				line-map.c: file "<command-line>" left but not entered
cde									c					-Wunused-variable
haskell-nettle						haskell				test error
htslib								c					test error
ocamlgsl							ocaml				"Architectures with double-word alignment for doubles are not supported"
openmprtl							perl			X	unsupported architecture
sra-sdk								c					Makefile
seqan								c++					cannot allocate memory
cpp-netlib							c++					cannot allocate memory
mod-gnutls							c					(apache module) test error
liblinux-prctl-perl					perl			*	kernel bug; mut work with the fixed kernel
openvdb								c++					compiler killed
openni								c++					unknown architecture
pymia								python			?	ImportError // medical image recognition software; probably library version mismatch
quantlib-swig						c++					cannot allocate memory
ldc									c					undefined identifier va_list
ncl									c					unknown type 'intn' (probably macro not expanded)
skimage								python			X	test error // image library; load/save file problem; 'NoneType' object is not callable (on big endian) // http://cython.readthedocs.org/en/latest/src/tutorial/numpy.html (data types describing data which is not in the native endian will likely never be supported)
nqp									parrot				"No STable at index 16777216"
ruby-patron							ruby				rspec segmentation fault
ns3									c++					"Caught signal ‘Terminated’: terminating immediately"
openvswitch							c					configure strange error
python-pysam						c,python		NR	test errors: file not found (should be created by a patch), memory error; lists differ
openwalnut							c++					"Caught signal ‘Terminated’: terminating immediately"
deal.ii								c++					"internal compiler error: Killed (program cc1plus)"
cpl-plugin-xshoo					c					test error
openturns							python				not enough memory
litecoin							c++					test error: checksum mismatch
mod-proxy-msrpc						c					(apache module) test error
ck									c				X	?gcc __sync_bool_compare_and_swap not supported on mips
acpica-unix							c					iASL not supported on big endian
sssd								c					test error
flexpart							fortran				"unknown output-sync type '2'"
minidlna							c				OK	undefined macro CODEC_ID_MSMPEG4V3
openttd								c++					test script died (probably endian problem)
pyzmq								python			?	libzmq bug: Assertion failed: pfd.revents & POLLIN (signaler.cpp:193)
magics++							c++					configure strange error
urwid								python			WOR	test error (maybe a race condition)
ardour3								c++					"internal compiler error: Terminated"
percona-xtradb-cluster-galera-2.x	c					undefined reference to __sync_fetch_and_add_8
nwchem								c					test error
percona-xtradb-cluster-5.5			c++					-fpermissive invalid conversion from 'const my_pthread_fastmutex_t*' to 'my_pthread_fastmutex_t*'
libvigraimpex						c++					not enough memory to run tests (exception: std::bad_alloc)
libguestfs							c,ocaml				"No RedBoot partition table detected in physmap-flash.0"
golly								c++					cannot find -lwx_gtk2u_webview-3.0
subtle								?					"rake aborted!"
ngraph-gtk							?					XDG_RUNTIME_DIR not set in the environment
liblog4ada							ada					?
seed								?				*	'Function' undeclared
ocaml-ctypes						ocaml				"Not supported in your configuration: ocamlopt"
webkitgtk							c++					'docs-build.stamp' failed
psi4								c					test error
libffado							python			OK	/proc/cpuinfo value may contain : (which was not considered in the code) // SConstruct:517
liblucy-perl						perl			?	test error; too slow to test
cgminer								c					macro problems
nodejs								javascript			test error
enblend-enfuse						c++					?
colord								c					bus error
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/soc-coordination/attachments/20140618/ad32345e/attachment.sig>


More information about the Soc-coordination mailing list