Compile on PS4

Skip to first unread message

Wil P

Sep 11, 2013, 3:15:32 AM9/11/13
Hi all,

I'm porting some legacy code to PS4, including Pawn.
I cannot get it to compile on PS4. The compiler defines a "__FreeBSD__" macro. Also, the machine is a 64-bits system.

Anyone has experience with compiling Pawn on PS4?

Thanks for any suggestions!


Sep 11, 2013, 3:57:49 AM9/11/13
I forgot to mention the compiler is based on clang.

You received this message because you are subscribed to the Google Groups "Pawn Scripting Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Dan Christian

Sep 11, 2013, 9:33:36 AM9/11/13
I'm new to this, so I may be wrong...
It looks like building on a 64bit base is broken.
The linux tarball from the site is a 32bit build.

I thought about changing the definition of PAWN_CELL_SIZE to be smart about the pointer size (the cell size must be big enough to hold a pointer), but I haven't tried it yet.


Wil P

Sep 13, 2013, 2:36:57 AM9/13/13
I noticed that I can build the runtime if I do the following steps:
- add a new preprocessor definition _MY_64PLATFORM
- add this kind of code in places where __FreeBSD__ is used (for example amx.c, amx.h):
  #if defined(_MY_64PLATFORM)
    #undef __FreeBSD__
- add this kind of code in places where _WIN64 is used (for example amx.h):
  #if defined(_WIN64) || defined(_MY_64PLATFORM)

Hope this can help you Dan.
Reply all
Reply to author
0 new messages