public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems with GCC 2.95.2 on HP-UX 11.00
@ 2001-01-17  7:56 Fleischer, Karsten (K.)
  2001-01-17  8:08 ` Jeffrey A Law
  2001-01-17  8:28 ` Alexandre Oliva
  0 siblings, 2 replies; 4+ messages in thread
From: Fleischer, Karsten (K.) @ 2001-01-17  7:56 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

Hi,

I've configured GCC with the option --with-gnu-as and was able to bootstrap
and install. The detected target is hppa2.0w-hp-hpux11.00.

Then I got problems with some header files then, namely <sys/_size_t.h> and
<sys/unistd>.
I copied those to
/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/sys and edited
them manually.

In _size_t.h I replaced the line

	typedef unsigned long size_t;

with

	#ifndef __SIZE_TYPE__
	#define __SIZE_TYPE__ long unsigned int size_t
	#endif
	#ifndef _GCC_SIZE_T
	#define _GCC_SIZE_T
		typedef __SIZE_TYPE__ size_t;
	#endif

and in unistd.h I changed the prototype

	extern int pthread_atfork(void (*prepare)(), void (*parent)(),
						void (*child)());

to

	extern int pthread_atfork(void (*prepare)(void), void
(*parent)(void),
						void (*child)(void));

Then I tried to compile our (huge) application and got a bunch of error
messages like these:

/var/tmp/cc4mHGtZ.s: Assembler messages:
/var/tmp/cc4mHGtZ.s:69: Error: invalid operands
...

I could get rid of these by compiling with -march=1.0 or -march=1.1.

After linking the program I tried to run it from DDD and got the following
messages:

warning: unable to write __d_pid
warning: Suggest linking with /opt/langtools/lib/end.o
warning: GDB will be unable to track shl_load/shl_unload calls
Unable to read __dld_flags

Questions -
1) How do I compile for hppa2.0 architecture? (I have built the latest
binutils, but that doesn't change anything)
2) What's wrong with dld.sl? (I tried to link statically, but some libraries
are only available as shared libs)

Regards,
Karsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with GCC 2.95.2 on HP-UX 11.00
  2001-01-17  7:56 Problems with GCC 2.95.2 on HP-UX 11.00 Fleischer, Karsten (K.)
@ 2001-01-17  8:08 ` Jeffrey A Law
  2001-01-17  8:28 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Jeffrey A Law @ 2001-01-17  8:08 UTC (permalink / raw)
  To: Fleischer, Karsten (K.); +Cc: 'gcc@gcc.gnu.org'

  In message < 200101171556.f0HFu7k07489@dymwsm12.mailwatch.com >you write:
  > Hi,
  > 
  > I've configured GCC with the option --with-gnu-as and was able to bootstrap
  > and install. The detected target is hppa2.0w-hp-hpux11.00.
gcc-2.95 does not support hpux11.  You're seeing one of several known
problems.

If you want hpux11 support you'll need to wait for GCC 3.0.

Similarly, you probably need a newer version of gdb for hpux11.
jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems with GCC 2.95.2 on HP-UX 11.00
  2001-01-17  7:56 Problems with GCC 2.95.2 on HP-UX 11.00 Fleischer, Karsten (K.)
  2001-01-17  8:08 ` Jeffrey A Law
@ 2001-01-17  8:28 ` Alexandre Oliva
  1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2001-01-17  8:28 UTC (permalink / raw)
  To: Fleischer, Karsten (K.); +Cc: 'gcc@gcc.gnu.org'

On Jan 17, 2001, "Fleischer, Karsten (K.)" <kfleisc1@ford.com> wrote:

> I've configured GCC with the option --with-gnu-as and was able to bootstrap
> and install. The detected target is hppa2.0w-hp-hpux11.00.

The bad news is that GCC 2.95.2 doesn't support HP-UX 11.00.  It may
even appear to work, but you'll end up having problems as you
described.  I believe development snapshots are supposed to support
HP-UX 11.00, but the HP-UX port hasn't bootstrapped lately :-(

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Problems with GCC 2.95.2 on HP-UX 11.00
@ 2001-01-17  8:40 Fleischer, Karsten (K.)
  0 siblings, 0 replies; 4+ messages in thread
From: Fleischer, Karsten (K.) @ 2001-01-17  8:40 UTC (permalink / raw)
  To: 'Alexandre Oliva'; +Cc: 'gcc@gcc.gnu.org'

> The bad news is that GCC 2.95.2 doesn't support HP-UX 11.00.  It may
> even appear to work, but you'll end up having problems as you
> described.  I believe development snapshots are supposed to support
> HP-UX 11.00, but the HP-UX port hasn't bootstrapped lately :-(

I should have known this before our sysadmin updated from 10.20 to 11.00 :-(
Nah, doesn't matter. I'll continue developing on Sun and try out the
snapshots on HP-UX from time to time.

Anyway, thanks.

Karsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-17  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17  7:56 Problems with GCC 2.95.2 on HP-UX 11.00 Fleischer, Karsten (K.)
2001-01-17  8:08 ` Jeffrey A Law
2001-01-17  8:28 ` Alexandre Oliva
2001-01-17  8:40 Fleischer, Karsten (K.)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).