mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-02-13 13:44:46 +00:00
#include <cfenv> fails with multiple errors #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmik on GitHub (Sep 11, 2020).
Originally assigned to: @dmik on GitHub.
Test case:
Output:
It's unclear why it happens as LIBC
fenv.hcontains all declarations that are needed here. Looks like# include_next <fenv.h>in/usr/include/c++/9/fenv.hfor some reason has no effect... This header is simply not included. Weird.@dmik commented on GitHub (Sep 11, 2020):
Quick testing shows that
# include_next <fenv.h>includes the same/usr/include/c++/9/fenv.hfile again instead of going to a next directory in the include search list and finally find/usr/include/fenv.h. And I guess I know why. Here is the result of runningg++ -E -x c++ - -v < /dev/null:Due to some mess with resolving relative paths,
include/c++/9appears twice on the search list and hence the result. This looks like a gcc configure/compile time issue. Needs debugging.