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

Re: sys/cdefs.h on mips

On Tue, Oct 21, 2014 at 07:48:14AM +0200, Yann Dirson wrote:
> Hello,
> The new tau package fails to build on mips because it does not find
> sys/cdefs.h.  Looks like all other archs have that header in the
> default build environment, but for mips it seems to require
> libc6-dev-mips64, which is probably not indended for 32bit targets.

MIPS also have <sys/cdefs.h> in /usr/include/<multiarch>/sys/cdefs.h by
libc-6-dev like any other architectures. The problem there is that the
build is forced to 64 bits via -mabi=64. In that case the 64-bit headers
provided by libc6-dev-mips64 should be installed.

> What do you suggest ?
> https://buildd.debian.org/status/package.php?p=tau&suite=unstable
> https://packages.debian.org/search?searchon=contents&keywords=sys%2Fcdefs.h&mode=path&suite=unstable&arch=mips

Providing a 64-bit binary for a 32-bit architecture is not a good idea,
the best would be to disable this -mabi=64 in the build.

Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

Reply to: