Cross-compiling node.js for MIPS platform with SSL enabled

1,050 views
Skip to first unread message

Andrei Sedoi

unread,
Dec 24, 2012, 8:48:09 AM12/24/12
to nod...@googlegroups.com
I am trying to cross-compile node.js for MIPS platform with SSL enabled, but it's failing since there is no 'target_arch=="mips"' branch here: https://github.com/joyent/node/blob/master/deps/openssl/openssl.gyp#L900-L910   Can anyone add it or give advice on how to overcome this?

Ben Noordhuis

unread,
Dec 24, 2012, 10:09:16 AM12/24/12
to nod...@googlegroups.com
You probably don't have to tweak openssl.gyp, what you were looking at
is a bit of stale configuration (that I've removed in commit 6ecb0cd).

The relevant bits are in deps/openssl/config/opensslconf.h now; you'll
need to define the proper types for your architecture.

Andrei Sedoi

unread,
Jan 25, 2013, 9:39:00 AM1/25/13
to nod...@googlegroups.com
Hi Ben. Thanks for this. I am trying to compile node.js v0.8.18 with your changes applied (I created a patch for v0.8.18https://gist.github.com/4634756) and getting an error: ../deps/openssl/openssl/e_os2.h:56:33: fatal error: openssl/opensslconf.h: No such file or directory

Full output is here: https://gist.github.com/4634824
I am using the following script to build node.js for MIPS platform: https://gist.github.com/4634836

I extract it to /usr/local

I tried to compile master but it gives errors even with SSL disabled.

I would appreciate it if you could fix it in the stable branch.

-Andrei

Ben Noordhuis

unread,
Jan 25, 2013, 3:34:49 PM1/25/13
to nod...@googlegroups.com
On Fri, Jan 25, 2013 at 3:39 PM, Andrei Sedoi <bsn...@gmail.com> wrote:
> Hi Ben. Thanks for this. I am trying to compile node.js v0.8.18 with your
> changes applied (I created a patch for v0.8.18:
> https://gist.github.com/4634756) and getting an error:
> ../deps/openssl/openssl/e_os2.h:56:33: fatal error: openssl/opensslconf.h:
> No such file or directory
>
> Full output is here: https://gist.github.com/4634824
> I am using the following script to build node.js for MIPS platform:
> https://gist.github.com/4634836
>
> Codesourcery toolchain:
> https://sourcery.mentor.com/GNUToolchain/package11081/public/mips-linux-gnu/mips-2012.09-99-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2
> I extract it to /usr/local
>
> I tried to compile master but it gives errors even with SSL disabled.
>
> I would appreciate it if you could fix it in the stable branch.
>
> -Andrei

MIPS is not really a supported architecture and I don't have time to
look into it at the moment. If you manage to fix it, send a pull
request my way and I'll land it for you.

Andrei Sedoi

unread,
Feb 27, 2013, 1:39:47 AM2/27/13
to nod...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages