[M3devel] AMD64_DARWIN with OSX Mavericks

Jay K jay.krell at cornell.edu
Wed Nov 13 10:53:17 CET 2013


Is that really needed?

Doesn't this work?

hello.c:
#include <stdio.h>
int main() { return !!printf("hello\n"); }

cc hello.c

If that works, gradually expand it to reference more symbols, i.e. pthreads, the mach suspend/resume/getcontext functions (see m3-libs/m3core/src/thread/PTHREAD/ThreadApple.c or such)

 - Jay




Subject: Re: [M3devel] AMD64_DARWIN with OSX Mavericks
From: dragisha at m3w.org
Date: Wed, 13 Nov 2013 10:03:15 +0100
CC: m3devel at elegosoft.com
To: jay.krell at cornell.edu

I will bootstrap new version(s) as per your instructions ASAP, but until then, this is a change I made to config/Darwin.common
SYSTEM_LIBS = {  "LIBC"       : [ "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib",                   "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/system"                 ],  "LEX-YACC"   : [ "-ll" ],  "FLEX-BISON" : [ "-lfl" ],  "OPENGL"     : [ "-Wl,-dylib_file," & LIBGL_DYLIB & ":" & LIBGL_DYLIB,                   "-L/usr/X11R6/lib", "-lGLU", "-lGL", "-lXext" ],  "TCP"        : [ ]% below: X11, ODBC, POSTGRES95, MOTIF}

My current AMD64_DARWIN configuration continues to work.--Dragiša Durićdragisha at m3w.org



On 11 Nov 2013, at 08:09, Jay K <jay.krell at cornell.edu> wrote:I'm still hanging back on a version that supports PowerPC/Rosetta.  :) 

 Our system is very portable. 
  Consider helloWorld. And users of pthreads (or Win32 threads).  

 And we hope/trust Apple and co. to maintain a certain level of compatibility. 

 For example. the HPUX man pages decree that get/set/make/swapcontext may 
  not be compatible across releases. We use them, sometimes, for user threads only. 


If you find there is any problem, please let us know.
Anything you find is likely surmountable by a cross build.


 - Jay

________________________________
From: dragisha at m3w.org 
Date: Sun, 10 Nov 2013 18:48:22 +0100 
To: m3devel at elegosoft.com 
Subject: [M3devel] AMD64_DARWIN with OSX Mavericks 

Anybody doing it? 

TIA, 
-- 
Dragiša Durić 
dragisha at m3w.org<mailto:dragisha at m3w.org> 		 	   		  
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20131113/0df8ac39/attachment-0002.html>


More information about the M3devel mailing list