This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
ada/9953: Build failures with Ada on HPUX 10
- From: Olivier Hainque <hainque at ACT-Europe dot FR>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 27 Mar 2003 09:06:00 -0000
- Subject: ada/9953: Build failures with Ada on HPUX 10
- Reply-to: Olivier Hainque <hainque at ACT-Europe dot FR>
The following reply was made to PR ada/9953; it has been noted by GNATS.
From: Olivier Hainque <hainque at ACT-Europe dot FR>
To: gcc-patches at gcc dot gnu dot org
Cc: charlet at ACT-Europe dot FR, dave dot anglin at nrc-cnrc dot gc dot ca,
gcc-gnats at gcc dot gnu dot org, bosch at gnat dot com, hainque at ACT-Europe dot FR
Subject: ada/9953: Build failures with Ada on HPUX 10
Date: Thu, 27 Mar 2003 09:58:28 +0100
This patch is what we eventually came up with to fix ada/9953, which is
about build failures with Ada on HPUX 10.
Two problems have been identified: 1/ A system specific s-traceb.adb was used
but only suited HPUX 11 because of references to system library functions only
available there, and 2/ -lpthread ended up in the arguments of a number of
commands issued during the build, causing failure because there is no pthread
library on HPUX 10.
The first attempts to fix this were making conditional parts in the existing
general gnatlib configuration section for HPUX in Makefile.in. The last one
was working but introduced some complexity which we'd prefer to avoid.
We eventually decided to go for a simpler approach which consists in making
independent sections for HPUX 10 and HPUX 11.
Complete build for c,ada (bootstrap+gnatlib and tools), as well as a couple of
simple tests were successful against 3.3 on hppa1.1-hp-hpux10.20 and 11.00.
Ok to commmit ?
----------------------------------
2003-03-27 Olivier Hainque <hainque at act-europe dot fr>
ada/9953
* ada/Makefile.in (gnatlib configuration for HPUX): Split
the general section for HPUX into specific sections for
HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
11 case.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Makefile.in,v
retrieving revision 1.36.4.3
diff -c -3 -p -r1.36.4.3 Makefile.in
*** Makefile.in 29 Jan 2003 22:37:55 -0000 1.36.4.3
--- Makefile.in 27 Mar 2003 08:50:19 -0000
*************** ifeq ($(strip $(filter-out mips sgi irix
*** 750,756 ****
LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
endif
! ifeq ($(strip $(filter-out hppa% hp hpux%,$(targ))),)
LIBGNAT_TARGET_PAIRS = \
a-intnam.ads<4hintnam.ads \
s-inmaop.adb<7sinmaop.adb \
--- 750,774 ----
LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
endif
! ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
! LIBGNAT_TARGET_PAIRS = \
! a-excpol.adb<4wexcpol.adb \
! a-intnam.ads<4hintnam.ads \
! s-inmaop.adb<7sinmaop.adb \
! s-interr.adb<5ginterr.adb \
! s-intman.adb<7sintman.adb \
! s-osinte.adb<5hosinte.adb \
! s-osinte.ads<5hosinte.ads \
! s-parame.ads<5hparame.ads \
! s-osprim.adb<7sosprim.adb \
! s-taprop.adb<5htaprop.adb \
! s-taspri.ads<5htaspri.ads \
! s-tpopsp.adb<7stpopsp.adb \
! g-soccon.ads<3hsoccon.ads \
! system.ads<5hsystem.ads
! endif
!
! ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
LIBGNAT_TARGET_PAIRS = \
a-intnam.ads<4hintnam.ads \
s-inmaop.adb<7sinmaop.adb \
*************** ifeq ($(strip $(filter-out hppa% hp hpux
*** 766,772 ****
g-soccon.ads<3hsoccon.ads \
system.ads<5hsystem.ads
! TGT_LIB = /usr/lib/libcl.a -lpthread
THREADSLIB = -lpthread -lc_r
SYMLIB = -laddr2line -lbfd $(INTLLIBS)
soext = .sl
--- 784,790 ----
g-soccon.ads<3hsoccon.ads \
system.ads<5hsystem.ads
! TGT_LIB = /usr/lib/libcl.a
THREADSLIB = -lpthread -lc_r
SYMLIB = -laddr2line -lbfd $(INTLLIBS)
soext = .sl
*************** ifeq ($(strip $(filter-out hppa% hp hpux
*** 789,794 ****
--- 807,813 ----
g-soccon.ads<3hsoccon.ads \
system.ads<5hsystem.ads
+ TGT_LIB =
THREADSLIB = -lcma
endif
endif