-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
fedora 19 x86_64
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056325 | emb-9 | Mike Duigou | P3 | Resolved | Fixed | b29 |
In file included from /usr/include/stdio.h:27:0,
... more nested includes ...
from .../src/share/vm/runtime/sharedRuntimeTrig.cpp:25:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compilin
g with optimization (-O) [-Werror=cpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
which fails because features.h has:
#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0
# if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
Note that sharedRuntimeTrig.cpp and sharedRuntimeTrans.cpp both fail to compile because of this problem. Both those files have special "per-file" optimization settings in make/linux/makefiles/*.make which disable optimization by using -O0.
- backported by
-
JDK-8056325 hotspot fastdebug builds broken on fedora 19 after JDK-8047734
-
- Resolved
-
- relates to
-
JDK-8047734 gcc/g++ -Og is harmful to the debugging experience.
-
- Resolved
-
-
JDK-8050803 misuse of _FORTIFY_SOURCE
-
- Resolved
-
-
JDK-8032045 Enable compiler and linker safety switches for debug builds
-
- Resolved
-
-
JDK-8130017 use _FORTIFY_SOURCE in gcc fastdebug builds
-
- Resolved
-