TIP: Click on subject to list as thread! ANSI
echo: jamnntpd
to: Flavio Bessa
from: Oli
date: 2021-06-08 08:49:00
subject: [Crashmail] MacOS 64-bit

Flavio wrote (2021-06-07):

 FB> On 07/06/21 17:58, Oli -> Flavio Bessa wrote:

 O>> Copy src/cmnllib/Makefile.linux to src/cmnllib/Makefile.osx, change
 O>> gcc to clang and try again.


 FB> Thank you, we are moving forward! :)

 FB> I was able to compile it under your instructions, however now
 FB> when I try to execute the binaries I am getting the following
 FB> error:

 FB> flbessa@FLBESSA-M-X6Q0 bin % ./toss
 FB> ./toss: line 6: 99822 Illegal instruction: 4  $BIN SETTINGS $CFG TOSS SCAN

 FB> If I try to manually issue the TOSS command I still get the same
 FB> error message:

 FB> flbessa@FLBESSA-M-X6Q0 sbin % ./crashmail SETTINGS
 FB> .../etc/crashmail.prefs TOSS zsh: illegal hardware instruction
 FB> ./crashmail SETTINGS ../etc/crashmail.prefs TOSS
 FB> flbessa@FLBESSA-M-X6Q0 sbin %

 FB> Looks like there's something else to be changed... i will look
 FB> into the compiler logs again.


I have no idea what causes this error and what it means exactly, but let's try stuff, maybe we are lucky.

It looks like someone started to add OSX Makefiles to the crashmail repo, but never finished the job. The only difference between 'make linux' and 'make osx' seems to be the usage of clang instead of gcc as a compiler. I assume you created a Makefile.osx in jamlib too.

First I would try to build chrashmail with gcc, it might just work:
make cleanlinux
make linux

Alternatively change gcc to clang in the src/oslib_linux/Makefile and try
make cleanlinux
make osx

---
                    
* Origin: . (2:280/464.47)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.