Operating System - HP-UX
1832802 Members
3202 Online
110045 Solutions
New Discussion

Re: gcc issue with HP-UX 11.23 PA RISC

 
SOLVED
Go to solution
Madhu Kangara
Frequent Advisor

gcc issue with HP-UX 11.23 PA RISC

have a new HP-UX 11.23 OS box on PA-RISC architecture
It has BUNDLE11i B.11.23.0409.3 Required Patch Bundle for HP-UX 11i v2
(B.11.23), September 2004 installed


I am having a strange problem with HP supplied GNU C compiler which was
downloaded from HP website.I have same problem for 3.4.2 and 4.0 GCC


Here is the output
-bash-2.05b$ gcc --target-help
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <> for instructions.
-bash-2.05b$ type gcc
gcc is hashed (/usr/local/bin/gcc)
-bash-2.05b$ uname -a
HP-UX nbreport B.11.23 U 9000/785 2004703108 unlimited-user license
-bash-2.05b$ gcc -v
Using built-in specs.
Target: hppa2.0w-hp-hpux11.23
Configured with:
/scratch/joseph/pkgbuild/3.3.1­/hpux-11/gcc-4.0.0/configure
--enable-languages=c,c++ --enable-threads=posix --disable-nls
--disable-libmudflap --with-gnu-as --without-gnu-ld
--with-as=/usr/local/bin/as --with-ld=/usr/ccs/bin/ld
--prefix=/usr/local
Thread model: posix
gcc version 4.0.0


Does anyone else have this problem on 11.23. Any tips?


Thanks in advance
Madhu


11 REPLIES 11
harry d brown jr
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC


binutils version??

live free or die
harry d brown jr
Live Free or Die
harry d brown jr
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

What does

whereis gcc
which gcc

return?

When I do a

gcc --target-help, I get this:

[root@rndspt02 /var/opt]# /usr/local/bin/gcc --target-help

Target specific options:
-mlp64 Generate LP64 code
-milp32 Generate ILP32 code
-mno-early-stop-bits Disable earlier placing stop bits
-mearly-stop-bits Enable earlier placing stop bits for better scheduling
-mno-dwarf2-asm Disable Dwarf 2 line debug info via GNU as
-mdwarf2-asm Enable Dwarf 2 line debug info via GNU as
-mno-inline-sqrt Do not inline square root
-minline-sqrt-max-throughput Generate inline square root, optimize for throughput
-minline-sqrt-min-latency Generate inline square root, optimize for latency
-mno-inline-int-divide Do not inline integer division
-minline-int-divide-max-throughput Generate inline integer division, optimize for throughput
-minline-int-divide-min-latency Generate inline integer division, optimize for latency
-mno-inline-float-divide Do not inline floating point division
-minline-float-divide-max-throughput Generate inline floating point division, optimize for throughput
-minline-float-divide-min-latency Generate inline floating point division, optimize for latency
-mauto-pic Generate self-relocatable code
-mconstant-gp gp is constant (but save/restore gp on indirect calls)
-msdata Enable use of sdata/scommon/sbss
-mno-sdata Disable use of sdata/scommon/sbss
-mregister-names Use in/loc/out register names
-mno-volatile-asm-stop Don't emit stop bits before and after volatile extended asms
-mvolatile-asm-stop Emit stop bits before and after volatile extended asms
-mno-pic Generate code without GP reg
-mno-gnu-ld Generate code for Intel ld
-mgnu-ld Generate code for GNU ld
-mno-gnu-as Generate code for Intel as
-mgnu-as Generate code for GNU as
-mlittle-endian Generate little endian code
-mbig-endian Generate big endian code
-mtune= Schedule code for given CPU
-mtls-size= Specify bit size of immediate TLS offsets
-mfixed-range= Specify range of registers to make fixed
IA-64 options:
--mconstant-gp mark output file as using the constant-GP model
(sets ELF header flag EF_IA_64_CONS_GP)
--mauto-pic mark output file as using the constant-GP model
without function descriptors (sets ELF header flag
EF_IA_64_NOFUNCDESC_CONS_GP)
-milp32|-milp64|-mlp64|-mp64 select data model (default -mlp64)
-mle | -mbe select little- or big-endian byte order (default -mle)
-munwind-check=[warning|error]
unwind directive check (default -munwind-check=warning)
-mhint.b=[ok|warning|error]
hint.b check (default -mhint.b=error)
-x | -xexplicit turn on dependency violation checking
-xauto automagically remove dependency violations (default)
-xnone turn off dependency violation checking
-xdebug debug dependency violation checker
-xdebugn debug dependency violation checker but turn off
dependency violation checking
-xdebugx debug dependency violation checker and turn on
dependency violation checking
ld: Unrecognized argument: --target-help
Fatal error.
collect2: ld returned 1 exit status
[root@rndspt02 /var/opt]#

