Compilation problems in HP-UX11.23 64 bit machine

This is a discussion on Compilation problems in HP-UX11.23 64 bit machine within the hp-hpux forums in Operating Systems category; Hi, I am trying to build our libraries in HP-UX11.23 in 64 bit mode sing aCC compiler. I am getting following error : /usr/include/machine/sys/newsig.h , line 115: error #2105: invalid size for bit field uint64_t __uc_reserved_flags:61; I am unable to find the reason why it is giving this error. System details: /usr/include/machine/sys/newsig.h , line 115: error #2105: invalid size for bit field uint64_t __uc_reserved_flags:61; Please let me know if anybody has idea regarding this. Thank you ! Regards Satish....

Go Back   Database Forum > Operating Systems > hp-hpux

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 04:17 AM
Default Compilation problems in HP-UX11.23 64 bit machine

Hi,

I am trying to build our libraries in HP-UX11.23 in 64 bit mode sing
aCC compiler.

I am getting following error :

"/usr/include/machine/sys/newsig.h", line 115: error #2105: invalid
size for
bit field
uint64_t __uc_reserved_flags:61;

I am unable to find the reason why it is giving this error.

System details:
"/usr/include/machine/sys/newsig.h", line 115: error #2105: invalid
size for
bit field
uint64_t __uc_reserved_flags:61;

Please let me know if anybody has idea regarding this.

Thank you !
Regards
Satish.
Reply With Quote
  #2  
Old 08-26-2008, 06:08 PM
Default Re: Compilation problems in HP-UX11.23 64 bit machine

satish.lvr-at-gmail.com wrote:
> I am trying to build our libraries in HP-UX11.23 in 64 bit mode sing
> aCC compiler.


Which version of the compiler?

rick jones
--
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Reply With Quote
  #3  
Old 08-26-2008, 09:56 PM
Default Re: Compilation problems in HP-UX11.23 64 bit machine

On Aug 27, 2:08*am, Rick Jones wrote:
> satish....@gmail.com wrote:
> > I am trying to build our libraries in HP-UX11.23 in 64 bit mode sing
> > aCC compiler.

>
> Which version of the compiler?
>
> rick jones
> --
> Wisdom Teeth are impacted, people are affected by the effects of events.
> these opinions are mine, all mine; HP might not want them anyway...
> feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...


Hi,

My aCC version is

aCC: HP C/aC++ B3910B A.06.12 [Aug 17 2006]


Anyway, This problem has been solved by giving "+DD64" option in my
compilation.

Please let me know if you have points.

Regards
Satish.
Reply With Quote
  #4  
Old 08-26-2008, 10:17 PM
Default Re: Compilation problems in HP-UX11.23 64 bit machine

satish.lvr-at-gmail.com wrote:
> On Aug 27, 2:08?am, Rick Jones wrote:
> > satish....@gmail.com wrote:
> > > I am trying to build our libraries in HP-UX11.23 in 64 bit mode sing
> > > aCC compiler.

> >
> > Which version of the compiler?


> My aCC version is
> aCC: HP C/aC++ B3910B A.06.12 [Aug 17 2006]


> Anyway, This problem has been solved by giving "+DD64" option in my
> compilation.


Ah, so it wasn't compiling in 64 bit mode before. I'm sure that
Dennis can expound on bitfields and 64-bit types in 32-bit (ILP32) vs
64 bit (LP64) compilation modes.

rick jones
--
oxymoron n, commuter in a gas-guzzling luxury SUV with an American flag
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
Reply With Quote
  #5  
Old 08-27-2008, 01:54 AM
Default Re: Compilation problems in HP-UX11.23 64 bit machine

satish.lvr-at-gmail.com wrote:
> This problem has been solved by giving "+DD64" option in my compilation.


Right. The only way to get this error is to create a .i file with +DD64
then forget to use the same options to compile it.

Rick Jones wrote:
>I'm sure that Dennis can expound on bitfields and 64-bit types in
>32-bit (ILP32) vs 64 bit (LP64) compilation modes.


In C, you can't have bit fields larger than the type. Since uint64_t is
probably declared as unsigned long with +DD64, it is only 32 bits with
+DD32.

With C++, you can have bitfields of any size.
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 12:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.