Am Donnerstag, 10. August 2017, 14:54:53 CEST schrieb Jonathan Wakely: > On 10 August 2017 at 13:05, Rolf Eike Beer wrote: > > Hi, > > > > I'm trying to build gcc 5.4.0 together with glibc 2.26. It is a > > cross-build to both AMD64 or i686 that shows problems, while ARM works. > > (For those who want to suggest a newer gcc first: no, doesn't work: > > https://gcc.gnu.org/bugzilla/ show_bug.cgi?id=70936). > > > > The problem arises from this output of configure of libgomp: > > > > checking for ISO C99 support in <math.h>... no > > You need to look at libgomp/config.log and see why this happens. That was a typo, it is actually libstdc++-v3 where this happens. The problem is that the config check breaks because of isinf(): # if __HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7,0) \ && !defined __SUPPORT_SNAN__ /* __builtin_isinf_sign is broken for float128 only before GCC 7.0. */ # define isinf(x) \ (__builtin_types_compatible_p (__typeof (x), _Float128) \ ? __isinff128 (x) : __builtin_isinf_sign (x)) # elif __GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__ # define isinf(x) __builtin_isinf_sign (x) # else # define isinf(x) __MATH_TG ((x), __isinf, (x)) # endif The error is that __builtin_types_compatible_p is not defined. Greetings, Eike -- Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055 emlix – smart embedded open source
Attachment:
signature.asc
Description: This is a digitally signed message part.