Skip to content
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

Doesn't Build on Raspberry Pi3 Arch #601

Closed
Choco31415 opened this issue Oct 13, 2017 · 5 comments
Closed

Doesn't Build on Raspberry Pi3 Arch #601

Choco31415 opened this issue Oct 13, 2017 · 5 comments

Comments

@Choco31415
Copy link

I've tried searching Google and this repository's issues for anything similar. I've found nothing.

When I download this repo and run makepkg -si on it, I get this output:

make-linux.mk:162: *** FATAL: architecture could not be determined from gcc -dumpmachine: C_MACH. Stop.
==> ERROR: A failure occurred in build()
    Aborting...

Running gcc -dumpmachine yields:

armv7l-unknown-linux-gnueabihf

Looking at make-linux.mk, it appears armv7 is supported. armv7l stands for "ARMv7 VMSA Long Descriptor Translation Table Format", which adds extra features on top of armv7 for virtual machine usage docs. It appears my setup is supportable too.

@Choco31415 Choco31415 changed the title Doesn't Build on Raspberry Pi Arch Doesn't Build on Raspberry Pi3 Arch Oct 13, 2017
@laduke
Copy link
Contributor

laduke commented Oct 13, 2017

@Choco31415 What if you make linux ? Isn't makepkg -si for when you have an Arch Linux PKGBUILD ? Or use the curl | bash script on the downloads page?

I'm running this on a Pi3, but just using the curl | bash on raspbian. I've also used the arch package, but on x86.

@Choco31415
Copy link
Author

Choco31415 commented Oct 13, 2017

@laduke:

The download page curl/bash script points me to the Github repo:

*** Package installation failed! Unfortunately there may not be a package
*** for your architecture or distribution. For the source go to:
*** https://github.com/zerotier/ZeroTierOne

Yes, I was originally building from AUR. However, using make with the Github repo has the same error. make -f make-linux.mk fails, same error.

make linux fails differently:

make: *** No rule to make target 'linux'. Stop.

@laduke
Copy link
Contributor

laduke commented Oct 13, 2017

sorry, I was thinking about a different repo...
I meant make one, but I guess it does the same thing.

@Choco31415
Copy link
Author

Choco31415 commented Oct 13, 2017

The command generates a bunch of output, as with a usual make command; and ends with:

...
strip --strip-all zerotier-one
ln -sf zerotier-one zerotier-idtool
ln -sf zerotier-one zerotier-cli

Running make install and restarting shows that ZeroTier is installed.

Thank you laduke!

@zscorpio
Copy link

zscorpio commented May 6, 2018

It seems still not solved?
Linux centos-rpi3 4.9.80-v7.1.el7 #1 SMP Thu Mar 15 13:29:03 UTC 2018 armv7l armv7l armv7l GNU/Linux

make run

make-linux.mk:211: *** FATAL: architecture could not be determined from clang -dumpmachine: C_MACH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants