Operating System - HP-UX
1834100 Members
2598 Online
110063 Solutions
New Discussion

Re: How do I set the 'cc' compiler for my session?

 
Larry Finnegan
Occasional Advisor

How do I set the 'cc' compiler for my session?

I am installing the Oracle 9.2.0.6 patch set on an Itanium (HP-UX 11.23) and when the installer got to the linking phase, I got these errors:

-----------------------------------------------
(Bundled) cc: warning 922: "+Olibmerrno" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 922: "+Ofast" is unsupported in the bundled compiler, igno
red.
(Bundled) cc: warning 922: "+Olit=all" is unsupported in the bundled compiler, i
gnored.
(Bundled) cc: warning 922: "+Oshortdata=8" is unsupported in the bundled compile
r, ignored.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored
.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored
.
(Bundled) cc: warning 922: "+Olit=all" is unsupported in the bundled compiler, i
gnored.
(Bundled) cc: warning 922: "+Oshortdata=8" is unsupported in the bundled compile
r, ignored.
ld: Can't find library or mismatched ABI for -lodm9
Fatal error.
*** Error exit code 1

Stop.

End output from spawned process.
----------------------------------
Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'ioracle' of makefile '/oracle2/OraHo
me1/rdbms/lib/ins_rdbms.mk'. See '/oracle/oraInventory/logs/installActions2005-0
9-16_02-07-07PM.log' for details.
Exception Severity: 1
-----------------------------------------------


I know that these refer to the limitations of the bundled compiler for use in building the kernel. I have GNU gcc installed on this system and would like to try using it to complete the Oracle installation. How do I tell my environment to use gcc instead of the bundled cc? I'm using Bash as my shell. Would just exporting:

CC=/path/to/gcc

work?
7 REPLIES 7
Piergiacomo Perini
Trusted Contributor

Re: How do I set the 'cc' compiler for my session?

Hi Larry,
try adding to environment variable PATH also the gcc path.
just a guess
regards
Hakan Aribas
Valued Contributor

Re: How do I set the 'cc' compiler for my session?

The following link may be useful:

http://www.mcse.ms/archive27-2005-5-1643358.html
Raj D.
Honored Contributor

Re: How do I set the 'cc' compiler for my session?

Hi Larry ,

Try to check the Oracle 9.2.0.6 patch script , how its calling the cc program , you can accordingly replace it by gcc location.

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Larry Finnegan
Occasional Advisor

Re: How do I set the 'cc' compiler for my session?

Hmmm... the link that HAKAN posted is a little disconcerting since it implies that Oracle must be compiled with the HP C compiler and not 'gcc'. I've cross posted to the forums at Oracle to see if this is the case. I'd hate to have to buy a compiler just to install an update. :(
Florian Heigl (new acc)
Honored Contributor

Re: How do I set the 'cc' compiler for my session?

export CC=/path/to/gcc is just right,
I'd also set some more things:

CPP=/usr/local/bin/cpp
CXX=/usr/local/bin/g++
(or whereever these reside)


- but I've never linked Oracle on HP-UX using gcc; but I've done it on linux without problems, so it should work. Check You're using a multithreaded gcc build with gcc -v, I don't know if it'll break anything if it isn't multithreaded.
yesterday I stood at the edge. Today I'm one step ahead.
Larry Finnegan
Occasional Advisor

Re: How do I set the 'cc' compiler for my session?

Oracle Support confirmed for me that they do not recommend using 'gcc' for linking the Oracle binaries. It must be the HP C Compiler. So now I need to figure out how many thousands of dollars this is going to cost... Ugh.
Jon M Zellhoefer
Valued Contributor

Re: How do I set the 'cc' compiler for my session?

The HP C Compiler comes with the OS - you'll only end up paying thousands if you need ANSI-C ... you can get an idea of cost via the software depot.