[OpenAFS-devel] Re: 1.6. pre debian arm.
omalleys@msu.edu
omalleys@msu.edu
Mon, 10 Jan 2011 21:29:57 -0500
Quoting Andrew Deason <adeason@sinenomine.net>:
> On Mon, 10 Jan 2011 14:12:13 -0800
> Russ Allbery <rra@stanford.edu> wrote:
>
>> omalleys@msu.edu writes:
>>
>> > Im not sure this is going to make any difference but.
>>
>> > With
>> > ./configure --enable-transarc-paths --enable-supergroups
>> > --enable-warnings --disable-strip-binaries --enable-debug
>>
>> > checking for bison... bison -y
>> > checking if lex is flex... ./configure: line 6368: echo: write error:
>> > Broken pipe
>>
>> For what it's worth, 1.6.0pre1 built fine on Debian's armel
>> autobuilder, so it isn't something fundamentally broken with build
>> support on arm.
>
> And it's just "echo '' | $LEX --version". You could try running it
> manually and see what happens, for any lex-like thing you can find on
> the machine.
root@sheevaplug-debian:~# echo '' | flex --version
flex 2.5.35
bash: echo: write error: Broken pipe
root@sheevaplug-debian:~#
It looks like a bug in bash on arm. It worked with zsh and it worked
with bash an i586. :P It doesnt appear to be an alignment error! Unlike:
gcc -fPIC -g -O -I/mnta/openafs-pre1.6.0/openafs-1.6.0pre1/src/config
-I/mnta/openafs-pre1.6.0/openafs-1.6.0pre1/include -I. -I.
-D_LARGEFILE64_SOURCE -Wall -Wcast-align -Wstrict-prototypes
-Wold-style-definition -Wpointer-arith -Wall -Wstrict-prototypes
-Wold-style-definition -Werror -fdiagnostics-show-option
-Wpointer-arith -c cbc_encrypt.c
cc1: warnings being treated as errors
cbc_encrypt.c: In function ?des_cbc_encrypt?:
cbc_encrypt.c:67: error: cast increases required alignment of target
type [-Wcast-align]
make[3]: *** [cbc_encrypt.o] Error 1
make[3]: Leaving directory `/mnta/openafs-pre1.6.0/openafs-1.6.0pre1/src/des'
make[2]: *** [des] Error 2
>> > And im not sure why im checking pentium:
>>
>> > checking your AFS sysname... arm_linux26
>> > checking if gcc accepts -march=pentium... yes
>>
>> It didn't do this in the Debian autobuilder. Maybe because the Debian
>> package specifies the sysname directly?
>
> It should for the kernel module configure (isn't that a separate build
> for Debian packages?). This is OPENAFS_GCC_SUPPORTS_MARCH.
It looks like OPENAFS_GCC_SUPPORTS_MARCH is for i386/pentium only.
I don't see any ppc, alpha, mips, sparc or anything else along those
lines in the ac files.