swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Installation on Linux Fedora Core 4


From: Paul Johnson
Subject: Re: [Swarm-Support] Installation on Linux Fedora Core 4
Date: Thu, 22 Sep 2005 00:18:11 -0500
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

I posted RPMS for this a while ago.

http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.2X_Fdr4/

Please be warned that the blt in Fedora Extras is not adequate and you really do need the one I offer. HDF5 from extras is OK.

My SPEC file applies some patches, the consistentCasts patches I mentioned in here about 5 months ago, and also fixes for these FC4 related problems.

Here's a patch that fixes the signedness problem you mention

diff -rc swarm-2.2-orig/libobjc/mframe.m swarm-2.2/libobjc/mframe.m
*** swarm-2.2-orig/libobjc/mframe.m     2005-07-13 12:50:56.000000000 -0500
--- swarm-2.2/libobjc/mframe.m  2005-07-13 12:53:13.000000000 -0500
***************
*** 1570,1579 ****
    objc_free(argframe);
  }

! ^L

  static void
! getSizeAndAlignment(const char *typePtr, unsigned *sizep, unsigned *alignp)
  {
    NSArgumentInfo        info;
    typePtr = mframe_next_arg(typePtr, &info);
--- 1570,1579 ----
    objc_free(argframe);
  }

!

  static void
! getSizeAndAlignment(const char *typePtr, int *sizep, unsigned *alignp)
  {
    NSArgumentInfo        info;
    typePtr = mframe_next_arg(typePtr, &info);



After you fix that signedness problem, and try to compile, you will come to some code that uses an inline function that depends on variable length arrays and the compile will fail there too, and the only fix I found was to comment-out support for unions in mframe. In the mframe code, you'll see a place where ther is a definition that depends on CHECKER. This issue with gcc4 has been reported on the redhat bugzilla and I'm assured by several experts that they are aware and trying to fix it.

I just chickened out and commented out the whole section because it was fastest for me...

diff -rc swarm-2.2-orig/libobjc/mframe.m swarm-2.2/libobjc/mframe.m
*** swarm-2.2-orig/libobjc/mframe.m     2005-07-13 12:54:13.000000000 -0500
--- swarm-2.2/libobjc/mframe.m  2005-08-10 22:16:46.000000000 -0500
***************
*** 1723,1734 ****
        {
          __builtin_return (rframe);
        }
! #ifndef __CHECKER__
! /* Checker-equipped compiler barfs on this on sparc-sun-solaris2.7. */
!       *(block *) buffer = retframe_block (retframe);
! #else
! #warning Disabling code in mframe for Checker
! #endif
        break;
        }

--- 1723,1734 ----
        {
          __builtin_return (rframe);
        }
! //#ifndef __CHECKER__
! // /* Checker-equipped compiler barfs on this on sparc-sun-solaris2.7. */
! //    *(block *) buffer = retframe_block (retframe);
! //#else
! //#warning Disabling code in mframe for Checker
! //#endif
        break;
        }



Amelie Schmolke wrote:
Hi,

I am trying to install swarm on Linux Fedora Core 4. When compiling swarm, I get an internal compiler error (from gcc 4). I understand that this is a known problem. Is there a solution to it apart from installing an older compiler version?

This is the error message I get:
mframe.m:1592: warning: pointer targets in passing argument 2 of 'getSizeAndAlignment' differ in signedness mframe.m:1728: internal compiler error: in assign_stack_temp_for_type, at function.c:601

Please help me and thank you in advance

Amelie Schmolke



--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700


reply via email to

[Prev in Thread] Current Thread [Next in Thread]