Re: gcc compilation broken with SVN r264042

2014-04-03 Thread David Chisnall
On 3 Apr 2014, at 00:23, Warner Losh i...@bsdimp.com wrote: So less carping and more fixing is needed here. Should be fixed in r264069 - I'm sure Jenkins / Tinderbox will tell me if it isn't... libc now builds for me with gcc and clang. David ___

Re: gcc compilation broken with SVN r264042

2014-04-03 Thread Warner Losh
On Apr 3, 2014, at 2:11 AM, David Chisnall thera...@freebsd.org wrote: On 3 Apr 2014, at 00:23, Warner Losh i...@bsdimp.com wrote: So less carping and more fixing is needed here. Should be fixed in r264069 - I'm sure Jenkins / Tinderbox will tell me if it isn't... libc now builds for

Re: gcc compilation broken with SVN r264042

2014-04-03 Thread David Chisnall
On 3 Apr 2014, at 14:26, Warner Losh i...@bsdimp.com wrote: On Apr 3, 2014, at 2:11 AM, David Chisnall thera...@freebsd.org wrote: On 3 Apr 2014, at 00:23, Warner Losh i...@bsdimp.com wrote: So less carping and more fixing is needed here. Should be fixed in r264069 - I'm sure Jenkins

Re: gcc compilation broken with SVN r264042

2014-04-03 Thread Warner Losh
On Apr 3, 2014, at 7:35 AM, David Chisnall thera...@freebsd.org wrote: On 3 Apr 2014, at 14:26, Warner Losh i...@bsdimp.com wrote: On Apr 3, 2014, at 2:11 AM, David Chisnall thera...@freebsd.org wrote: On 3 Apr 2014, at 00:23, Warner Losh i...@bsdimp.com wrote: So less carping and

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread David Chisnall
Hi, I'm trying to reproduce this, but I don't seem to be able to get the same error as you. I do get a warning with GCC about a cast to an anonymous struct, which the attached patch fixes, but even without this I'm able to build both with the gcc in 9 and the gcc in ports. Can you let me

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread Michael Butler
On 04/02/14 15:30, David Chisnall wrote: I'm trying to reproduce this, but I don't seem to be able to get the same error as you. I do get a warning with GCC about a cast to an anonymous struct, which the attached patch fixes, but even without this I'm able to build both with the gcc in 9 and

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread David Chisnall
On 2 Apr 2014, at 20:53, Michael Butler i...@protected-networks.net wrote: cc (GCC) 4.2.1 20070831 patched [FreeBSD] .. on .. FreeBSD 11.0-CURRENT #22 r263969: Mon Mar 31 10:45:56 EDT 2014 Splitting it like .. - fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); +

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread Steve Kargl
On Wed, Apr 02, 2014 at 08:58:21PM +0100, David Chisnall wrote: Well, I wouldn't object to that, but it would be good to fix this - we still want to be able to build the base system with gcc (or another compiler), even if we don't encourage it... Who is we in even if we don't encourage

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread David Chisnall
On 2 Apr 2014, at 21:21, Steve Kargl s...@troutmask.apl.washington.edu wrote: Who is we in even if we don't encourage it...? We is the FreeBSD project, collectively. For a larger list of things that we recommend, look at the src.conf man page, which contains a long list of things that we

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread Steve Kargl
On Wed, Apr 02, 2014 at 09:46:19PM +0100, David Chisnall wrote: On 2 Apr 2014, at 21:21, Steve Kargl s...@troutmask.apl.washington.edu wrote: Who is we in even if we don't encourage it...? We is the FreeBSD project, collectively. For a larger list of things that we recommend, There

Re: gcc compilation broken with SVN r264042

2014-04-02 Thread Warner Losh
On Apr 2, 2014, at 1:15 PM, Michael Butler i...@protected-networks.net wrote: /usr/src/lib/libc/stdlib/atexit.c: In function 'atexit_b': /usr/src/lib/libc/stdlib/atexit.c:157: error: cannot convert to a pointer type *** Error code 1 This also breaks mips*, sparc64, armeb and ia64. I’ve seen