
FreeBASIC's Official Forums
|
| View previous topic :: View next topic |
| Author |
Message |
|
|
Posted: Apr 16, 2008 17:10 Post subject: MACOSX port |
|
|
Hello,
I've been reading the forum and I've found that a few people are interested in OSX support. So I grabbed the source for the runtimes and started to compile. Here's what I've done so far. I've basically copied the freebsd configure bits and changed the MACHTYPE (??) to look for "darwin", after which configure ran fine.
| Code:
|
|
*-*-darwin* )
cat >>confdefs.h <<\_ACEOF #define TARGET_FREEBSD 1 _ACEOF
cat >>confdefs.h <<\_ACEOF #define TARGET_BASE_UNIX 1 _ACEOF
FBRT_TARGET_BASE=unix FBRT_TARGET=freebsd ;; |
Make bombs out on:
| Code:
|
|
gcc -DHAVE_CONFIG_H -g -O2 -I. -I./freebsd -I./unix -I./x86 -I. -Include config.h -c ./Static/fbrt0.c -o fbrt0.o /var/tmp//ccwNwJAx.s:9:Expected comma after segment-Name /var/tmp//ccwNwJAx.s:9:Rest of Line ignored. 1st junk character valued 32 ( ). /var/tmp//ccwNwJAx.s:13:Expected comma after segment-Name /var/tmp//ccwNwJAx.s:13:Rest of Line ignored. 1st junk character valued 32 ( ). make: *** [fbrt0.o] Error 1
|
The rest here is speculation because I don't know this build environment, and I'm hardly experienced in C, but it seems to me that something in the fcrt0.c is causing the compiler to bomb out.
Here's the bits that I suspect:
| Code:
|
|
Static void * priorityhDoInit __attribute__((section(".ctors.65435"), used)) = fb_hDoInit; Static void * priorityhDoExit __attribute__((section(".dtors.65435"), used)) = fb_hDoExit;
|
These two section blocks may not be supported by OSX? Again, I'm no asm wizard and I have a little experience in C. Can someone point me in the right direction, or is there further development on the OSX port (in a cvs?) that I should check out.
Thanks! |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 17:39 Post subject: |
|
|
| If you get the latest code from SVN, I added configure support for the rtlib for darwin and hack-fixed that fbrt0 issue; I didn't get any farther than that, but it should be a start. |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 17:41 Post subject: |
|
|
I guess osx wanted comma's after the segment name. I placed commas in there and it compiled.
| Code:
|
|
Static void * priorityhDoInit __attribute__((section(".ctors.65435"), used)) = fb_hDoInit; Static void * priorityhDoExit __attribute__((section(".dtors.65435"), used)) = fb_hDoExit;
|
| Code:
|
|
Static void * priorityhDoInit __attribute__((section(".ctors.65435,"), used)) = fb_hDoInit; Static void * priorityhDoExit __attribute__((section(".dtors.65435,"), used)) = fb_hDoExit;
|
|
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 17:46 Post subject: |
|
|
| DrV wrote: | | If you get the latest code from SVN, I added configure support for the rtlib for darwin and hack-fixed that fbrt0 issue; I didn't get any farther than that, but it should be a start. |
Thanks! I'll check it out. Sorry I didn't notice you're post before replying to my own. |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 17:53 Post subject: |
|
|
| Perhaps your fix is actually better than mine - I just figured it wasn't supported at all. Any test reports and patches are welcome. :) |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 18:03 Post subject: |
|
|
| Is there a way to get the compiler to spit out the ASM code? I want to make sure that it's not doing anything strange by putting that comma in there. |
| |
|
| Back to top |
|
 |
|
|
|
| Back to top |
|
 |
