This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems with GCC 2.95.2 on HP-UX 11.00


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]