You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Vinay Kumar <wi...@yahoo.com> on 2011/11/22 10:02:33 UTC

Xalan-c build fails on HP-UX

Hi All,


I am trying to build Xalan-c(1.10.0 version) on HP-UX system with Itanium
Architecture. I am using gcc(3.4.4 version) as C compiler and g++(3.4.4
version) as C++ compiler, but when i try to build, i am getting following
error:
g++: +DD32: No such file or directory
g++: +Z: No such file or directory
g++: +W849,930: No such file or directory
cc1plus: error: invalid option `t'
cc1plus: error: unrecognized command line option "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line option "-Wc,-ansi_for_scope,on"
make[3]: *** [../../../../obj/MsgFileOutputStream.o] Error 1

But the same compiles fine with native compiler(aCC compiler). What is the
reason for getting this error? Please guide me. 

Thanks & Regards, 
Vinay



Re: Xalan-c build fails on HP-UX

Posted by David Bertoni <db...@apache.org>.
On 11/22/2011 1:02 AM, Vinay Kumar wrote:
> Hi All,
>
>
> I am trying to build Xalan-c(1.10.0 version) on HP-UX system with
> Itanium Architecture. I am using gcc(3.4.4 version) as C compiler and
> g++(3.4.4 version) as C++ compiler, but when i try to build, i am
> getting following error:
>
>
> g++: +DD32: No such file or directory
> g++: +Z: No such file or directory
> g++: +W849,930: No such file or directory
> cc1plus: error: invalid option `t'
> cc1plus: error: unrecognized command line option "-Wc,-koenig_lookup,on"
> cc1plus: error: unrecognized command line option "-Wc,-ansi_for_scope,on"
> make[3]: *** [../../../../obj/MsgFileOutputStream.o] Error 1
>
>
> But the same compiles fine with native compiler(aCC compiler). What is
> the reason for getting this error? Please guide me.
>
>
> Thanks & Regards,
>
> Vinay
I have never been able to do a successful build of Xalan-C or Xerces-C 
on HP-UX using the GCC compiler.

Your best bet with Xalan-C is to try the Linux configuration, since that 
is the one that's most likely to work. The HP-UX configuration is really 
for the HP aCC compiler.

Dave
>


RE: Xalan-c build fails on HP-UX

Posted by Vinay Kumar <wi...@yahoo.com>.
Hi Saurabh,

Thanks for your response. I am trying to build(not with native aCC compiler) xalan-c(1.10 version) with gcc and g++ compiler for 32bit HPUX Itanium Architecture machine. For this i have executed runConfigure as follows:
$./runConfigure -p hp-11-ia64 -c gcc -x g++
Generating makefiles with the following options ...
Platform: hp-11-ia64
C Compiler: gcc
C++ Compiler: g++
Extra compile options:
Extra link options:
Transcoder: default
Localization system: inmem
Locale: en_US
Thread option:
bitsToBuild option: 32
Extra configure options:
Debug is OFF

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... ./install-sh -c
checking for autoconf... true
checking whether -fno-elide-constructors works correctly... yes
checking build system type... ia64-hp-hpux11.23
checking host system type... ia64-hp-hpux11.23
checking for floor in -lm... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for mbstowcs... yes
checking if mbstowcs can count only... yes
configure: creating ./config.status
config.status: creating Makefile.incl
config.status: creating Makefile
config.status: creating src/xalanc/Makefile
config.status: creating src/xalanc/Utils/Makefile
config.status: creating src/xalanc/Utils/MsgCreator/Makefile
config.status: creating src/xalanc/Utils/XalanMsgLib/Makefile
config.status: creating samples/Makefile
config.status: creating Tests/Makefile

If the result of the above commands look OK to you, go to the directory
/netapp-home/vinayl/vinay_kumar/xml-xalan/c and type "gmake" or "make" to make the XALAN-C system.

Note: You must use GNU make to use the Xalan Makefile.

But after this when i try to run 'make', it gives the following error:

