Compiling Oforth on Linux 64bits systems

If you have any questions, remarks, ... if you need help... its here...

Compiling Oforth on Linux 64bits systems

Postby Franck » 31 Mar 2018 09:05

Currently, Oforth is a 32bits application.
It will run on both 32bits and 64bits platforms.

If you want to compile Oforth 32bits on your Linux 64bits system, you have to check that you have some packages installed :
libc-dev-i386
g++-multilib

Then, a "make all" will do to job...

Franck
Franck
 
Posts: 166
Joined: 29 Oct 2014 19:01

Re: Compiling Oforth on Linux 64bits systems

Postby k5nwa » 24 Apr 2019 20:48

I had problems re-compiling oforth in a Linux Mint V19.1 X64 environment, it compiled after loading the 32-bit multilib libraries as mentioned by you;

sudo apt-get install gcc-multilib g++-multilib

I still have issues compiling the source under Windows 10 Pro X64 it is a different issue. I loaded the latest mingw and it appears to be confused as to the OS running, the parameter OS=Windows_NT is set so any clues by anyone would be helpful as I'm not familiar with make or GCC.

Thanks

Cecil - k5nwa
k5nwa
 
Posts: 3
Joined: 27 Mar 2019 19:50

Re: Compiling Oforth on Linux 64bits systems

Postby Franck » 24 Apr 2019 21:21

Hello,

So, on Linux, this is ok ? You managed to compile with debug mode and see the native code generated (using #see) ?

On windows, here is the command file I use to build Oforth :

@echo off
cd \home\oforth\ofsrc
set TMPDIR=C:\TMP
set LIBRARY_PATH=C:\BIN\LIB
set C_INCLUDE_PATH=C:\BIN\INCLUDE
set GDBTK_LIBRARY=C:\BIN\LIB\TK4.2
make all


Create a file (I named it m.bat) and copy those lines (you will have to modify the directories).
Run m

Tell me if it worked (and, if not, what is the error).

Franck,
Franck
 
Posts: 166
Joined: 29 Oct 2014 19:01

Re: Compiling Oforth on Linux 64bits systems

Postby k5nwa » 25 Apr 2019 01:54

Unfortunately I see nothing even close to resembling those folders in my PC, inside mingw there is a bin directory but it contains no other folders so your folders and mine are not even close, I have the latest mingw you might have something older.

Below is the error I get when using make all;

Error on line 71: expecting target : dependencies

That section of code is for Linux so it should not be executing there, below is a portion of my environment variables.

NUMBER_OF_PROCESSORS=8
OFORTH_PATH=D:/Programs/oforth
OneDrive=C:\Users\a013\OneDrive
OneDriveConsumer=C:\Users\a013\OneDrive
ORANGEC=C:\Program Files (x86)\Orange C 386
OS=Windows_NT

With the original makefile I have the same error the only change was to remove the comment on the line;

# DBGMODE=DBG

Cecil - k5nwa
k5nwa
 
Posts: 3
Joined: 27 Mar 2019 19:50

Re: Compiling Oforth on Linux 64bits systems

Postby Franck » 25 Apr 2019 09:13

imo, this is a problem of make version.

Could you give me what make version you use on windows (make --v I think, or something like that) ?

Franck
Franck
 
Posts: 166
Joined: 29 Oct 2014 19:01


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest