Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532298 - 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]
Summary: media-libs/fontconfig-2.11.1-r1 - checking for scandir... configure: error: *...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 18:26 UTC by deterenkelt
Modified: 2017-06-20 12:15 UTC (History)
2 users (show)

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


Attachments
build.log (blog,12.38 KB, text/plain)
2014-12-11 18:26 UTC, deterenkelt
Details
output of emerge --info =media-libs/fontconfig-2.11.1-r1::gentoo (eminfo,17.50 KB, text/plain)
2014-12-11 18:27 UTC, deterenkelt
Details
ebuild environment (ebi,128.56 KB, text/plain)
2014-12-11 18:27 UTC, deterenkelt
Details
config.log (config.log,78.18 KB, text/plain)
2014-12-11 22:19 UTC, deterenkelt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.