$make
g++: +Z: No such file or directory
g++: +W849,930: No such file or directory
cc1plus: error: invalid option `t'
cc1plus: error: unrecognized command line option "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line option "-Wc,-ansi_for_scope,on"

What is the reason for getting this error? Is this the issue with xalan-c Makefile(I suspect it is building for aCC compiler) or Do i need to modify anything in the Makefile manually?
Please guide me.

Thanks & Regards,
Vinay



Thanks & Regards,
Vinay

--- On Tue, 11/22/11, Saurabh Bhatnagar <sa...@oracle.com> wrote:

From: Saurabh Bhatnagar <sa...@oracle.com>
Subject: RE: Xalan-c build fails on HP-UX
To: xalan-c-users@xml.apache.org, xalan-dev@xml.apache.org
Cc: win_i008@yahoo.com
Date: Tuesday, November 22, 2011, 1:05 AM



 

Hi Vinay,
You are using HP-IA aCC compiler defines/ 
pre-processor directives with g++ compiler.
DD32 means 32bit build, W849,930 is warnign level 
etc.
 
Please 
use aCC or change them to equivalent for g++.
 
-- 
Warm Regards,

Saurabh 
Bhatnagar | Development Manager- Software config & Build Mgmt.
Phone: +918041836080 | Fax: +918041526000 | VOIP: +918041836080 
Oracle 
Product Life cycle Services

ORACLE India | Plot #1, NR ENCLAVE, EPIP 
INDUSTRIAL AREA, WHITEFIELD | 560066 BANGALORE 



  
  
    
    Oracle is committed to developing practices and products that help 
      protect the environmentOracle 
engineers hardware and software to work together in the cloud and in your data 
center. 

 



From: Vinay Kumar [mailto:win_i008@yahoo.com] 

Sent: Tuesday, November 22, 2011 2:33 PM
To: 
xalan-dev@xml.apache.org
Cc: 
xalan-c-users@xml.apache.org
Subject: Xalan-c build fails on 
HP-UX




  
  
    
      Hi All,
      

      I am trying to build Xalan-c(1.10.0 version) on HP-UX system with 
      Itanium Architecture. I am using gcc(3.4.4 version) as C compiler and 
      g++(3.4.4 version) as C++ compiler, but when i try to build, i am getting 
      following error:
      

      g++: +DD32: No such file or directory
g++: +Z: No such file or 
      directory
g++: +W849,930: No such file or directory
cc1plus: error: 
      invalid option `t'
cc1plus: error: unrecognized command line option 
      "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line 
      option "-Wc,-ansi_for_scope,on"
make[3]: *** 
      [../../../../obj/MsgFileOutputStream.o] Error 1

      

      But the same compiles fine with native compiler(aCC compiler). What is 
      the reason for getting this error? Please guide me. 

      

      Thanks & Regards, 

      Vinay 

RE: Xalan-c build fails on HP-UX

Posted by Vinay Kumar <wi...@yahoo.com>.
Hi Saurabh,

Thanks for your response. I am trying to build(not with native aCC compiler) xalan-c(1.10 version) with gcc and g++ compiler for 32bit HPUX Itanium Architecture machine. For this i have executed runConfigure as follows:
$./runConfigure -p hp-11-ia64 -c gcc -x g++
Generating makefiles with the following options ...
Platform: hp-11-ia64
C Compiler: gcc
C++ Compiler: g++
Extra compile options:
Extra link options:
Transcoder: default
Localization system: inmem
Locale: en_US
Thread option:
bitsToBuild option: 32
Extra configure options:
Debug is OFF

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... ./install-sh -c
checking for autoconf... true
checking whether -fno-elide-constructors works correctly... yes
checking build system type... ia64-hp-hpux11.23
checking host system type... ia64-hp-hpux11.23
checking for floor in -lm... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for mbstowcs... yes
checking if mbstowcs can count only... yes
configure: creating ./config.status
config.status: creating Makefile.incl
config.status: creating Makefile
config.status: creating src/xalanc/Makefile
config.status: creating src/xalanc/Utils/Makefile
config.status: creating src/xalanc/Utils/MsgCreator/Makefile
config.status: creating src/xalanc/Utils/XalanMsgLib/Makefile
config.status: creating samples/Makefile
config.status: creating Tests/Makefile

If the result of the above commands look OK to you, go to the directory
/netapp-home/vinayl/vinay_kumar/xml-xalan/c and type "gmake" or "make" to make the XALAN-C system.

Note: You must use GNU make to use the Xalan Makefile.

But after this when i try to run 'make', it gives the following error:

