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
>>
>>
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!
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
>
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
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:
> //
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