#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:
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by buck):
Unsetting `MACOSX_DEPLOYMENT_TARGET` makes the .o file build fine...
Reproduction procedure:
{{{
cd 'local/var/tmp/sage/build/r-3.1.2.p0' && '../../../../../../sage' --sh
cd src/src/library/grDevices/src
gcc -std=gnu99 -I../../../../include -DNDEBUG -I../../../include
-I../../../../src/include -DHAVE_CONFIG_H -I../../../../src/extra/zlib
-fPIC -g -O2 -c devQuartz.c -o devQuartz.o
#syntax error explosion
env | grep MACOSX
#MACOSX_DEPLOYMENT_TARGET=10.9
unset MACOSX_DEPLOYMENT_TARGET
env | grep MACOSX
#no output
gcc -std=gnu99 -I../../../../include -DNDEBUG -I../../../include
-I../../../../src/include -DHAVE_CONFIG_H -I../../../../src/extra/zlib
-fPIC -g -O2 -c devQuartz.c -o devQuartz.o
#several warnings, but no error
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18254#comment:22>
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.