Help on compiles

'David Scott Urban urban@ast.lmco.com
Fri Feb 28 20:02:00 GMT 2003


I meant to send this as a general reply to the list not a private reply:

The problem he is seeing is not with the gcc installation or gcc itself. It is 
with the Makefile he is using. It is trying to invoke the gcc compiler with 
flags that are for the HP Ansi-C compiler. The HP compiler uses a + instead of a 
- sign for invoking optimizations. The only optimization flag it recognizes with 
a - sign is -O which is the default and equivalent to +O2. The +DAportable flag 
allows the code to be compiled on either PA-Risc 1.1 or PA-Risc 2.x and run on 
both architectures. He will need to look up the gcc flags in the documention, 
man pages, info pages or ask HP support what flags are equivalent to the HP C 
compiler flags.


D. S. Urban   
email : urban@ast.lmco.com
-------------------------------------------------------------------------------
To be the person, you must know the person. To know the person, you must
understand the person. To understand the person, you must listen. To listen,
you must open your mind and put aside all preconceived ideas and notions.
-------------------------------------------------------------------------------
All opinions expressed are my own not that of my employer

>> From gcc-help-return-11727-urban=ast.lmco.com@gcc.gnu.org Fri Feb 28 09:05 
MST 2003
>> Date: Fri, 28 Feb 2003 11:05:25 -0500
>> From: "Choiniere, Jacques C, PERSCOM" <Jacques.Choiniere@hoffman.army.mil>
>> Subject: RE: Help on compiles
>> To: "'matt.sherwood@philips.com'" <matt.sherwood@philips.com>,
        "'gcc-help@gcc.gnu.org'" <gcc-help@gcc.gnu.org>
>> MIME-version: 1.0
>> Content-transfer-encoding: 7BIT
>> Delivered-to: mailing list gcc-help@gcc.gnu.org
>> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm
>> List-Post: <mailto:gcc-help@gcc.gnu.org>
>> List-Unsubscribe: 
<mailto:gcc-help-unsubscribe-urban=ast.lmco.com@gcc.gnu.org>
>> List-Archive: <http://gcc.gnu.org/ml/gcc-help/>
>> List-Help: <mailto:gcc-help-help@gcc.gnu.org>
>> 
>> Matt,
>> 
>> I just went through this mess.  I suggest you skip the build and download
>> the gcc executable HP provides on their Web site.  It is a lot easier to
>> install.  While your there, you could also pick up the gdb64 executable HP
>> provides.  By the way, why are you installing a 32-bit compiler on a 64-bit
>> system?  Be careful which executable you download because gcc comes in
>> either 32-bit or 64-bit.  One gcc compiler cannot do both.  
>> 
>> Try HP site:
>> http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5
>> 47,00.html  for gcc
>> 
>> And
>> 
>> http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1
>> 662,00.html  for gdb
>> 
>> Start at those points and look for the executables.  By the way, if your
>> company has current tech support for their HP, then you can request expert
>> HP assistance on the install and use of gcc and gdb.
>> 
>> 
>> Jacques Choiniere
>> 
>> 
>> -----Original Message-----
>> From: matt.sherwood@philips.com [mailto:matt.sherwood@philips.com] 
>> Sent: Thursday, February 27, 2003 6:12 PM
>> To: Ricardo Anguiano
>> Cc: gcc-help@gcc.gnu.org
>> Subject: Re: Help on compiles
>> 
>> 
>> Ricardo, here are some answers to your questions:
>> 
>> The system is HP-UX 11.00, 64-bit
>> The gcc version is, I believe, 3.1. I downloaded it late 2001/early 2002 I
>> followed the standard install instructions that came with the download. To
>> compile the program, I am using the Oracle-supplied make file, demo_proc.mk,
>> along with env_precomp.mk, that the first makefile calls. They both are
>> attached. I issue 'make -f demo_proc.mk EXE=(my program name) OBJS=(my
>> objectfile)'
>> 
>> As I am writing the program for my company, I'm a little hesitant to send
>> the source code.
>> 
>> (See attached file: env_precomp.mk)(See attached file: demo_proc.mk)
>> 
>> Thanks for your help.
>> 
>> Matt



More information about the Gcc-help mailing list