Just an "ld" error.

live free or die
harry d brown jr
Live Free or Die
Madhu Kangara
Frequent Advisor

Re: gcc issue with HP-UX 11.23 PA RISC

-bash-2.05b$ whereis gcc
gcc: /usr/local/bin/gcc /usr/local/lib/gcc /usr/local/man/man1/gcc.1
-bash-2.05b$ which gcc
/usr/local/bin/gcc

I have installed binutils comes along with gcc and its version is 2.15.97

$ find / -name cc1 -print
/usr/local/pa64/libexec/gcc/hppa64-hp-hpux11.23/4.0.0/cc1
/usr/local/libexec/gcc/hppa2.0w-hp-hpux11.23/4.0.0/cc1
Ermin Borovac
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

Does 'gcc -v --target-help' return any more information?
harry d brown jr
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

Re-DOWNLOAD them and install them again:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

GCC 4.0.0 Intel Itanium 2 microarchitecture 11i v2 (binary) (gz, http, 92090 KB)

and

binutils 2.15 Intel Itanium 2 microarchitecture 11i v2 for 4.0.0 (binary) (gz, http, 38170 KB)


What does

chatr /usr/local/bin/gcc
and
file /usr/local/bin/gcc

return?

live free or die
harry d brown jr
Live Free or Die
Madhu Kangara
Frequent Advisor

Re: gcc issue with HP-UX 11.23 PA RISC

Thanks, but my hardware is not Itanium and is a PA-RISC

Here is the output which you requested
-bash-2.05b$ file /usr/local/bin/gcc
/usr/local/bin/gcc: PA-RISC1.1 shared executable dynamically linked dynamica
lly linked
-bash-2.05b$ chatr /usr/local/bin/gcc
/usr/local/bin/gcc:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled
shared library private mapping disabled
shared library text merging disabled
harry d brown jr
Honored Contributor
Solution

Re: gcc issue with HP-UX 11.23 PA RISC

Sorry about that, I missed that. Unfortunately I don't currently have any PA-Risc machines at 11.23, just Itanium, so I can't test it locally.

I'd re-download and re-install the binutils and then gcc.

live free or die
harry d brown jr
Live Free or Die
Madhu Kangara
Frequent Advisor

Re: gcc issue with HP-UX 11.23 PA RISC

thanks for the tip.
Looks like HP has modified binutils in between and it fixed it

see the new output which I was looking for
-bash-2.05b$ gcc --target-help

Target specific options:
-mwsio Generate cpp defines for workstation IO
-msio Generate cpp defines for server IO
-mlinker-opt Enable linker optimizations
-mno-long-calls Generate long calls only when needed
-mlong-calls Always generate long calls
-mno-big-switch Do not generate code for huge switch statements
-mbig-switch Generate code for huge switch statements
-mno-fast-indirect-calls Do not generate fast indirect calls
-mfast-indirect-calls Generate fast indirect calls
-mno-long-load-store Do not emit long load/store sequences
-mlong-load-store Emit long load/store sequences
-mno-soft-float Do not use software floating point
-msoft-float Use software floating point
-mno-gas Do not assume code will be assembled by GAS
-mgas Assume code will be assembled by GAS
-mno-portable-runtime Do not use portable calling conventions
-mportable-runtime Use portable calling conventions
-mno-disable-indexing Do not disable indexed addressing
-mdisable-indexing Disable indexed addressing
-mno-jump-in-delay Do not put jumps in call delay slots
-mjump-in-delay Put jumps in call delay slots
-mspace-regs Do not disable space regs
-mno-space-regs Disable space regs
-mno-disable-fpregs Do not disable FP regs
-mdisable-fpregs Disable FP regs
-mpa-risc-2-0 Generate PA2.0 code (requires binutils 2.10 or later)
-mpa-risc-1-1 Generate PA1.1 code
-mpa-risc-1-0 Generate PA1.0 code
-mnosnake Generate PA1.0 code
-msnake Generate PA1.1 code
-march= Specify architecture for code generation. Values are 1.0, 1.1, and 2.0. 2.0 requires gas snapshot 19990413 or later.
-mschedule= Specify CPU for scheduling purposes
/usr/ccs/bin/ld: Unrecognized argument: --target-help
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status
-bash-2.05b$
harry d brown jr
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

WHat's with the "ld" we are getting at the end? Oh well, glad I could help.

live free or die
harry d brown jr
Live Free or Die
Ted Buis
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

Make sure that you download the pa-risc version for 11.23 and not for 11.11.
Mom 6
Ted Buis
Honored Contributor

Re: gcc issue with HP-UX 11.23 PA RISC

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

This looks to me like the right spot. It seems to me to have gcc 3.4.3 in it.
Mom 6