Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 19:09:39 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Michael Tuexen <tuexen@fh-muenster.de>
Cc:        Oleksandr Tymoshenko <gonzo@bluezbox.com>, freebsd-arm@freebsd.org, Ross Alexander <rwa@athabascau.ca>
Subject:   Re: Raspberry Pi 3 support
Message-ID:  <20161220000939.victk62w6mct2qb3@mutt-hardenedbsd>
In-Reply-To: <20161020160203.GB29944@mutt-hardenedbsd>
References:  <mailman.62.1476446401.6092.freebsd-arm@freebsd.org> <alpine.BSF.2.20.1610170004010.2176@autopsy.pc.athabascau.ca> <20161017140631.GA77580@mutt-hardenedbsd> <20161018194958.GC22296@mutt-hardenedbsd> <2BC88734-CF40-4702-9483-ADEBA23C11F2@bluezbox.com> <20161019002146.GA57025@mutt-hardenedbsd> <CACB0760-00C9-4A61-9334-9BEB01577D76@fh-muenster.de> <20161020160203.GB29944@mutt-hardenedbsd>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Oct 20, 2016 at 12:02:03PM -0400, Shawn Webb wrote:
> On Thu, Oct 20, 2016 at 05:57:06PM +0200, Michael Tuexen wrote:
> > > Cool! Thanks!
> > I followed the instructions in the Wiki with the difference that I had to go
> > via a file image. I successfully installed it on an SD card and booted the
> > RPI3. The only problem is that it misses an /usr/bin/ld although it has
> > /usr/bin/cc
> > 
> > Any idea what might went wrong?
> 
> Hey Michael,
> 
> You'll need to use the projects/clang390-import branch to bring in lld.
> lld will get installed as /usr/bin/ld.lld. You'll need to create a
> symlink (or hardlink) pointing /usr/bin/ld to /usr/bin/ld.lld.
> 
> I didn't document steps for the clang 3.9.0 / lld work mainly because
> it's extremely experimental and doesn't even work right at the moment.

Update on this:

FreeBSD HEAD now has clang/lld 3.9.1 in base. This fixes a couple
regressions. There's a new regression, though. clang/lld 3.9.1 creates a
relocation entry that isn't handled by the RTLD. The patch attached to
the linked bug[1] solves this problem.

I just found another regression. Compiling simple applications by hand
is fine (like a little hello world application). However, after
compiling and installing ports-mgmt/pkg and trying to run
`/usr/local/sbin/pkg info`, I get this error:

/usr/local/lib/libpkg.so: Undefined symbol "basename@FBSD_1.0"

But, `/usr/local/sbin/pkg-static info` works fine. So, time to track
down the basename issue. I think this is due to a recent-ish commit.

[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214971

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlhYdsEACgkQaoRlj1JF
bu4SXA/+JmNAQCG1Nt7WO3azzVBsig4PxXLEJrPfCL2YETrcYerWSl5mswmm/M+n
bDYlotL34pN56eF4Rwr5w0GIaYBxvHN9BvUwkd0ZdwwOyYGKMr7wWfyc2iog9MV4
u69HS6bEmkKXtR9CAQO33VHSK/ieEzoqxmSef+BM2NVLfo2o93qYNTKReVXVgI8w
oxcqb26MeSY8f8moP/MR21gddmiU6evdS3hVP8hF/mzlb2PZ9fCRmx32eINzQUcN
ftqnkpGUepX49wxJUK+BAGKQi6Avn6cX7ZbxBKNWGNJ9pD5zklfRE0XPrQXhTno4
mXtsLc6woSnUSGqKBh3ecmxrMqMeMvJ9AXNdFK38Qcr75wDv0ATeOW4XaWmHOf7I
cx10ItFJLwfyPgrybTjSHel9xHeJ5OUOeuJXVk7i69GN/yioZ90EUGZtutk4uC5b
mvJ2aB/pVax62vOukBQFKJ/STE3TI79Rbg1qPGdjfSvXz3v0FKIvtR/ZKQ85lokU
PhSm7Cp77947TZyGAeYDVxpNNuFkChLxMB2kxJMhBPkA+Qw8VR+UVofAturH2L+B
uHKuT97k3UA4gvvBTZC7wM/BQy7pZ+QJR1x8aztLXihq9Ac6Zk5F57xSTydwFNah
rktXFOsAJe7lYpP/lxw4vB6Go5tGzHhjgIUh04s2AZD+5i/2mCY=
=NM40
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161220000939.victk62w6mct2qb3>