Fedora Core 4 gcc 4.0.1 flags method as deprecated

XMLWordPrintable

    • b10
    • x86
    • linux

        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.

              Assignee:
              Steve Goldman (Inactive)
              Reporter:
              Peter Kessler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: