bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-27 Thread Ludovic Courtès
Hi! Maxim Cournoyer skribis: >> configure:19948: /tmp/guix-build-gcc-10.1.0.drv-0/build/./gcc/xgcc >> -shared-libgcc -B/tmp/guix-build-gcc-10.1.0.drv-0/build/./gcc -nostdinc++ >> -L/tmp/guix-build-gcc-10.1.0.drv-0/build/x86_64-unknown-linux-gnu/libstdc++-v3/src >> >>

bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-25 Thread Maxim Cournoyer
Hello Ludovic! Thank you for the investigation, and sorry for not having been able to reply earlier! Ludovic Courtès writes: [...] >> >> __cplusplus >= 201103L and _GLIBCXX_USE_C99_MATH_TR1 and not >> _GLIBCXX_NO_C99_ROUNDING_FUNCS Thanks for pointing out this configuration time problem!

bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-24 Thread Ludovic Courtès
Hello, Ludovic Courtès skribis: > The attached patch addresses this with a questionable yet efficient > hack. The test cases reported by Maxim and by Erik Garrison now build > fine. > > I’ve asked for guidance for a proper fix at >

bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-23 Thread Ludovic Courtès
Hi! Ludovic Courtès skribis: > /tmp/guix-build-gcc-10.1.0.drv-0/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/config.log > reads this: > > configure:19924: checking for float trig functions > configure:19948: /tmp/guix-build-gcc-10.1.0.drv-0/build/./gcc/xgcc > -shared-libgcc

bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-21 Thread Ludovic Courtès
Hi, maxim.courno...@gmail.com skribis: > The following C++ snippet file reproduces it: > > // file: test.cpp > > #include > #include > > > int main() { > float x = 9.999; > > std::cout << "rounding value: " << x << " --> " << std::round(x); > > return 0; > } > > // build with: > //

bug#42392: GCC includes ordering issue? g++: error: 'round' is not a member of 'std'

2020-07-16 Thread maxim . cournoyer
Hello, The following C++ snippet file reproduces it: // file: test.cpp #include #include int main() { float x = 9.999; std::cout << "rounding value: " << x << " --> " << std::round(x); return 0; } // build with: // g++ -o test.o -std=c++17 test.cpp It affects only GCC 8 and