#88 FIX build ERROR on HP-UX IA64 11.31 gcc 4.2.1

closed-out-of-date
5
2008-11-27
2008-07-29
KBac
No

FIX build ERROR on HP-UX IA64 11.31 gcc 4.2.1

Discussion

  • KBac
    KBac
    2008-07-29

    hpux_29072008.patch

     
    Attachments
    • assigned_to: nobody --> complement
    • status: open --> open-later
     
  • Logged In: YES
    user_id=615813
    Originator: NO

    Bad report: no problem description, no reference to code (patch against what?), no comments to solution.

     
  • KBac
    KBac
    2008-07-31

    Logged In: YES
    user_id=1862317
    Originator: YES

    I'm sorry =)
    There is two error fixes:

    1. On HP-UX IA64 11.23 with GCC 3.4.4 I patch before ~/stlport/stl/config/_hpux.h:
    #ifdef __GNUC__
    # define _STLP_NO_WCHAR_T
    # define _STLP_NO_CWCHAR
    # define _STLP_NO_LONG_DOUBLE
    #endif

    But on HP-UX IA64 11.31 with GCC 4.2.1 this patch works incorrectly, because error occurs when I link stlport's unit tests or any other program with stlport. So I patch _hpux.h:
    #ifdef __GNUC__
    # if __GNUC__ < 4
    # define _STLP_NO_WCHAR_T
    # define _STLP_NO_CWCHAR
    # endif
    # define _STLP_NO_LONG_DOUBLE
    #endif

    2. Before there was a problem with optimization stlport on HP-UX HPPA RISC. Problem was in reading/writing float/double from/to streams (unit tests were failed). It was patched in ~/build/Makefiles/gmake/gcc.mak:
    ifeq ($(OSNAME),hp-ux)
    ...
    ifneq ($(M_ARCH),ia64)
    release-static : OPT += -fno-reorder-blocks
    release-shared : OPT += -fno-reorder-blocks
    endif
    endif

    But now I have this problem on HP-UX 11.31 IA64 with GCC 4.2.1. So I patch gcc.mak:
    ifeq ($(OSNAME),hp-ux)
    ...
    ifneq ($(M_ARCH),ia64)
    release-static : OPT += -fno-reorder-blocks
    release-shared : OPT += -fno-reorder-blocks
    else
    ifeq ($(CXX_VERSION_MAJOR),4)
    release-static : OPT += -fno-reorder-blocks
    release-shared : OPT += -fno-reorder-blocks
    endif
    endif
    endif

     
  • Still no reference to code (patch against what?). Looks like out-of-date.

     
    • status: open-later --> closed-out-of-date