From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20942 invoked by alias); 27 Mar 2003 09:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20923 invoked by uid 71); 27 Mar 2003 09:06:00 -0000 Date: Thu, 27 Mar 2003 09:10:00 -0000 Message-ID: <20030327090600.20922.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Olivier Hainque Subject: ada/9953: Build failures with Ada on HPUX 10 Reply-To: Olivier Hainque X-SW-Source: 2003-03/txt/msg01877.txt.bz2 List-Id: The following reply was made to PR ada/9953; it has been noted by GNATS. From: Olivier Hainque To: gcc-patches@gcc.gnu.org Cc: charlet@ACT-Europe.FR, dave.anglin@nrc-cnrc.gc.ca, gcc-gnats@gcc.gnu.org, bosch@gnat.com, hainque@ACT-Europe.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 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