Port-sparc64 archive

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

Re: rust on sparc64



On Sun, Aug 2, 2020 at 5:16 PM Greg Troxel <gdt%lexort.com@localhost> wrote:
>
> Connor McLaughlan <cont6pro3%gmail.com@localhost> writes:
>
> > Maybe someone can help me building rust on sparc64 with pkgsrc-2020Q2:
>
> I am far from an expert but some clues that may be helpful, with some
> probability that some are confused and will lead you astray.
>
>   - you didn't state 8/9/current, and with 8/9 if release or stable.
>
>   - you didn't clearly state that if you are using pkgsrc-2020Q2 that
>     all packages are up-to-date with the branch.  this is the default
>     assumption but it comes up a lot.  I'm not saying it's your problem
>     but I like to take it off the table
>
>   - rust uses binary bootstraps, they have been getting built for
>     netbsd-8, so one bootstrap can work on 8/9/current
>
>   - openssl comes in base, and in pkgsrc.  I am not sure that the shlib
>     versions relate to each other.  8 has 1.0 and thus pkgsrc (2020Q1
>     and later?) forces pkgsrc to get 1.1.  9/current have new enough
>     that (today) pkgsrc is ok with it.
>
>   - There is an emulators/compat80 package.  This puts the libs that are
>    on 8 but not on 9 in /emul someplace so that binares for 8 can run on 9.
>    If you had 8 and upgraded, they would still be there.
>
>   - the rust bootstrap may be built against pkgsrc openssl from when it
>     was built.    Find the binary and run objdump and ldd.
>
>   - make a chart of /usr/lib/libssl and /usr/pkg/libssl versions.
>     perhaps go looking for openssl from 2020Q1, and from when the
>     bootstrap was built
>
>
> You may ask why rust on 9 doesn't depend on the emulation package.  That
> would be a very good question....
>
>
> > So I went ahead and compiled openssl (had to disable des on sparc64
> > which throwed errors for "m4 -B 8192",  but m4 has no option "-B").
> > openssl install a libssl.so.1.1
>
> openssl 1.1.1 installs that on netbsd-8/amd64.
>
> > When i compile rust now, it complains about a missing libssl.so.12
> > which i don't understand why the missing library version changed from
> > so.27 to so.12.
>
> Interesting, but 12 is the major from 8.
>
> > My current libssl files in the system:
> >
> > bash-5.0# locate libssl.so
> > /usr/lib/libssl.so
> > /usr/lib/libssl.so.14
> > /usr/lib/libssl.so.14.0
> > /usr/lib/sparc/libssl.so
> > /usr/lib/sparc/libssl.so.14
> > /usr/lib/sparc/libssl.so.14.0
> > /usr/pkg/lib/libssl.so
> > /usr/pkg/lib/libssl.so.1.1
>
> On a system that I think was 7, definitely was 8 and definitely is 9:
>
> lrwxr-xr-x  1 root  wheel       14 Aug 26  2017 /usr/lib/libssl.so.10 -> libssl.so.10.6
> -r--r--r--  1 root  wheel   448299 Apr  3  2017 /usr/lib/libssl.so.10.6
> lrwxr-xr-x  1 root  wheel       14 Apr 18 15:13 /usr/lib/libssl.so.12 -> libssl.so.12.0
> -r--r--r--  1 root  wheel   528248 Apr 18 15:12 /usr/lib/libssl.so.12.0
> lrwxr-xr-x  1 root  wheel       14 Apr 19 13:20 /usr/lib/libssl.so.14 -> libssl.so.14.0
> -r--r--r--  1 root  wheel   644816 Apr 19 13:18 /usr/lib/libssl.so.14.0
>
> probably I did an update along  8, and then an update a day later to 9
>
> So looks like you are on 9.
>
> Try emulators/compat_80.  If that fails, get  the libssl.so.12 from the
> releasse sets  and put it in place (but do not change any files that are
> in 9!).

Sorry, i am running 9 STABLE with a clean pkgsrc-2020Q2, building
everything from there.

I have now installed compat_80 as suggested and rust-1.43.1nb1 started
to compile without the error.

So i guess the error should pop up on all architectures when using a
fresh NetBSD 9 install that has not seen NetBSD 8 before l?

Regards,
Connor


Home | Main Index | Thread Index | Old Index