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

Cjdns fails to build on Raspberry Pi 2 #88

Closed
Shnatsel opened this issue Nov 28, 2015 · 16 comments
Closed

Cjdns fails to build on Raspberry Pi 2 #88

Shnatsel opened this issue Nov 28, 2015 · 16 comments

Comments

@Shnatsel
Copy link

It appears to be failing on "Running test EncodingScheme_testTIMEOUT" and builds successfully with "NO_TEST=1".

Full build log: http://pastebin.ubuntu.com/13536784/

Tested on master from https://github.com/cjdelisle/cjdns/, RPi 2, Raspbian Jessie

@koalalorenzo
Copy link

Same problem for me!
This is my output: http://pastebin.com/YmwZ2L9p

@koalalorenzo
Copy link

I still can't access, but apparently cjdns was compiled for ARMv7 and it is working with http://archlinuxarm.org/

Probably some dependencies are missing or some libraries are not updated.

@koalalorenzo
Copy link

I have been trying to build it using gcc 4.7, 4.8 and 4.9. on All of them it seems to fail for a timeout during testing. Still using Raspbian Jessie.

I have also tried with "./cross-do", it compiles but it is not able to connect returning this error: http://pastebin.com/akKwNJtp

I really would like to understand how to get cjdns on Raspbian Jessie, for Raspberry Pi 2 (ARMv7) since other distribution were able to. Nobody seems to care.

@koalalorenzo
Copy link

It seems to be related to #6

@Shnatsel
Copy link
Author

Shnatsel commented Dec 5, 2015

NO_TEST=1 Seccomp_NO=1 ./do

this works as a temporary workaround for both this issue and #6

@Kubuxu
Copy link

Kubuxu commented Dec 5, 2015

Can someone of you show result of

sudo zcat /proc/config.gz | grep CONFIG_SECCOMP_FILTER

and also uname -a.

@Shnatsel
Copy link
Author

Shnatsel commented Dec 5, 2015

$ sudo zcat /proc/config.gz
gzip: /proc/config.gz: No such file or directory

$ uname -a
Linux raspberrypi 4.1.12-v7+ #824 SMP PREEMPT Wed Oct 28 16:46:35 GMT 2015 armv7l GNU/Linux

If you find any way to get the kernel config on Raspberry Pi please let me know, because we also need it for #6

@Kubuxu
Copy link

Kubuxu commented Dec 5, 2015

It might be also in /boot/. If not then manual kernel compilation guide.

@Kubuxu
Copy link

Kubuxu commented Dec 5, 2015

Here is the config: https://github.com/raspberrypi/linux/blob/rpi-4.1.y/arch/arm/configs/bcm2709_defconfig

There is CONFIG_SECCOMP=y but no CONFIG_SECCOMP_FILTER=y which might be a cose a problem.

@Shnatsel
Copy link
Author

Shnatsel commented Dec 5, 2015

There is /boot/config.txt but it's not kernel configuration, it's this: https://ncry.pt/p/YpBn#HpPNrZgtWJm-cTL4rc1jFmGDY1_UcfPPtUSnP7mVFq8

@Kubuxu
Copy link

Kubuxu commented Dec 5, 2015

It is duplicate of #6 it should be closed on a benefit of older issue.

@Shnatsel
Copy link
Author

Shnatsel commented Dec 5, 2015

No. #6 is about SECCOMP failing, this is about a timed test failing. It still fails if I disable SECCOMP but leave tests enabled.

@Shnatsel
Copy link
Author

Shnatsel commented Dec 5, 2015

Build still fails with ./clean Seccomp_NO=1 ./do, so this is NOT a dupe of #6 after all.

@koalalorenzo
Copy link

So, It will compile and it seems to work correctly (even the tests) by running Seccomp_NO=1 ./do

I will probably take care of another guide, suggesting to recompile the kernel to enble the feature.

@koalalorenzo
Copy link

I agree with @Kubuxu we should probably close this and report in the other Issue

@Kubuxu
Copy link

Kubuxu commented Jan 19, 2016

Copy of #6.

@Kubuxu Kubuxu closed this as completed Jan 19, 2016
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