Macos14 header completer bug

I’m not sure if it is a bug.


_ROOT Version: 6.29.01


I use ale for code completer
after I upgrade to macOS latest

It shows

In file included from **/include/ROOT/RConfig.hxx:292:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h:212:5: error: 'TARGET_OS_OSX' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_OSX
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h:214:7: error: 'TARGET_OS_MACCATALYST' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#elif TARGET_OS_MACCATALYST
      ^

at RConfig.hxx
line 291

#if defined(__APPLE__)       /* MacOS X support, initially following FreeBSD */
#   include <AvailabilityMacros.h>
#   ifndef __CINT__
#   include <TargetConditionals.h>
#   endif
#   define R__MACOSX
#   define R__UNIX

it seem the TARGET_OS_OSX is defined in TargetConditionals.h
but AvailabilityMacros.h was write before TargetConditionals.h

should TargetConditionals.h write before AvailabilityMacros.h ?

Hello,

Thanks for posting.
Did you recompile ROOT and tried to re-setup the editor? Apple changed quite a few things, for example in the headers shipped with their implementation of the C++ Standard Library where heavily modified (for good reasons).

Let us know how this goes!

Cheers,
D

after recompile and re-setup the editor, the error is still there,
however the ROOT code runs fine.
May be it is an ale cc bug. not ROOT’s

Hi,

Unless you somehow plugged TTabCom to the editor, it is indeed unlikely it’s ROOT. However, in case you want to add any finding to this post, please do not hesitate!

Cheers,
D

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.