OS/2, eCS & ArcaOS - Technical > Programming

Please test os2emx-cross-toolchain

(1/3) > >>

KO Myung-Hun:
Hi/2.

Here is the cross compiler for OS/2 on x86_64 Linux.

This consists of the three parts.

1. binutils v2.33.1
2. LIBCn v0.1.14
3. gcc/g++ v9.2.0

This provides the following:

1. binutils + emxexp, emximp, emxbind and OS/2 ld.
2. static libgcc.a
3. ability to build .EXEs and .DLLs with the ld linker which supports a.out object files only

This does *NOT* provide the following:

1. emxomf* family
2. shared libgcc_so_d.a(Currently, this is the symbolic link to libgcc.a)
3. ability to build .EXEs and .DLLs with the OMF linkers which supports OMF object files

How to use:

1. Download the following file:
    https://www.os2.kr/komh/testcase/os2emx-cross-toolchain-test.tar.xz

2. Extract files from it with `tar xvJf ' to some dir
3. Files are in some_dir/opt/os2emx/
4. Prepend some_dir/opt/os2emx/bin to your $PATH like:
  export PATH=/path/to/your/opt/os2emx:$PATH
5. Now, you can cross-compile C/C++ sources with i686-pc-os2-emx-gcc/g++

Report your experiences, please...

Thanks!

KO Myung-Hun

Martin Iturbide:
Hello

Sorry if don't understand this. Is the idea is that with this set of tools you can compile software for OS2 from a Linux machine?
Is the benefit of this to overcome some limitation we are getting on OS/2 to compile complex software?

Regards

Mentore:

--- Quote from: Martin Iturbide on February 16, 2026, 11:45:40 pm ---Hello

Sorry if don't understand this. Is the idea is that with this set of tools you can compile software for OS2 from a Linux machine?
Is the benefit of this to overcome some limitation we are getting on OS/2 to compile complex software?

Regards

--- End quote ---

Hi Martin.
Cross compiling can be a great help when you have to compile really big projects, where an OS/2 machine can fail due to resource exhaustion.

Currently I don't have a linux machine at home with which to try this, but I'm eager to follow these experiments and maybe I'll try ASAP to do something.
But for now, onto some ports I still have to test.

Mentore

Jochen Schäfer:
Yes, it is this. I have to build the Dosbox-X cores one at a time, because even building two in parallel would result in constant out of memory compiler crashes. The rest of Dosbox-X is then build in parallel.

KO Myung-Hun:
Hi/2.

Here is the second test version:

https://www.os2.kr/komh/testcase/os2emx-cross-toolchain-test2.tar.xz

Added support of emxomf tools such as emxomf, emxomfar, emxomfld, emxomfstrip, listomf and stripomf.
Added support of -Zomf option with watcom tools such as wlink and wrc.
Fixed directory hierachy problem.

KO Myung-Hun

Navigation

[0] Message Index

[#] Next page

Go to full version