diff mbox

Go patch committed: Update libgo to 1.1.1

Message ID CAFULd4bzCRgnnWfF4bvaone-BqN_QVAixjYYFOj1N4kCZeAGTg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 23, 2013, 1:50 p.m. UTC
Hello!

>>>> I have committed a large patch to update libgo to the library that was
>>>> part of the Go 1.1.1 release.  As usual, I'm not including the entire
>>>> patch in this e-mail message, because it is too large.  I'm only
>>>> including the changes to the files that are partially gccgo-specific.
>>>> Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
>>>> Committed to mainline and 4.8 branch.
>>>
>>> I have hit following build failure on non-USING_SPLIT_STACK target
>>> (alpha-linux-gnu):
>>
>> Thanks.  Fixed like so.  Committed to mainline and 4.8 branch.
>
> Thanks, with your patch, I was able to compile libgo without problems.
> The testsuite run exposes a timeout in net/http, I am looking into it.
>
> Another problem was triggered on CentOS 5.9, where compile fails with:
>
> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c: In function
> ‘runtime_epollcreate1’:
> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c:41:2: error:
> implicit declaration of function ‘epoll_create1’
> [-Werror=implicit-function-declaration]
>   r = epoll_create1(flags);
>   ^
> cc1: all warnings being treated as errors
> gmake[4]: *** [netpoll_epoll.lo] Error 1
> gmake[4]: *** Waiting for unfinished jobs....
>
> CentOS has glibc 2.5 and epoll_create1 is not supported.

Attached patch fixes this problem by providing prototype, missing from
sys/poll.h in netpoll_epoll.c.

Patch was tested on x86_64-pc-linux-gnu {,-m32} on CentOS 5.9 and Fedora 19.

Uros.

Comments

Ian Lance Taylor July 23, 2013, 8:32 p.m. UTC | #1
On Tue, Jul 23, 2013 at 6:50 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>>
>> Another problem was triggered on CentOS 5.9, where compile fails with:
>>
>> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c: In function
>> ‘runtime_epollcreate1’:
>> ../../../gcc-svn/trunk/libgo/runtime/netpoll_epoll.c:41:2: error:
>> implicit declaration of function ‘epoll_create1’
>> [-Werror=implicit-function-declaration]
>>   r = epoll_create1(flags);
>>   ^
>> cc1: all warnings being treated as errors
>> gmake[4]: *** [netpoll_epoll.lo] Error 1
>> gmake[4]: *** Waiting for unfinished jobs....
>>
>> CentOS has glibc 2.5 and epoll_create1 is not supported.
>
> Attached patch fixes this problem by providing prototype, missing from
> sys/poll.h in netpoll_epoll.c.
>
> Patch was tested on x86_64-pc-linux-gnu {,-m32} on CentOS 5.9 and Fedora 19.

Thanks!  Committed to mainline and 4.8 branch.

Ian
diff mbox

Patch

Index: runtime/netpoll_epoll.c
===================================================================
--- runtime/netpoll_epoll.c	(revision 201156)
+++ runtime/netpoll_epoll.c	(working copy)
@@ -20,6 +20,10 @@ 
 #define EPOLL_CLOEXEC 02000000
 #endif
 
+#ifndef HAVE_EPOLL_CREATE1
+extern int epoll_create1 (int __flags);
+#endif
+
 typedef struct epoll_event EpollEvent;
 
 static int32