#18254: osx R spkg error: expected ',' or '}' before '__attribute__'
-------------------------------------+-------------------------------------
Reporter: buck | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-
Component: packages: | duplicate/invalid/wontfix
standard | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/buck/18254_osx_R_noaqua | 3c5cd0f74446992a2b98f84c34043cfa181b68b4
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by buck):
Apple says they don't care about GNU-gcc bugs. Is there a good reason to
use gnu-gcc for all of this?
{{{
Apple Developer Relations24-Apr-2015 02:40 PM
Engineering has determined that this is an issue for a third party to
resolve.
We do not support GNU gcc.
If you have questions regarding the resolution of this issue, please
update your bug report with them.
We are closing this report.
Please be sure to regularly check new Apple releases for any updates that
might affect this issue.
Buck Golemon21-Apr-2015 10:54 PM
This is related to the fact that clang supports "enumeration attributes"
but GNU gcc does not.
http://clang.llvm.org/docs/LanguageExtensions.html#attributes-on-
enumerators
https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax
I've opened a public question on the matter at:
http://stackoverflow.com/questions/29788547/gcc-attribute-for-enum-members
Buck Golemon21-Apr-2015 10:03 PM
Summary:
Under GNU gcc, there's a syntax error in ApplicationServices.h if
$MACOSX_DEPLOYMENT_TARGET has any value less than 10.10.
Steps to Reproduce:
```
$ echo '#include <ApplicationServices/ApplicationServices.h>' |
MACOSX_DEPLOYMENT_TARGET=10.10 gcc -c -xc -
(it works, no output)
$ echo '#include <ApplicationServices/ApplicationServices.h>' |
MACOSX_DEPLOYMENT_TARGET=10.9 gcc -c -xc -
In file included from /usr/include/Availability.h:153:0,
from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:19,
from <stdin>:1:
/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:486:41:
error: expected ',' or '}' before '__attribute__'
kFSEventStreamEventFlagItemIsHardlink
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_9_0) = 0x00100000,
^
```
Expected Results:
successful compilation
Actual Results:
compilation fails with a syntax error
Version:
osx 10.10.3 (14D131)
xcode Version 6.2 (6C131e)
gcc --version: gcc (GCC) 4.9.2
Notes:
Downstream ticket: http://trac.sagemath.org/ticket/18254
Configuration:
Attachments:
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18254#comment:61>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.