This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

Re: libgcj cross-compilation problems (2)


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

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