-
Notifications
You must be signed in to change notification settings - Fork 47
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
mips/mipsel support #10
Comments
Hi, So I went through and found libevent_config/event2/event-config.h I dropped this at the bottom;
Seemed to get past the above errors, although I'm not really sure if the size values are correct. Then I ran in to this;
|
So I searched my system for sctp.h and found it on /usr/include/netinet/sctp.h -# include <netinet/sctp.h> in openssl/crypto/bio/bss_dgram.c I'm not proud, but it got me a little further...
go-libtor/openssl/crypto/bn/bn_dh.c Line 479 in 7eb60e4
|
I tried to hack some C, but it's not going to work out - maybe you have a better idea of what's needed. |
Just saw this issue. So, the way I've been generating the correct constants is to manually build all the dependencies on the target hardware and then see what values the local make process generates. Then incorporate those into the pre-configured templates. |
Hi,
Just been playing around trying to get a mips build to work from a cross-compiled from x86 vua a musl buildchain tooling - arm/armel static builds work great this way.
I'm using the tools found on http://musl.cc/
I seem to be getting some errors thrown from libevent and wondered if there was a way to quick-hack this?
So I try;
CC=mips-linux-musl-gcc CXX=mips-linux-musl-g++ CGO_ENABLED=1 GOOS=linux GOARCH=mips go build -a -ldflags '-w -extldflags "-static"' -v
and this fails;
Any ideas? C is not my forte, but it looks like a default catch-all on an elseif.
I've had help building tor for mips before, so I know it's possible - would just be cool to get this CGO version working!
The text was updated successfully, but these errors were encountered: