Source: oaklisp
Version: 1.3.5-2
Severity: important

Hi,

The oaklist configure script fails on mips64el with:
> checking size of void *... 8
> configure: WARNING: non 32-bit pointer platform detected
> configure: trying to enabling 32-bit compilation mode
> checking size of void *... 0
> configure: WARNING: bad news, pointers are now 0 bytes
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking whether gcc understands -c and -o together... (cached) yes
> checking dependency style of gcc... (cached) none
> checking for a sed that does not truncate output... /bin/sed
> checking for indent... no
> checking for rubber... rubber
> checking stddef.h usability... no
> checking stddef.h presence... yes
> configure: WARNING: stddef.h: present but cannot be compiled
> configure: WARNING: stddef.h:     check for missing prerequisite headers?
> configure: WARNING: stddef.h: see the Autoconf documentation
> configure: WARNING: stddef.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: stddef.h: proceeding with the compiler's result
> configure: WARNING:     ## ------------------------------------- ##
> configure: WARNING:     ## Report this to bap+oakl...@debian.org ##
> configure: WARNING:     ## ------------------------------------- ##
> checking for stddef.h... no
> configure: error: required header file unavailable

This is caused by trying to use '-m32':
> configure:5718: checking stddef.h usability
> configure:5718: gcc -c -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -m32 -D_FORTIFY_SOURCE=2 conftest.c >&5
> gcc: error: unrecognized command line option '-m32'
> configure:5718: $? = 1

-m32 isn't a valid option to gcc on mips (or on arm64 or ia64[1]).
Although I'd really recommend against it, if you want to compile 32-bit
code on mips64, you need to pass something like '-march=mips2 -mabi=32'
to gcc.

Full build log:
http://mipsdebian.imgtec.com/debian/logs/o/oaklisp/oaklisp_1.3.5-2_mips64el-20150311-1754.gz

[1] https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html

Thanks,
James

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to