libgcj cross-compilation problems (2)

Chris Dornan cdornan@arm.com
Thu Apr 20 06:52:00 GMT 2000


Andrew Haley wrote:

> Look for the *first* error, not where the make finally fails:

Doh!  Sorry.  (I failed to interpret what was going on; much easier to
see in retrospect.)  Thanks.

Having fixed that up, it now falls over while including <signal.h>:

	 /export/home/cdornan/gnu/gcc-2.95.2-arm/lib/gcc-lib/arm-elf/2.95.2/../../../../arm-elf/sys-include/sys/signal.h:19: candidates are: sigaction::sigaction(const sigaction &)
	/export/home/cdornan/gnu/gcc-2.95.2-arm/lib/gcc-lib/arm-elf/2.95.2/../../../../arm-elf/sys-include/sys/signal.h:19:                 sigaction::sigaction()
	make[2]: *** [prims.lo] Error 1

Now this is the kind of problem that I expected in moving over from
Solaris to ARM.  I grabbed the sys-include files from an earlier build
of gcc for arm-elf and they worked fine in building gcc.  The
offending code is in main_init:

  // FIXME: we only want this on POSIX systems.
  struct sigaction act;
  act.sa_handler = SIG_IGN;
  sigemptyset (&act.sa_mask);
  act.sa_flags = 0;
  sigaction (SIGPIPE, &act, NULL);

Does anyone know why <sys/signal.h> wouldn't support this?

Chris Dornan
cdornan@arm.com


More information about the Java mailing list