[OpenAFS] question about openafs 1.8.2 on aarch64
Gary Gatling
gsgatlin@ncsu.edu
Thu, 14 Feb 2019 06:32:10 -0500
--000000000000fbdae60581d9025f
Content-Type: text/plain; charset="UTF-8"
That worked to make it compile. I will try to test it on arm system later
today. Thanks for your help!
On Wed, Feb 13, 2019 at 11:03 PM Benjamin Kaduk <kaduk@mit.edu> wrote:
> On Wed, Feb 13, 2019 at 10:31:32PM -0500, Gary Gatling wrote:
> > Hi. Thanks so much for replying. I was actually looking at this again
> > tonight, for some odd reason I can't explain.
> >
> > It was so stupid. I did not set the sysname. I have added:
> >
> > %ifarch aarch64
> > %define sysname aarch64_linux26
>
> I think you want "arm64_linux26" -- see src/config/param.arm64_linux26.h
>
> -Ben
>
> > %endif
> >
> >
> > I get a different error now:
> >
> > echo 'char* AFSVersion = "openafs '$VERSION'";'
> > >>AFS_component_version_number.c.NEW && \
> > if cmp AFS_component_version_number.c.NEW AFS_component_version_number.c
> >
> > /dev/null 2>&1 ; then : ; else \
> > mv AFS_component_version_number.c.NEW AFS_component_version_number.c ;
> fi )
> > rm -f AFS_component_version_number.c.NEW
> > make[4]: Leaving directory
> > '/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config'
> > gcc -g -O -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config
> > -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I. -o
> > config.o -c config.c
> > gcc -g -O -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config
> > -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I. -o mc.o
> -c
> > mc.c
> > gcc -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib
> > -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O -g -O
> > -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config
> > -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I. -o
> config
> > config.o mc.o
> > gcc -g -O -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config
> > -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.
> > -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib
> > -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O \
> > -o mkvers ./mkvers.c
> > make[3]: *** No rule to make target 'param.aarch64_linux26.h', needed by
> > 'param.h.new'. Stop.
> > make[3]: Leaving directory
> > '/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config'
> > make[2]: *** [Makefile:146: config] Error 2
> > make[2]: Leaving directory '/home/gsgatlin/redhat/BUILD/openafs-1.8.2'
> > make[1]: *** [Makefile:650: build] Error 2
> > make[1]: Leaving directory '/home/gsgatlin/redhat/BUILD/openafs-1.8.2'
> > make: *** [Makefile:35: all_nolibafs] Error 2
> > error: Bad exit status from /var/tmp/rpm-tmp.ZbdvPL (%build)
> >
> > Any idea what that means? :)
> >
> > *** No rule to make target 'param.aarch64_linux26.h', needed by
> > 'param.h.new'. Stop.
> >
> > I am running this inside qemu on a intel dell laptop.
> >
> > Thanks a lot for any ideas you might have. I can upload any makefiles to
> > pastebin.
> >
> >
> >
> > On Wed, Feb 13, 2019 at 9:55 PM Benjamin Kaduk <kaduk@mit.edu> wrote:
> >
> > > On Wed, Feb 13, 2019 at 08:11:44AM -0500, Gary Gatling wrote:
> > > > Hello.
> > > >
> > > > When I try to compile openafs on fedora 29 on x86_64 it works fine
> but
> > > when
> > > > I try to compile openafs on fedora 29 on aarch64 I get an error:
> > > >
> > > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/hcrypto
> > > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/opr
> > > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/lib
> > > > cd src && cd config && make all
> > > > make[3]: Entering directory
> > > '/builddir/build/BUILD/openafs-1.8.2/src/config'
> > > > make[3]: Leaving directory
> > > '/builddir/build/BUILD/openafs-1.8.2/src/config'
> > > > Makefile:68: *** mixed implicit and normal rules. Stop.
> > > > make[2]: *** [Makefile:146: config] Error 2
> > > > make[2]: Leaving directory '/builddir/build/BUILD/openafs-1.8.2'
> > > > make[1]: Leaving directory '/builddir/build/BUILD/openafs-1.8.2'
> > > > make[1]: *** [Makefile:650: build] Error 2
> > > > make: *** [Makefile:35: all_nolibafs] Error 2
> > > > error: Bad exit status from /var/tmp/rpm-tmp.B61XCV (%build)
> > > >
> > > > I get this error on RHEL 8 beta (aarch64) also in "mock."
> > > >
> > > > Has anyone else run into this before? Was just curious if there was a
> > > known
> > > > solution. The problem seems to be in the Makefile on line 68 with
> "mixed
> > > > implicit and normal rules" although maybe that is not the real
> problem?
> > >
> > > Hi Gary,
> > >
> > > I don't recall haring about such errors previously. The direct
> debugging
> > > techniques would seem to require examining the apparently problematic
> > > Makefile; would you be able to post the generated src/config/Makefile
> > > somewhere?
> > >
> > > Thanks,
> > >
> > > Ben
> > >
>
--000000000000fbdae60581d9025f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">That worked to make it compile. I will try to test it on a=
rm system later today. Thanks for your help!</div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Feb 13, 2019 at 11:03 P=
M Benjamin Kaduk <<a href=3D"mailto:kaduk@mit.edu">kaduk@mit.edu</a>>=
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, =
Feb 13, 2019 at 10:31:32PM -0500, Gary Gatling wrote:<br>
> Hi. Thanks so much for replying. I was actually looking at this again<=
br>
> tonight, for some odd reason I can't explain.<br>
> <br>
> It was so stupid. I did not set the sysname. I have added:<br>
> <br>
> %ifarch aarch64<br>
> %define sysname aarch64_linux26<br>
<br>
I think you want "arm64_linux26" -- see src/config/param.arm64_li=
nux26.h<br>
<br>
-Ben<br>
<br>
> %endif<br>
> <br>
> <br>
> I get a different error now:<br>
> <br>
> echo 'char* AFSVersion =3D "openafs '$VERSION'";=
'<br>
> >>AFS_component_version_number.c.NEW && \<br>
> if cmp AFS_component_version_number.c.NEW AFS_component_version_number=
.c ><br>
> /dev/null 2>&1 ; then : ; else \<br>
> mv AFS_component_version_number.c.NEW AFS_component_version_number.c ;=
fi )<br>
> rm -f AFS_component_version_number.c.NEW<br>
> make[4]: Leaving directory<br>
> '/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config'<br>
> gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
> -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o<br>
> config.o -c config.c<br>
> gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
> -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o mc.o -c<br>
> mc.c<br>
> gcc=C2=A0 =C2=A0-L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib<br>
> -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O=C2=A0 =C2=A0 =C2=
=A0-g -O<br>
>=C2=A0 -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config<br>
> -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o config<br>
> config.o mc.o<br>
> gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
> -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.<br>
>=C2=A0 -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib<br>
> -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O=C2=A0 =C2=A0\<br=
>
> -o mkvers ./mkvers.c<br>
> make[3]: *** No rule to make target 'param.aarch64_linux26.h',=
needed by<br>
> 'param.h.new'.=C2=A0 Stop.<br>
> make[3]: Leaving directory<br>
> '/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config'<br>
> make[2]: *** [Makefile:146: config] Error 2<br>
> make[2]: Leaving directory '/home/gsgatlin/redhat/BUILD/openafs-1.=
8.2'<br>
> make[1]: *** [Makefile:650: build] Error 2<br>
> make[1]: Leaving directory '/home/gsgatlin/redhat/BUILD/openafs-1.=
8.2'<br>
> make: *** [Makefile:35: all_nolibafs] Error 2<br>
> error: Bad exit status from /var/tmp/rpm-tmp.ZbdvPL (%build)<br>
> <br>
> Any idea what that means?=C2=A0 :)<br>
> <br>
> *** No rule to make target 'param.aarch64_linux26.h', needed b=
y<br>
> 'param.h.new'.=C2=A0 Stop.<br>
> <br>
> I am running this inside qemu on a intel dell laptop.<br>
> <br>
> Thanks a lot for any ideas you might have. I can upload any makefiles =
to<br>
> pastebin.<br>
> <br>
> <br>
> <br>
> On Wed, Feb 13, 2019 at 9:55 PM Benjamin Kaduk <<a href=3D"mailto:k=
aduk@mit.edu" target=3D"_blank">kaduk@mit.edu</a>> wrote:<br>
> <br>
> > On Wed, Feb 13, 2019 at 08:11:44AM -0500, Gary Gatling wrote:<br>
> > > Hello.<br>
> > ><br>
> > > When I try to compile openafs on fedora 29 on x86_64 it work=
s fine but<br>
> > when<br>
> > > I try to compile openafs on fedora 29 on aarch64 I get an er=
ror:<br>
> > ><br>
> > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/hcrypto=
<br>
> > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/opr<br>
> > > mkdir -p /builddir/build/BUILD/openafs-1.8.2/lib<br>
> > > cd src && cd config && make all<br>
> > > make[3]: Entering directory<br>
> > '/builddir/build/BUILD/openafs-1.8.2/src/config'<br>
> > > make[3]: Leaving directory<br>
> > '/builddir/build/BUILD/openafs-1.8.2/src/config'<br>
> > > Makefile:68: *** mixed implicit and normal rules.=C2=A0 Stop=
.<br>
> > > make[2]: *** [Makefile:146: config] Error 2<br>
> > > make[2]: Leaving directory '/builddir/build/BUILD/openaf=
s-1.8.2'<br>
> > > make[1]: Leaving directory '/builddir/build/BUILD/openaf=
s-1.8.2'<br>
> > > make[1]: *** [Makefile:650: build] Error 2<br>
> > > make: *** [Makefile:35: all_nolibafs] Error 2<br>
> > > error: Bad exit status from /var/tmp/rpm-tmp.B61XCV (%build)=
<br>
> > ><br>
> > > I get this error on RHEL 8 beta (aarch64) also in "mock=
."<br>
> > ><br>
> > > Has anyone else run into this before? Was just curious if th=
ere was a<br>
> > known<br>
> > > solution. The problem seems to be in the Makefile on line 68=
with "mixed<br>
> > > implicit and normal rules" although maybe that is not t=
he real problem?<br>
> ><br>
> > Hi Gary,<br>
> ><br>
> > I don't recall haring about such errors previously.=C2=A0 The=
direct debugging<br>
> > techniques would seem to require examining the apparently problem=
atic<br>
> > Makefile; would you be able to post the generated src/config/Make=
file<br>
> > somewhere?<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Ben<br>
> ><br>
</blockquote></div>
--000000000000fbdae60581d9025f--