|
|
Posted: Apr 16, 2008 22:36 Post subject: |
|
|
| Try running gcc --help. IIRC the -S switch makes it output the asm without assembling/linking. |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 17, 2008 4:34 Post subject: Issue with config.h built from ./configure |
|
|
I'm not sure how the configure process works, but the config.h when running the configure on osx does not include #define TARGET_DARWIN 1. I've added this bit manually since I don't know much about writing configure scripts and modified the configure script to include the following:
| Code:
|
|
*-*-darwin* )
cat >>confdefs.h <<\_ACEOF #define TARGET_DARWIN 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define TARGET_BASE_UNIX 1 _ACEOF FBRT_TARGET_BASE=unix FBRT_TARGET=darwin ;;
|
Now make is barfing on libfb_gfx_blitter_mmx.s. This looks like a ton of assembler, and it will take me a while to decipher it. Is it ok if I continue to post my updates here?
| Code:
|
|
gcc -g -O2 -I../.. -I../../unix -I../../darwin -I../../x86 -I. -Include config.h -DHAVE_CONFIG_H -x assembler-with-cpp -c ../../x86/libfb_gfx_blitter_mmx.s -o libfb_gfx_blitter_mmx.o ../../x86/libfb_gfx_blitter_mmx.s:32:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:32:Rest of Line ignored. 1st junk character valued 49 (1). ../../x86/libfb_gfx_blitter_mmx.s:34:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:34:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:36:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:36:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:37:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:37:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:38:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:38:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:40:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:40:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:42:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:42:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:43:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:43:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:44:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:44:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:45:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:45:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:47:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:47:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:48:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:48:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:49:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:49:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:50:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:50:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:52:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:52:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:53:Unknown pseudo-op: .int ../../x86/libfb_gfx_blitter_mmx.s:53:Rest of Line ignored. 1st junk character valued 48 (0). ../../x86/libfb_gfx_blitter_mmx.s:55:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:55:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:59:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:59:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:62:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:62:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:85:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:85:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:95:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:95:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:138:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:138:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:154:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:154:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:177:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:177:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:187:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:187:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:230:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:230:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:246:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:246:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:269:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:269:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:279:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:279:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:325:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:325:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:341:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:341:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:364:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:364:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:374:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:374:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:420:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:420:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:436:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:436:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:457:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:457:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:467:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:467:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:502:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:502:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:518:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:518:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:539:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:539:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:549:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:549:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:588:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:588:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:604:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:604:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:624:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:624:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:634:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:634:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:661:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:661:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:677:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:677:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:697:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:697:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:707:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:707:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:740:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:740:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:756:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:756:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:776:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:776:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:784:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:784:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:811:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:811:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:827:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:827:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:848:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:848:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:856:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:856:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:877:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:877:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:893:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:893:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:913:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:913:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:921:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:921:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:946:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:946:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:962:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:962:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:983:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:983:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:994:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:994:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1039:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1039:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1055:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1055:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1076:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1076:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1087:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1087:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1127:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1127:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1143:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1143:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1165:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1165:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1173:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1173:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1199:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1199:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1215:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1215:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1237:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1237:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1245:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1245:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1271:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1271:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1287:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1287:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1309:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1309:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1317:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1317:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1349:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1349:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1365:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1365:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1387:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1387:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1395:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1395:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1427:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1427:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1443:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1443:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1463:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1463:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1471:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1471:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1503:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1503:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1519:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1519:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1540:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1540:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1548:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1548:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1574:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1574:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1590:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1590:Rest of Line ignored. 1st junk character valued 56 (8). ../../x86/libfb_gfx_blitter_mmx.s:1611:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1611:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1619:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1619:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1647:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1647:Rest of Line ignored. 1st junk character valued 52 (4). ../../x86/libfb_gfx_blitter_mmx.s:1661:Unknown pseudo-op: .balign ../../x86/libfb_gfx_blitter_mmx.s:1661:Rest of Line ignored. 1st junk character valued 56 (8). make: *** [libfb_gfx_blitter_mmx.o] Error 1
|
|
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 17, 2008 19:08 Post subject: |
|
|
I haven't tried building gfxlib yet, so the configure script there is not updated, but I would just not mess with that for now. I would focus on getting a "hello world" console app working, then move on to more complex things like gfxlib (also, gfxlib currently has an X11 driver, but this is probably not desirable for Mac OS X since the X server is not installed by default and it's not the native graphics interface; it would be better to write a Cocoa driver, if I understand correctly).
The x86 assembly in gfxlib will probably have to be tweaked a bit to get it to work with Apple's special assembler; .balign can be replaced with an equivalent .align, for example (balign is in bits, align is in bytes). |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 17, 2008 23:20 Post subject: |
|
|
| fefe, I for one am interested in your progress since I own a Mac, thanks |
| |
|
| Back to top |
|
 |
|
|
Posted: Apr 18, 2008 11:28 Post subject: |
|
|
| DrV wrote: | I haven't tried building gfxlib yet, so the configure script there is not updated, but I would just not mess with that for now. I would focus on getting a "hello world" console app working, then move on to more complex things like gfxlib (also, gfxlib currently has an X11 driver, but this is probably not desirable for Mac OS X since the X server is not installed by default and it's not the native graphics interface; it would be better to write a Cocoa driver, if I understand correctly).
|
Thanks for the input, I'll start on getting a 'hello world' app to run. I'm having problems building the compiler. I had to patch the configure script for osx, but it's still bombing out. It looks like some syntax errors? I keep seeing "make: e: command not found". I'm currently at work so I don't have the exact text. I'll paste it here for input when I get home tonight.
| Quote: | | The x86 assembly in gfxlib will probably have to be tweaked a bit to get it to work with Apple's special assembler; .balign can be replaced with an equivalent .align, for example (balign is in bits, align is in bytes). |
That's strange that the OSX syntax is different. I wonder why they decided to rewrite the asm syntax for osx. I assume that this balign is only for optimization purposes since a procedure follows it? |
| |
|
| Back to top |
|
 |
|
|
Posted: May 18, 2008 5:49 Post subject: |
|
|
Hey,
I'm very excited about this, and would love to know what the latest progress has been. I have zero experience trying to pull something like this off, but I'd be glad to test the port out for you as quickly as you can throw builds at me. |
| |
|
| Back to top |
|
 |
|
|
Posted: May 18, 2008 17:39 Post subject: |
|
|
| Quote: |
That's strange that the OSX syntax is different. I wonder why they decided to rewrite the asm syntax for osx. I assume that this balign is only for optimization purposes since a procedure follows it? |
That's because OS X doesn't use GNU AS and LD, but own versions that date back to the BSD distribution the MACH team used around 1990. Keep in mind that Mac has a different binary format! |
| |
|
| Back to top |
|
 |
|
|
Posted: May 28, 2008 13:22 Post subject: |
|
|
Wow!
I can't believe somebody is working on a OSX port . . . fantastic news.
I know quite a bit of freebasic code already and have been using mac's since around 1987 or so . . . I would love to beta-test once it is up and running.
Regards
DrewPee |
| |
|
| Back to top |
|
 |
|
|
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
|
|