flat assembler
Message board for the users of flat assembler.

Index > Unix > [solved] How to set include path on macOS?

Author
Thread Post new topic Reply to topic
TmX



Joined: 02 Mar 2006
Posts: 843
Location: Jakarta, Indonesia
TmX 15 Sep 2023, 14:34
It's currently impossible to run FASM natively on recent macOSes. One of the solutions is to create a Linux VM and run FASM for Linux on it.

Now I'm trying to run FASM for Windows with wine

Code:
$ wine64 FASM.EXE
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0104:err:environ:init_peb starting L"Z:\\Users\\anta40\\Desktop\\FASM\\FASM.EXE" in experimental wow64 mode
flat assembler  version 1.73.31
usage: fasm <source> [output]
optional settings:
 -m <limit>         set the limit in kilobytes for the available memory
 -p <limit>         set the maximum allowed number of passes
 -d <name>=<value>  define symbolic variable
 -s <file>          dump symbolic information for debugging    


Seems to be working fine. So let's try to build one of the examples: HELLO.ASM
Code:
$ wine64 ~/Desktop/FASM/FASM.EXE HELLO.ASM
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0104:err:environ:init_peb starting L"Z:\\Users\\anta40\\Desktop\\FASM\\FASM.EXE" in experimental wow64 mode
flat assembler  version 1.73.310104:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
  (655359 kilobytes memory)
HELLO.ASM [4]:
include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here
error: file not found.    


How to configure the include path?
I'm on Intel Monterey, BTW.
Post 15 Sep 2023, 14:34
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 843
Location: Jakarta, Indonesia
TmX 15 Sep 2023, 14:59
OK got it. Do something like this:
Code:
export INCLUDE=~/Desktop/FASM/INCLUDE    


Modify it depends on where you extract FASM to.
First impression is running GUI apps is super buggy, e.g can build the MINIPAD example and run it. But will quickly crash if you type a character. Oh well... Smile
Post 15 Sep 2023, 14:59
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2568
Furs 16 Sep 2023, 17:51
Don't use the experimental wow64 mode.

EDIT: Nevermind I realize it's on MacOS, so that's your only option. Well…
Post 16 Sep 2023, 17:51
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.