List Info

Thread: LAM: Patch to make GCC 4.3.0 build lam-mpi




LAM: Patch to make GCC 4.3.0 build lam-mpi
country flaguser name
Denmark
2008-04-28 18:04:32
Please CC: me on all responses.
As seen in [2], [3] and [4], gcc-4.3.0 has become stricter,

unfortunately affecting the LAM-MPI configure system. I've
cooked up a 
quick patch at [1] that should take care of this.

-- 
/PA
[1] http://bugs.gentoo.org/attachment.cgi?id=151287&a
mp;action=view
[2] http://bugs.gentoo.org/attachment.cgi?id=151289&a
mp;action=view
[3] http://bugs.gentoo.org/
219675
[4] http://bugs.debian.org/
468065
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

Re: LAM: Patch to make GCC 4.3.0 build lam-mpi
user name
2008-04-28 19:21:42
Thanks for reporting this!

1. A patch for this has already been committed to SVN:

     http://www.lam-mpi.org/MailArchives/lam/2008/03/13641.p
hp

2. I do not believe that your patch is correct in spirit:

-main(int argc, char *argv[])
+main(int argc, char **argv[])

The argument to main() is a pointer to an array of strings. 
 
(char**[]) is the wrong type.  Remember that m4 will strip
out [], so  
even though your patch ultimately result in (char**) (and
therefore  
work) -- it makes reading the code really weird.  The patch
I  
submitted just changes * to ** and removes the [].

Note the patch is part of the 7.1.5 beta that Brian posted:

     http://www.lam-mpi.org/b
eta/


On Apr 28, 2008, at 6:04 PM, Peter Alfredsen wrote:

> Please CC: me on all responses.
> As seen in [2], [3] and [4], gcc-4.3.0 has become
stricter,
> unfortunately affecting the LAM-MPI configure system.
I've cooked up a
> quick patch at [1] that should take care of this.
>
> -- 
> /PA
> [1] http://bugs.gentoo.org/attachment.cgi?id=151287&a
mp;action=view
> [2] http://bugs.gentoo.org/attachment.cgi?id=151289&a
mp;action=view
> [3] http://bugs.gentoo.org/
219675
> [4] http://bugs.debian.org/
468065
> _______________________________________________
> This list is archived at http://www.l
am-mpi.org/MailArchives/lam/


-- 
Jeff Squyres
Cisco Systems

_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )