Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670234 - dev-python/pillow-5.3.0 in gentoo prefix: gcc-7.3.0 cannot parse binary operator before token "("
Summary: dev-python/pillow-5.3.0 in gentoo prefix: gcc-7.3.0 cannot parse binary opera...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 673132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-04 00:48 UTC by Horea Christian
Modified: 2019-01-27 11:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_670234.txt,455.64 KB, text/plain)
2018-11-04 00:49 UTC, Horea Christian
Details
emerge --info (file_670234.txt,5.32 KB, text/plain)
2018-11-04 00:50 UTC, Horea Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Horea Christian 2018-11-04 00:48:07 UTC
Pillow cannot get built due to gcc issues.

Reproducible: Always

Steps to Reproduce:
emerge -v1 dev-python/pillow


Expected Results:  
package getting emerged
Comment 1 Horea Christian 2018-11-04 00:49:02 UTC
Created attachment 553998 [details]
build.log
Comment 2 Horea Christian 2018-11-04 00:50:19 UTC
Created attachment 554000 [details]
emerge --info
Comment 3 Fabian Groffen gentoo-dev 2018-12-06 10:53:41 UTC
Looks as if this package is too old or your compiler too new.  Are you sure gcc-7.3 is in use?
Comment 4 Horea Christian 2018-12-26 22:25:33 UTC
I no longer get this bug when trying to emerge =dev-python/pillow-5.3.0 on Prefix, I now get https://bugs.gentoo.org/673132

I am unsure whether this is a new bug which blocks the build system from reaching this bug here, or if this bug has quietly stopped happening, and there was another issue just waiting behind it.
Comment 5 Fabian Groffen gentoo-dev 2018-12-27 07:04:32 UTC
*** Bug 673132 has been marked as a duplicate of this bug. ***
Comment 6 Fabian Groffen gentoo-dev 2018-12-27 07:05:25 UTC
bug #673132 has the exact same compilation problem.
Comment 7 Fabian Groffen gentoo-dev 2018-12-27 07:13:18 UTC
/gentoo/usr/include/sys/cdefs.h:467:49: error: missing binary operator before token "("
 #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5)
                                                 ^

__GNUC_PREREQ is a glibc thing, your headers come from your Prefix, but they probably don't match with your running glibc.

How was your prefix bootstrapped?  Do you run RAP?
Comment 8 Horea Christian 2018-12-27 16:31:47 UTC
Yes, I ran the RAP script
Comment 9 Horea Christian 2019-01-09 14:13:41 UTC
The pillow part of this PR on github solves the issue.

https://github.com/gentoo/gentoo/pull/9822

It would be really great if you could help get this merged.
Comment 10 Fabian Groffen gentoo-dev 2019-01-09 14:38:35 UTC
Ah, so pillow is likely picking up the host compiler.
Comment 11 James Le Cuirot gentoo-dev 2019-01-10 21:22:46 UTC
I've pushed the Pillow fix now.
Comment 12 Benda Xu gentoo-dev 2019-01-27 11:05:05 UTC
(In reply to James Le Cuirot from comment #11)
> I've pushed the Pillow fix now.

Thank you James!