Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 878103

Summary: ERROR: dev-lang/R-4.2.1::gentoo_prefix failed (compile phase)
Product: Gentoo/Alt Reporter: Askar Bektassov <askar.bektassov>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Askar Bektassov 2022-10-23 14:31:19 UTC
Emerge R fails during compile phase, apparently for some compiler incompatibility (unable to interpret '^' symbol)?

Reproducible: Always

Steps to Reproduce:
MAKEOPTS='-j1' emerge R
Actual Results:  
arm64-apple-darwin21-gcc -I"../../../../include" -DNDEBUG -I../../../include -I../../../../src/include -DHAVE_CONFIG_H     -fPIC  -O2 -pipe  -c devQuartz.c -o devQuartz.o
In file included from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:21,
                 from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
                 from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
                 from /Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35,
                 from ../../../../include/R_ext/QuartzDevice.h:103,
                 from devQuartz.c:36:
/Users/askarbektassov/Gentoo/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:391:15: error: expected identifier or ‘(’ before ‘^’ token
  391 | typedef void (^CGPathApplyBlock)(const CGPathElement * element);
      |               ^

Expected Results:  
Successful emerge

askarbektassov@Askars-MBP ~ $ uname -a
Darwin Askars-MBP.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64 arm64 MacBookPro18,3 Darwin

askarbektassov@Askars-MBP ~ $ xcode-select -v
xcode-select version 2395.
Comment 1 Askar Bektassov 2022-11-08 21:56:08 UTC
I suspect R fails compiling as it is looking for XQuartz [1], in order to draw graphical output (including tcltk). Does this mean I HAVE to install X11 on macOS? Alternatively, is there any use flag that can disable X11 support? Thanks

[1] https://cran.r-project.org/bin/macosx/
Comment 2 Larry the Git Cow gentoo-dev 2023-08-01 02:50:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=773a780df64dab4f20eee9fe01f6aa9b6a67e69d

commit 773a780df64dab4f20eee9fe01f6aa9b6a67e69d
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2023-08-01 02:26:32 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2023-08-01 02:49:26 +0000

    dev-lang/R: add 4.3.1 and keyword {x,arm}64-macos.
    
    Disable aqua in all cases.
    
    dev-libs/tre: keyword 0.8.0_p20210321-r3
    
    Closes: https://bugs.gentoo.org/878103
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 dev-lang/R/Manifest                        |   1 +
 dev-lang/R/R-4.3.1.ebuild                  | 248 +++++++++++++++++++++++++++++
 dev-libs/tre/tre-0.8.0_p20210321-r3.ebuild |   2 +-
 3 files changed, 250 insertions(+), 1 deletion(-)