$make
g++: +Z: No such file or directory
g++: +W849,930: No such file or directory
cc1plus: error: invalid option `t'
cc1plus: error: unrecognized command line option "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line option "-Wc,-ansi_for_scope,on"

What is the reason for getting this error? Is this the issue with xalan-c Makefile(I suspect it is building for aCC compiler) or Do i need to modify anything in the Makefile manually?
Please guide me.

Thanks & Regards,
Vinay



Thanks & Regards,
Vinay

--- On Tue, 11/22/11, Saurabh Bhatnagar <sa...@oracle.com> wrote:

From: Saurabh Bhatnagar <sa...@oracle.com>
Subject: RE: Xalan-c build fails on HP-UX
To: xalan-c-users@xml.apache.org, xalan-dev@xml.apache.org
Cc: win_i008@yahoo.com
Date: Tuesday, November 22, 2011, 1:05 AM



 

Hi Vinay,
You are using HP-IA aCC compiler defines/ 
pre-processor directives with g++ compiler.
DD32 means 32bit build, W849,930 is warnign level 
etc.
 
Please 
use aCC or change them to equivalent for g++.
 
-- 
Warm Regards,

Saurabh 
Bhatnagar | Development Manager- Software config & Build Mgmt.
Phone: +918041836080 | Fax: +918041526000 | VOIP: +918041836080 
Oracle 
Product Life cycle Services

ORACLE India | Plot #1, NR ENCLAVE, EPIP 
INDUSTRIAL AREA, WHITEFIELD | 560066 BANGALORE 



  
  
    
    Oracle is committed to developing practices and products that help 
      protect the environmentOracle 
engineers hardware and software to work together in the cloud and in your data 
center. 

 



From: Vinay Kumar [mailto:win_i008@yahoo.com] 

Sent: Tuesday, November 22, 2011 2:33 PM
To: 
xalan-dev@xml.apache.org
Cc: 
xalan-c-users@xml.apache.org
Subject: Xalan-c build fails on 
HP-UX




  
  
    
      Hi All,
      

      I am trying to build Xalan-c(1.10.0 version) on HP-UX system with 
      Itanium Architecture. I am using gcc(3.4.4 version) as C compiler and 
      g++(3.4.4 version) as C++ compiler, but when i try to build, i am getting 
      following error:
      

      g++: +DD32: No such file or directory
g++: +Z: No such file or 
      directory
g++: +W849,930: No such file or directory
cc1plus: error: 
      invalid option `t'
cc1plus: error: unrecognized command line option 
      "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line 
      option "-Wc,-ansi_for_scope,on"
make[3]: *** 
      [../../../../obj/MsgFileOutputStream.o] Error 1

      

      But the same compiles fine with native compiler(aCC compiler). What is 
      the reason for getting this error? Please guide me. 

      

      Thanks & Regards, 

      Vinay 

RE: Xalan-c build fails on HP-UX

Posted by Saurabh Bhatnagar <sa...@oracle.com>.
Hi Vinay,
You are using HP-IA aCC compiler defines/ pre-processor directives with g++ compiler.
DD32 means 32bit build, W849,930 is warnign level etc.
 
Please use aCC or change them to equivalent for g++.
 
-- 
Warm Regards,

HYPERLINK "http://www.oracle.com/"Oracle
Saurabh Bhatnagar | Development Manager- Software config & Build Mgmt.
Phone: HYPERLINK "tel:+18041836080"+918041836080 | Fax: HYPERLINK "fax:+918041526000"+918041526000 | VOIP: HYPERLINK "tel:+18041836080"+918041836080 
Oracle Product Life cycle Services

ORACLE India | Plot #1, NR ENCLAVE, EPIP INDUSTRIAL AREA, WHITEFIELD | 560066 BANGALORE 


HYPERLINK "http://www.oracle.com/commitment"Green Oracle	 Oracle is committed to developing practices and products that help protect the environment	

Oracle engineers hardware and software to work together in the cloud and in your data center. 

 

  _____  

From: Vinay Kumar [mailto:win_i008@yahoo.com] 
Sent: Tuesday, November 22, 2011 2:33 PM
To: xalan-dev@xml.apache.org
Cc: xalan-c-users@xml.apache.org
Subject: Xalan-c build fails on HP-UX


Hi All,




I am trying to build Xalan-c(1.10.0 version) on HP-UX system with Itanium Architecture. I am using gcc(3.4.4 version) as C compiler and g++(3.4.4 version) as C++ compiler, but when i try to build, i am getting following error:




g++: +DD32: No such file or directory
g++: +Z: No such file or directory
g++: +W849,930: No such file or directory
cc1plus: error: invalid option `t'
cc1plus: error: unrecognized command line option "-Wc,-koenig_lookup,on"
cc1plus: error: unrecognized command line option "-Wc,-ansi_for_scope,on"
make[3]: *** [../../../../obj/MsgFileOutputStream.o] Error 1





But the same compiles fine with native compiler(aCC compiler). What is the reason for getting this error? Please guide me. 





Thanks & Regards, 


Vinay