December 01, 2020, 02:13:29 PM

Author Topic: MacOS High Sierra : Build Error: failed to compile glue.c  (Read 403 times)

Offline Lavalamp

  • Jr. Member
  • **
  • Posts: 11
MacOS High Sierra : Build Error: failed to compile glue.c
« on: April 19, 2020, 02:52:44 AM »

Hi,

On my High Sierra MacOS 10.13.6 (17G10021) I downloaded the latest NG v1.56 r1.21 BMK 3.42 and get the below error building the MODs and cant progress any further.

Code: [Select]
Build Error: failed to compile (256) /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c
What have I missed?

Cheers.

Offline Lavalamp

  • Jr. Member
  • **
  • Posts: 11
Re: MacOS High Sierra : Build Error: failed to compile glue.c
« Reply #1 on: April 27, 2020, 08:37:17 PM »
MacOS 13.6

More of the log:

Code: [Select]
[ 49%] Compiling:jcmainct.c
In file included from /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c:23:
/Applications/BlitzMax/mod/pub.mod/enet.mod/enet/include/enet.h:4886:13: error: conflicting types for 'clock_gettime'
        int clock_gettime(int X, struct timespec *ts) {
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:177:5: note: previous declaration is here
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
    ^
[ 49%] Compiling:jcmarker.c
[ 49%] Compiling:jcmaster.c
[ 49%] Compiling:jcomapi.c
[ 50%] Compiling:jcparam.c
1 error generated.
Build Error: failed to compile (256) /Applications/BlitzMax/mod/pub.mod/enet.mod/glue.c
Process complete

Offline Derron

  • Hero Member
  • *****
  • Posts: 3271
Re: MacOS High Sierra : Build Error: failed to compile glue.c
« Reply #2 on: April 28, 2020, 08:03:15 AM »
First of all: you do not need to build all the mods, just use mods you want to use - and BMK compiles them for you.
So if your project does not use gnet/enet then it should run without thar error.


Easide of that: seems Brucey needs to check that out so it does not collide with the xcode definition.


bye
Ron

Offline Lavalamp

  • Jr. Member
  • **
  • Posts: 11
Re: MacOS High Sierra : Build Error: failed to compile glue.c
« Reply #3 on: June 13, 2020, 10:12:22 PM »
Latest updates seem to have fixed this issue.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal