I tried building Ada from a bootstrap binary found on the net. HP-UX 11.23
unlike 11.00 and 11i, doesn't allow executing code on the stack by default. To
enable this for individual binaries:
  $ chatr +es enable [binary]

To enable execution of code on the stack system-wide, the executable_stack
kernel tunable needs to be 1 or 2. The default is 0 (disallow execution).

While building 4.0.2, I encountered the following:
  ...
  stage1/xgcc -Bstage1/ -B/opt/TWWfsw/gcc402/hppa2.0-hp-hpux11.23/bin/ -c -g
-O2 -mdisable-indexing     -gnatpg -gnata -I- -I. -Iada
-I/opt/build/gcc-4.0.2/gcc/ada /opt/build/gcc-4.0.2/gcc/ada/ada.ads -o
ada/ada.o
  Execution of code located on a program's stack is not permitted.
  cmd: stage1/gnat1 -I- -I. -Iada -I/opt/build/gcc-4.0.2/gcc/ada -quiet
-dumpbase ada.ads -O2 -g -mdisable-indexing -gnatpg -gnata -gn
  PID 24258 has been terminated.  See the '+es enable' option of chatr(1).
  xgcc: Internal error: Killed (program gnat1)
  Please submit a full bug report.
  See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Executable stack error building Ada
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bugzilla-gcc at thewrittenword dot com
 GCC build triplet: hppa2.0w-hp-hpux11.23
  GCC host triplet: hppa2.0w-hp-hpux11.23
GCC target triplet: hppa2.0w-hp-hpux11.23


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24355

Reply via email to