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

Bug 532298

Summary: media-libs/fontconfig-2.11.1-r1 - checking for scandir... configure: error: *** No scandir function available. // conftest.c:1:0: error: SSE instruction set disabled, using 387 arithmetics [-Werror]
Product: Gentoo Linux Reporter: deterenkelt <deterenkelt.github>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: UNCONFIRMED ---    
Severity: normal CC: fonts, multilib+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
output of emerge --info =media-libs/fontconfig-2.11.1-r1::gentoo
ebuild environment
config.log

Description deterenkelt 2014-12-11 18:26:19 UTC
Created attachment 391456 [details]
build.log

On configuring stage autoconf fails with the following error.

checking for scandir... configure: error: 
*** No scandir function available.
Comment 1 deterenkelt 2014-12-11 18:27:20 UTC
Created attachment 391458 [details]
output of emerge --info =media-libs/fontconfig-2.11.1-r1::gentoo
Comment 2 deterenkelt 2014-12-11 18:27:51 UTC
Created attachment 391460 [details]
ebuild environment
Comment 3 Rafał Mużyło 2014-12-11 21:54:37 UTC
...config.log is still missing.
Comment 4 deterenkelt 2014-12-11 22:19:28 UTC
Created attachment 391470 [details]
config.log
Comment 5 Rafał Mużyło 2014-12-12 14:17:54 UTC
Actually, the problem here is twofolds.
It's a mix of quirky test and quirky CFLAGS.
The test the upstream uses is a bit fragile and user's CFLAGS trigger a false negative, due to causing "warning: SSE instruction set disabled, using 387 arithmetics".
Comment 6 Pacho Ramos gentoo-dev 2014-12-23 16:31:11 UTC
No idea about why upstream appends -Werror on purpose after this change:
http://cgit.freedesktop.org/fontconfig/commit/?id=8daa863c6d84ea56cc2f568a89316690e784a277

Looks like there is a reference at:
http://comments.gmane.org/gmane.comp.fonts.fontconfig/4826
Comment 7 Rafał Mużyło 2014-12-26 07:14:34 UTC
(In reply to Pacho Ramos from comment #6)
> No idea about why upstream appends -Werror on purpose after this change:
> http://cgit.freedesktop.org/fontconfig/commit/
> ?id=8daa863c6d84ea56cc2f568a89316690e784a277
> 
> Looks like there is a reference at:
> http://comments.gmane.org/gmane.comp.fonts.fontconfig/4826

I can't tell about that particular commit, but as for the failing check that's quite obvious - incompatible function type in C is at most a warning and just about all standard autoconf C compiler warning checks are done via -Werror.
Comment 8 David J Cozatt 2015-09-06 01:50:12 UTC
I had this same error when building with-

CFLAGS="-march=native -O2 -pipe -Wall -fpic -D_FORTIFY_SOURCE=1"

removed -D_FORTIFY_SOURCE=1  and it builds and installs.
Comment 9 SpanKY gentoo-dev 2015-09-06 08:49:07 UTC
(In reply to David J Cozatt from comment #8)

using -fpic in global CFLAGS is a terrible idea and 100% not supported.  it also makes no sense at all.