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

MIPS compilation?!? #434

Open
endertable opened this issue Dec 30, 2022 · 0 comments
Open

MIPS compilation?!? #434

endertable opened this issue Dec 30, 2022 · 0 comments

Comments

@endertable
Copy link

This is not really an issue but has anyone had success compiling for MIPS. I took the source code and did the following:

export GOARCH=mips
export GOMIPS=softfloat
export GOOS=linux
export CC=/compile/mips-gcc472-glibc216-32bit-r2.3.3/bin/mips-linux-gnu-gcc
##  (Also tried with mips-linux-uclibc-gnu-gcc since the device has uclibc)
make clean
make

It creates a websocketd binary but when I run it on the device I get:

./websocketd: line 1: syntax error: unexpected "("

When I run the 'file' command on it, I get:

websocketd: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, stripped

When I run the 'file' command on another working binary file on the system, I get:

hl_client: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, stripped

Thanks for any help...

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

1 participant