New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compile on FreeBSD targeting ARMv6 (Raspberry Pi) #848
Conversation
- use improved C++14 settings contributed by jbeich@ - correct LICENSE_FILES via mat@ and jbeich@ - fixes ARM build from PR#231335 - submitted by Vincent Milum <freebsd@darkain.com> - upstream zerotier/ZeroTierOne#848 Submitted by: Vincent Milum <freebsd@darkain.com> Reported by: jbeich Approved by: jrm (mentor) Obtained from: zerotier/ZeroTierOne#848 Differential Revision: https://reviews.freebsd.org/D16880 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@479671 35697150-7ecd-e111-bb59-0022644237b5
- use improved C++14 settings contributed by jbeich@ - correct LICENSE_FILES via mat@ and jbeich@ - fixes ARM build from PR#231335 - submitted by Vincent Milum <freebsd@darkain.com> - upstream zerotier/ZeroTierOne#848 Submitted by: Vincent Milum <freebsd@darkain.com> Reported by: jbeich Approved by: jrm (mentor) Obtained from: zerotier/ZeroTierOne#848 Differential Revision: https://reviews.freebsd.org/D16880
- use improved C++14 settings contributed by jbeich@ - correct LICENSE_FILES via mat@ and jbeich@ - fixes ARM build from PR#231335 - submitted by Vincent Milum <freebsd@darkain.com> - upstream zerotier/ZeroTierOne#848 Submitted by: Vincent Milum <freebsd@darkain.com> Reported by: jbeich Approved by: jrm (mentor) Obtained from: zerotier/ZeroTierOne#848 Differential Revision: https://reviews.freebsd.org/D16880 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@479671 35697150-7ecd-e111-bb59-0022644237b5
- use improved C++14 settings contributed by jbeich@ - correct LICENSE_FILES via mat@ and jbeich@ - fixes ARM build from PR#231335 - submitted by Vincent Milum <freebsd@darkain.com> - upstream zerotier/ZeroTierOne#848 Submitted by: Vincent Milum <freebsd@darkain.com> Reported by: jbeich Approved by: jrm (mentor) Obtained from: zerotier/ZeroTierOne#848 Differential Revision: https://reviews.freebsd.org/D16880 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@479671 35697150-7ecd-e111-bb59-0022644237b5
@darkain awesome, that compiles on armv6 but I can't get this to build on armv7 (only available in 12.0-CURRENT, but still)... I've tried sprinkling
|
Merged into |
@dch I currently only have physical boards for ARMv6, nothing for ARMv7. It might be best currently to entirely omit NEON support from the FreeBSD port for the time being. Over my free time this weekend, I'll try messing around with QEMU to see if I can get this to build and run on virtual ARM units, but I know those don't perfectly match real-world hardware. |
WALP, screw it. Amazon Prime free same-day shipping. I'll have a Pi 3B+ tonight to test both ARMv7 and ARMv8 builds on. |
- use improved C++14 settings contributed by jbeich@ - correct LICENSE_FILES via mat@ and jbeich@ - fixes ARM build from PR#231335 - submitted by Vincent Milum <freebsd@darkain.com> - upstream zerotier/ZeroTierOne#848 Submitted by: Vincent Milum <freebsd@darkain.com> Reported by: jbeich Approved by: jrm (mentor) Obtained from: zerotier/ZeroTierOne#848 Differential Revision: https://reviews.freebsd.org/D16880
Attempting to compile ZeroTier on FreeBSD on ARM platforms such as older Raspberry Pi units results in the following error message:
fails to link: Source object ext/arm32-neon-salsa2012-asm/salsa2012.o has EABI version 0, but target zerotier-one has EABI version 5
EABI information has been added for the assembler.
Additionally, ARMv6 doesn't support NEON, and it is optional on ARMv7. NEON support is provided by a precompiler directive, so now we check if it exists before including NEON support.
With these changes, ZeroTier compiles and runs perfectly on my Raspberry Pi Zero (using USB NIC)