Problems recompiling gcc 4.2.1 on 11i v2 - HP UX

This is a discussion on Problems recompiling gcc 4.2.1 on 11i v2 - HP UX ; Hello, I just tried to reinstall a development machine to run HP UX 11iv2 as it did before. I added all the latest patch bundles available and installed gcc 4.2.1. However in my process of recompiling gcc as needed for ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Problems recompiling gcc 4.2.1 on 11i v2

  1. Problems recompiling gcc 4.2.1 on 11i v2

    Hello,

    I just tried to reinstall a development machine to run HP UX 11iv2 as it did
    before. I added all the latest patch bundles available and installed gcc
    4.2.1.
    However in my process of recompiling gcc as needed for our software product
    I encountered the following error (attached at the bottom).
    It seems that there is not enough stack space available. However I see that
    maxssiz is set to 8 mb and since the machine has 1 gb ram and about 1 gb
    swapspace that cannot be it.

    I see that ulimit -s return 8192 but I couldn't figure out how to change it.

    What shall I do?

    Thanks.

    -- Henrik

    ------------------


    gmake \
    CFLAGS="-g -fkeep-inline-functions -W -Wall -Wwrite-strings -Wstrict-prototypes
    -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
    -Wold-style-definition -Wmissing-format-attribute -fno-common " \
    CONFIG_H="config.h auto-host.h
    .../../gcc-4.2.1/gcc/../include/ansidecl.h" \
    MAKEOVERRIDES= \
    -f libgcc.mk all
    gmake[4]: Entering directory `/opt/hp-gcc-4.2.1/src/build/gcc'
    /opt/hp-gcc/src/build/./gcc/xgcc -B/opt/hp-gcc/src/build/./gcc/ -B/opt/hp-gcc-4.2.1/ia64-hp-hpux11.23/bin/
    -B/opt/hp-gcc-4.2.1/ia64-hp-hpux11.23/lib/ -isystem
    /opt/hp-gcc-4.2.1/ia64-hp-hpux11.23/include -isystem
    /opt/hp-gcc-4.2.1/ia64-hp-hpux11.23/sys-include -O2 -O2 -g -O2 -DIN_GCC
    -DUSE_LIBUNWIND_EXCEPTIONS -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
    -Wold-style-definition -isystem
    ../include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I.
    -I. -I../../gcc-4.2.1/gcc -I../../gcc-4.2.1/gcc/. -I../../gcc-4.2.1/gcc/../include
    -I./../intl -I../../gcc-4.2.1/gcc/../libcpp/include -I../../gcc-4.2.1/gcc/../libdecnumber
    -I../libdecnumber -DSHARED -mlp64 -DL__divxf3 -xassembler-with-cpp -c
    .../../gcc-4.2.1/gcc/config/ia64/lib1funcs.asm -o libgcc/hpux64/__divxf3_s.o

    Pid 8218 received a SIGSEGV for stack growth failure.
    Possible causes: insufficient memory or swap space,
    or stack size exceeded maxssiz.
    gmake[4]: *** [libgcc/hpux64/__divxf3_s.o] Segmentation fault (core dumped)
    gmake[4]: Leaving directory `/opt/hp-gcc-4.2.1/src/build/gcc'
    gmake[3]: *** [stmp-multilib] Error 2




  2. Re: Problems recompiling gcc 4.2.1 on 11i v2

    Henrik Goldman wrote:
    > It seems that there is not enough stack space available. However I see
    > that maxssiz is set to 8 mb and since the machine has 1 gb ram and about
    > 1 gb swapspace that cannot be it.


    Your small stack is most likely the issue. Also 1 Gb of swap may be way
    too low.

    > I see that ulimit -s return 8192 but I couldn't figure out how to change
    > it. What shall I do?
    > id 8218 received a SIGSEGV for stack growth failure.
    > Possible causes: insufficient memory or swap space,
    > or stack size exceeded maxssiz.


    Your 8 Mb maxssiz maybe too small. To increase it, you'll have to use
    kctune to change maxssiz. Try 64 Mb. Make sure maxssiz_64bit is larger
    than maxssiz.


  3. Re: Problems recompiling gcc 4.2.1 on 11i v2

    > Your 8 Mb maxssiz maybe too small. To increase it, you'll have to use
    > kctune to change maxssiz. Try 64 Mb. Make sure maxssiz_64bit is larger
    > than maxssiz.



    Thanks for the suggestion. Unfortunately it did not work though.

    It's a bug in awk in hp-ux. It has been reproduced and fixed from gcc 4.2.3

    http://www.mail-archive.com/gcc-bugs...msg220380.html

    Here is the proposed fix for this:

    --- branches/gcc-4_3-branch/gcc/optc-gen.awk 2008/05/02 04:05:12 134879
    +++ branches/gcc-4_3-branch/gcc/optc-gen.awk 2008/05/02 04:08:11 134880
    @@ -189,8 +189,11 @@
    idx = -1;
    }
    }
    - printf(" { %c-%s%c,\n %s,\n %s, %u, %d,\n",
    - quote, opts[i], quote, hlp, back_chain[i], len, idx)
    + # Split the printf after %u to work around an ia64-hp-hpux11.23
    + # awk bug.
    + printf(" { %c-%s%c,\n %s,\n %s, %u,",
    + quote, opts[i], quote, hlp, back_chain[i], len)
    + printf(" %d,\n", idx)
    condition = opt_args("Condition", flags[i])
    cl_flags = switch_flags(flags[i])
    if (condition != "")


    -- Henrik

    http://www.x-formation.com/lm-x_lice...ger/index.html
    http://kb.x-formation.com/categories...lm+and+FLEXnet

+ Reply to Thread