This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/22146] C++ build issue with float128 on x86_64
- From: "romain.naour at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 21 Sep 2017 21:46:29 +0000
- Subject: [Bug math/22146] C++ build issue with float128 on x86_64
- Auto-submitted: auto-generated
- References: <bug-22146-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22146
--- Comment #11 from romain.naour at gmail dot com ---
Hi,
Sorry, In my previous comment I was looking at the libstdc++ build log where
float128 was disabled.
Here is the result of the test:
configure:16625: checking for ISO C99 support in <math.h> for C++98
configure:16694:
/home/kubu/toolchain/x86_64-glibc-master/build/host-gcc-final-custom/build/./gcc/xgcc
-shared-libgcc
-B/home/kubu/toolchain/x86_64-glibc-master/build/host-gcc-final-custom/build/./gcc
-nostdinc++
-L/home/kubu/toolchain/x86_64-glibc-master/build/host-gcc-final-custom/build/x86_64-buildroot-linux-gnu/libstdc++-v3/src
-L/home/kubu/toolchain/x86_64-glibc-master/build/host-gcc-final-custom/build/x86_64-buildroot-linux-gnu/libstdc++-v3/src/.libs
-L/home/kubu/toolchain/x86_64-glibc-master/build/host-gcc-final-custom/build/x86_64-buildroot-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/kubu/toolchain/x86_64-glibc-master/host/x86_64-buildroot-linux-gnu/bin/
-B/home/kubu/toolchain/x86_64-glibc-master/host/x86_64-buildroot-linux-gnu/lib/
-isystem
/home/kubu/toolchain/x86_64-glibc-master/host/x86_64-buildroot-linux-gnu/include
-isystem
/home/kubu/toolchain/x86_64-glibc-master/host/x86_64-buildroot-linux-gnu/sys-include
-o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-Os -D_GNU_SOURCE -std=c++98 -fno-exceptions conftest.cpp -lm >&5
In file included from conftest.cpp:36:0:
conftest.cpp: In function 'int main()':
conftest.cpp:42:5: error: expected primary-expression before '__typeof'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: expected primary-expression before 'float'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: '__builtin_types_compatible_p' was not declared in
this scope
i = fpclassify(d1);
^
conftest.cpp:42:5: note: suggested alternative: '__builtin_ia32_comile'
conftest.cpp:42:5: error: expected primary-expression before '__typeof'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: expected primary-expression before 'double'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: expected primary-expression before '__typeof'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: expected primary-expression before 'long'
i = fpclassify(d1);
^
conftest.cpp:42:5: error: '__builtin_choose_expr' was not declared in this
scope
i = fpclassify(d1);
^
conftest.cpp:42:5: note: suggested alternative: '__builtin_cexpi'
conftest.cpp:42:5: error: '__builtin_choose_expr' was not declared in this
scope
i = fpclassify(d1);
^
conftest.cpp:42:5: note: suggested alternative: '__builtin_cexpi'
conftest.cpp:42:5: error: '__builtin_choose_expr' was not declared in this
scope
i = fpclassify(d1);
^
conftest.cpp:42:5: note: suggested alternative: '__builtin_cexpi'
configure:16694: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "package-unused"
| #define PACKAGE_TARNAME "libstdc++"
| #define PACKAGE_VERSION "version-unused"
| #define PACKAGE_STRING "package-unused version-unused"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define _GLIBCXX_HOSTED 1
| #define _GLIBCXX_VERBOSE 1
| #define _GLIBCXX_ATOMIC_BUILTINS 1
| #define _GLIBCXX_USE_INT128 1
| #define _GLIBCXX_USE_FLOAT128 1
| #define HAVE_STRXFRM_L 1
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| #define HAVE_LIBINTL_H 1
| #define _GLIBCXX_USE_NLS 1
| #define _GLIBCXX_USE_LONG_LONG 1
| #define HAVE_WCHAR_H 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_WCTYPE_H 1
| #define _GLIBCXX_USE_WCHAR_T 1
| /* end confdefs.h. */
| #include <math.h>
| volatile double d1, d2;
| volatile int i;
| int
| main ()
| {
| i = fpclassify(d1);
| i = isfinite(d1);
| i = isinf(d1);
| i = isnan(d1);
| i = isnormal(d1);
| i = signbit(d1);
| i = isgreater(d1, d2);
| i = isgreaterequal(d1, d2);
| i = isless(d1, d2);
| i = islessequal(d1, d2);
| i = islessgreater(d1, d2);
| i = islessgreater(d1, d2);
| i = isunordered(d1, d2);
|
| ;
| return 0;
| }
configure:16705: result: no
So, it's the same issue as for gcc 6.4.0.
Sorry for the noise...
--
You are receiving this mail because:
You are on the CC list for the bug.