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
Re: Problems recompiling gcc 4.2.1 on 11i v2
Henrik Goldman wrote:[color=blue]
> 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.[/color]
Your small stack is most likely the issue. Also 1 Gb of swap may be way
too low.
[color=blue]
> 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.[/color]
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.
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[color=blue]
> kctune to change maxssiz. Try 64 Mb. Make sure maxssiz_64bit is larger
> than maxssiz.[/color]
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
[url]http://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg220380.html[/url]
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
[url]http://www.x-formation.com/lm-x_license_manager/index.html[/url]
[url]http://kb.x-formation.com/categories/License+Statistics/FLEXlm+and+FLEXnet[/url]