[maybe this should go to the devel forum]
Compilation instructions for Erlang R11B-1, gcc 3.3, IRIX 6.5.26.
This is to build a 32-bit multithreaded runtime.
1) source patching:
At erts/emulator/sys/unix/sys.c, line 45: comment out "#include <sys/stropts.h>".
2) erts/configure patching:
- case starting at line 1976, add irix6*) DEXPORT="-Wl,-exports";;
- case starting at line 7848, add irix6*) DED_LDFLAGS="-mips4 -shared -all";;
3) configure:
Choose CFLAGS and installation prefix according to your needs.
$ CFLAGS="-mips4 -O3" ./configure --enable-threads --prefix=/usr/nekoware
If you see configure stuck on message "checking for presens of poll()/select() bug when another thread closes fd..." go to Process Manager and kill process "conftest".
4) make:
GNU make is required.
$ gmake
When you see the "Failed to create thread: Operation not permitted (1)" message, become root and do
# chcap "CAP_SCHED_MGT+eip" bin/mips-sgi-irix6.5/beam
then gmake again.
5) install as root:
# gmake install
The installed emulators, beam and beam.hybrid (the "shared heap" variant), have lost the CAP_SCHED_MGT capability.
# chcap "CAP_SCHED_MGT+eip" /usr/nekoware/lib/erlang/erts-5.5.1/bin/beam*
6) test the Erlang command line:
$ erl
That's it for Erlang. Please report any problems.
ESDL and Wings 3D notes will follow soon.
Regards.
-Daniel
Compilation instructions for Erlang R11B-1, gcc 3.3, IRIX 6.5.26.
This is to build a 32-bit multithreaded runtime.
1) source patching:
At erts/emulator/sys/unix/sys.c, line 45: comment out "#include <sys/stropts.h>".
2) erts/configure patching:
- case starting at line 1976, add irix6*) DEXPORT="-Wl,-exports";;
- case starting at line 7848, add irix6*) DED_LDFLAGS="-mips4 -shared -all";;
3) configure:
Choose CFLAGS and installation prefix according to your needs.
$ CFLAGS="-mips4 -O3" ./configure --enable-threads --prefix=/usr/nekoware
If you see configure stuck on message "checking for presens of poll()/select() bug when another thread closes fd..." go to Process Manager and kill process "conftest".
4) make:
GNU make is required.
$ gmake
When you see the "Failed to create thread: Operation not permitted (1)" message, become root and do
# chcap "CAP_SCHED_MGT+eip" bin/mips-sgi-irix6.5/beam
then gmake again.
5) install as root:
# gmake install
The installed emulators, beam and beam.hybrid (the "shared heap" variant), have lost the CAP_SCHED_MGT capability.
# chcap "CAP_SCHED_MGT+eip" /usr/nekoware/lib/erlang/erts-5.5.1/bin/beam*
6) test the Erlang command line:
$ erl
That's it for Erlang. Please report any problems.
ESDL and Wings 3D notes will follow soon.
Regards.
-Daniel