Discussion:
[omniORB] 64-bit omniORB 4.0.7 on HP-UX Itanium
Lichszteld,Roman
2006-07-31 18:36:53 UTC
Permalink
Hello,

I'm trying to build 64-bit version of omniORB 4.0.7 on an HP-UX 11.23
Itanium
system using the HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006] compiler.

First I ran ../configure --prefix=$HOME/local --without-gcc CC=cc CXX=aCC

Then I modified file 'mk/beforeauto.mk' to look like that (I removed
+DAportable and -Ae opts):

ifdef Compiler_aCC
CXXDEBUGFLAGS = -O
CXXOPTIONS += +DD64 -w +inst_v -mt
CXXLINKOPTIONS += -Wl,+s
CDEBUGFLAGS = -O
COPTIONS = +DD64 -w -D_HPUX_SOURCE
CLINKOPTIONS = -Wl,+s

SHAREDLIB_CPPFLAGS += +Z
SharedLibraryPlatformLinkFlagsTemplate = -L/usr/lib/hpux64 -b -Wl,+h$$soname
-Wl,+s -lstd -lCsup
endif

Also being aware of problem with wrong alloca used by omnicpp I added
following two lines to 'src/tool/omniidl/cxx/cccp/config.h' (thanks to Eric
McMillan!):

#define HAVE_ALLOCA 1
#include <alloca.h>

Then I ran make and this is my output (last couple of lines):

make[3]: Entering directory
`/usr/users/roman/work/omniORB-4.0.7/build/src/lib/omniORB'
/usr/users/roman/local/bin/python ../../../../bin/scripts/distdate.py
<../../../../update.log >omniORB4/distdate.hh
../../../bin/omniidl -bcxx -Wba -p../../../../src/lib/omniORB -Wbdebug -v
-ComniORB4 ../../../../idl/Naming.idl
omniidl: Importing back-end 'cxx'
omniidl: 'cxx' imported from
'../../../../src/lib/omniORB/omniidl_be/cxx/__init__.pyc'
omniidl: Preprocessing '../../../../idl/Naming.idl' with
'/usr/users/roman/work/omniORB-4.0.7/build/lib/omnicpp -lang-c++ -undef
-D__OMNIIDL__=0x2420 -D__OMNIIDL_CXX__ "../../../../idl/Naming.idl"'
omniidl: Running front end
omniidl: Running back-end 'cxx'
../../../bin/omniidl -bcxx -Wba -p../../../../src/lib/omniORB -Wbdebug -v
-nf -P -WbF -ComniORB4 ../../../../idl/corbaidl.idl
omniidl: Importing back-end 'cxx'
omniidl: 'cxx' imported from
'../../../../src/lib/omniORB/omniidl_be/cxx/__init__.pyc'
omniidl: Preprocessing '../../../../idl/corbaidl.idl' with
'/usr/users/roman/work/omniORB-4.0.7/build/lib/omnicpp -lang-c++ -undef
-D__OMNIIDL__=0x2420 -DHAS_LongLong -DHAS_LongDouble -D__OMNIIDL_CXX__
"../../../../idl/corbaidl.idl"'
omniidl: Running front end
omniidl: Running back-end 'cxx'
../../../bin/omniidl -bcxx -Wba -p../../../../src/lib/omniORB -Wbdebug -v
-WbF -I. -I../../../../src/lib/omniORB -I../../../idl -I../../../../idl
-ComniORB4 ../../../../idl/ir.idl
omniidl: Importing back-end 'cxx'
omniidl: 'cxx' imported from
'../../../../src/lib/omniORB/omniidl_be/cxx/__init__.pyc'
omniidl: Preprocessing '../../../../idl/ir.idl' with
'/usr/users/roman/work/omniORB-4.0.7/build/lib/omnicpp -lang-c++ -undef
-D__OMNIIDL__=0x2420 -I "." -I "../../../../src/lib/omniORB" -I
"../../../idl" -I "../../../../idl" -D__OMNIIDL_CXX__
"../../../../idl/ir.idl"'
omniidl: Running front end
sh: 3987 Memory fault(coredump)
omniidl: Error running preprocessor
make[3]: *** [omniORB4/ir_defs.hh] Error 1
make[3]: Leaving directory
`/usr/users/roman/work/omniORB-4.0.7/build/src/lib/omniORB'
make[2]: *** [export] Error 1
make[2]: Leaving directory
`/usr/users/roman/work/omniORB-4.0.7/build/src/lib'
make[1]: *** [export] Error 1
make[1]: Leaving directory `/usr/users/roman/work/omniORB-4.0.7/build/src'
make: *** [all] Error 1

Without those two lines regarding alloca it crashed on Naming.idl with the
same message.

Does anyone have any idea what I did wrong? 32 bit build (with that alloca
fix) works fine...

Any help would be very appreciated!

Regards

Roman

Loading...