Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2176856 | 7 | Erik Trimble | P3 | Closed | Fixed | b10 |
JDK-2171785 | 6u4 | Abhijit Saha | P3 | Closed | Fixed | b03 |
Compiling HotSpot on Fedora Core 4 with gcc 4.0.1 (20050727) produces:
Compiling src/os_cpu/linux_i486/vm/os_linux_i486.cpp
cc1plus: warnings being treated as errors
src/os_cpu/linux_i486/vm/os_linux_i486.cpp: In function `void current_stack_region(unsigned char**, size_t*)':
src/os_cpu/linux_i486/vm/os_linux_i486.cpp:594: warning: `pthread_attr_getstackaddr' is deprecated (declared at /usr/include/pthread.h:312)
src/os_cpu/linux_i486/vm/os_linux_i486.cpp:594: warning: `pthread_attr_getstackaddr' is deprecated (declared at /usr/include/pthread.h:312)
gmake[2]: *** [os_linux_i486.o] Error 1
For 6339849, I've added -Wno-deprecated-declarations to the CFLAGS_WARN for os_linux_i486.o and os_linux_amd64 to work around this problem. But that's a band-aid.
The better solution would be to find some way to avoid calling pthread_attr_getstackaddr. That would allow us to compile cleanly and get rid of all the goop I added to gcc.make.
Compiling src/os_cpu/linux_i486/vm/os_linux_i486.cpp
cc1plus: warnings being treated as errors
src/os_cpu/linux_i486/vm/os_linux_i486.cpp: In function `void current_stack_region(unsigned char**, size_t*)':
src/os_cpu/linux_i486/vm/os_linux_i486.cpp:594: warning: `pthread_attr_getstackaddr' is deprecated (declared at /usr/include/pthread.h:312)
src/os_cpu/linux_i486/vm/os_linux_i486.cpp:594: warning: `pthread_attr_getstackaddr' is deprecated (declared at /usr/include/pthread.h:312)
gmake[2]: *** [os_linux_i486.o] Error 1
For 6339849, I've added -Wno-deprecated-declarations to the CFLAGS_WARN for os_linux_i486.o and os_linux_amd64 to work around this problem. But that's a band-aid.
The better solution would be to find some way to avoid calling pthread_attr_getstackaddr. That would allow us to compile cleanly and get rid of all the goop I added to gcc.make.
- backported by
-
JDK-2171785 Fedora Core 4 gcc 4.0.1 flags method as deprecated
- Closed
-
JDK-2176856 Fedora Core 4 gcc 4.0.1 flags method as deprecated
- Closed
- relates to
-
JDK-6339849 New Community Fix Received: HotSpot build on AMD64 Fedora Core 4
- Closed