[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 &lt;<a href=3D"mailto:kaduk@mit.edu">kaduk@mit.edu</a>&gt;=
 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>
&gt; Hi. Thanks so much for replying. I was actually looking at this again<=
br>
&gt; tonight, for some odd reason I can&#39;t explain.<br>
&gt; <br>
&gt; It was so stupid. I did not set the sysname. I have added:<br>
&gt; <br>
&gt; %ifarch aarch64<br>
&gt; %define sysname aarch64_linux26<br>
<br>
I think you want &quot;arm64_linux26&quot; -- see src/config/param.arm64_li=
nux26.h<br>
<br>
-Ben<br>
<br>
&gt; %endif<br>
&gt; <br>
&gt; <br>
&gt; I get a different error now:<br>
&gt; <br>
&gt; echo &#39;char* AFSVersion =3D &quot;openafs &#39;$VERSION&#39;&quot;;=
&#39;<br>
&gt; &gt;&gt;AFS_component_version_number.c.NEW &amp;&amp; \<br>
&gt; if cmp AFS_component_version_number.c.NEW AFS_component_version_number=
.c &gt;<br>
&gt; /dev/null 2&gt;&amp;1 ; then : ; else \<br>
&gt; mv AFS_component_version_number.c.NEW AFS_component_version_number.c ;=
 fi )<br>
&gt; rm -f AFS_component_version_number.c.NEW<br>
&gt; make[4]: Leaving directory<br>
&gt; &#39;/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config&#39;<br>
&gt; gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
&gt; -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o<br>
&gt; config.o -c config.c<br>
&gt; gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
&gt; -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o mc.o -c<br>
&gt; mc.c<br>
&gt; gcc=C2=A0 =C2=A0-L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib<br>
&gt; -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O=C2=A0 =C2=A0 =C2=
=A0-g -O<br>
&gt;=C2=A0 -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config<br>
&gt; -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.=C2=A0 =C2=
=A0 =C2=A0 -o config<br>
&gt; config.o mc.o<br>
&gt; gcc=C2=A0 =C2=A0 -g -O=C2=A0 =C2=A0-I/home/gsgatlin/redhat/BUILD/opena=
fs-1.8.2/src/config<br>
&gt; -I/home/gsgatlin/redhat/BUILD/openafs-1.8.2/include -I. -I.<br>
&gt;=C2=A0 -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib<br>
&gt; -L/home/gsgatlin/redhat/BUILD/openafs-1.8.2/lib -g -O=C2=A0 =C2=A0\<br=
>
&gt; -o mkvers ./mkvers.c<br>
&gt; make[3]: *** No rule to make target &#39;param.aarch64_linux26.h&#39;,=
 needed by<br>
&gt; &#39;param.h.new&#39;.=C2=A0 Stop.<br>
&gt; make[3]: Leaving directory<br>
&gt; &#39;/home/gsgatlin/redhat/BUILD/openafs-1.8.2/src/config&#39;<br>
&gt; make[2]: *** [Makefile:146: config] Error 2<br>
&gt; make[2]: Leaving directory &#39;/home/gsgatlin/redhat/BUILD/openafs-1.=
8.2&#39;<br>
&gt; make[1]: *** [Makefile:650: build] Error 2<br>
&gt; make[1]: Leaving directory &#39;/home/gsgatlin/redhat/BUILD/openafs-1.=
8.2&#39;<br>
&gt; make: *** [Makefile:35: all_nolibafs] Error 2<br>
&gt; error: Bad exit status from /var/tmp/rpm-tmp.ZbdvPL (%build)<br>
&gt; <br>
&gt; Any idea what that means?=C2=A0 :)<br>
&gt; <br>
&gt; *** No rule to make target &#39;param.aarch64_linux26.h&#39;, needed b=
y<br>
&gt; &#39;param.h.new&#39;.=C2=A0 Stop.<br>
&gt; <br>
&gt; I am running this inside qemu on a intel dell laptop.<br>
&gt; <br>
&gt; Thanks a lot for any ideas you might have. I can upload any makefiles =
to<br>
&gt; pastebin.<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Wed, Feb 13, 2019 at 9:55 PM Benjamin Kaduk &lt;<a href=3D"mailto:k=
aduk@mit.edu" target=3D"_blank">kaduk@mit.edu</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; On Wed, Feb 13, 2019 at 08:11:44AM -0500, Gary Gatling wrote:<br>
&gt; &gt; &gt; Hello.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; When I try to compile openafs on fedora 29 on x86_64 it work=
s fine but<br>
&gt; &gt; when<br>
&gt; &gt; &gt; I try to compile openafs on fedora 29 on aarch64 I get an er=
ror:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/hcrypto=
<br>
&gt; &gt; &gt; mkdir -p /builddir/build/BUILD/openafs-1.8.2/include/opr<br>
&gt; &gt; &gt; mkdir -p /builddir/build/BUILD/openafs-1.8.2/lib<br>
&gt; &gt; &gt; cd src &amp;&amp; cd config &amp;&amp; make all<br>
&gt; &gt; &gt; make[3]: Entering directory<br>
&gt; &gt; &#39;/builddir/build/BUILD/openafs-1.8.2/src/config&#39;<br>
&gt; &gt; &gt; make[3]: Leaving directory<br>
&gt; &gt; &#39;/builddir/build/BUILD/openafs-1.8.2/src/config&#39;<br>
&gt; &gt; &gt; Makefile:68: *** mixed implicit and normal rules.=C2=A0 Stop=
.<br>
&gt; &gt; &gt; make[2]: *** [Makefile:146: config] Error 2<br>
&gt; &gt; &gt; make[2]: Leaving directory &#39;/builddir/build/BUILD/openaf=
s-1.8.2&#39;<br>
&gt; &gt; &gt; make[1]: Leaving directory &#39;/builddir/build/BUILD/openaf=
s-1.8.2&#39;<br>
&gt; &gt; &gt; make[1]: *** [Makefile:650: build] Error 2<br>
&gt; &gt; &gt; make: *** [Makefile:35: all_nolibafs] Error 2<br>
&gt; &gt; &gt; error: Bad exit status from /var/tmp/rpm-tmp.B61XCV (%build)=
<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I get this error on RHEL 8 beta (aarch64) also in &quot;mock=
.&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Has anyone else run into this before? Was just curious if th=
ere was a<br>
&gt; &gt; known<br>
&gt; &gt; &gt; solution. The problem seems to be in the Makefile on line 68=
 with &quot;mixed<br>
&gt; &gt; &gt; implicit and normal rules&quot; although maybe that is not t=
he real problem?<br>
&gt; &gt;<br>
&gt; &gt; Hi Gary,<br>
&gt; &gt;<br>
&gt; &gt; I don&#39;t recall haring about such errors previously.=C2=A0 The=
 direct debugging<br>
&gt; &gt; techniques would seem to require examining the apparently problem=
atic<br>
&gt; &gt; Makefile; would you be able to post the generated src/config/Make=
file<br>
&gt; &gt; somewhere?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Ben<br>
&gt; &gt;<br>
</blockquote></div>

--000000000000fbdae60581d9025f--