Repository: go
Issue: gollvm: use of undefined type 'epollevent' , reference to undefined name '_SEGV_ACCERR' if compiled using Clang 9
Labels: NeedsInvestigation

Hello again.

Not that I saw any sense to support a discontinued version of Clang - but it was simply included, among other compilers/versions, because it is the "default" compiler ob Ubuntu VMs (Github Actions).

Here is what I saw:

> tools/gollvm/libgo/runtime.o 
> cd /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo && /usr/local/bin/cmake -E make_directory ./. && /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc -c -o /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/./runtime.o -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.raw -fgo-compiling-runtime -I . gollvm/gofrontend/libgo/go/runtime/alg.go gollvm/gofrontend/libgo/go/runtime/atomic_pointer.go gollvm/gofrontend/libgo/go/runtime/cgo_gccgo.go gollvm/gofrontend/libgo/go/runtime/cgocall.go gollvm/gofrontend/libgo/go/runtime/cgocheck.go gollvm/gofrontend/libgo/go/runtime/chan.go gollvm/gofrontend/libgo/go/runtime/compiler.go gollvm/gofrontend/libgo/go/runtime/cpuprof.go gollvm/gofrontend/libgo/go/runtime/cputicks.go gollvm/gofrontend/libgo/go/runtime/debug.go gollvm/gofrontend/libgo/go/runtime/debuglog.go gollvm/gofrontend/libgo/go/runtime/debuglog_off.go gollvm/gofrontend/libgo/go/runtime/env_posix.go gollvm/gofrontend/libgo/go/runtime/eqtype.go gollvm/gofrontend/libgo/go/runtime/error.go gollvm/gofrontend/libgo/go/runtime/extern.go gollvm/gofrontend/libgo/go/runtime/fastlog2.go gollvm/gofrontend/libgo/go/runtime/fastlog2table.go gollvm/gofrontend/libgo/go/runtime/ffi.go gollvm/gofrontend/libgo/go/runtime/float.go gollvm/gofrontend/libgo/go/runtime/hash64.go gollvm/gofrontend/libgo/go/runtime/heapdump.go gollvm/gofrontend/libgo/go/runtime/iface.go gollvm/gofrontend/libgo/go/runtime/lfstack.go gollvm/gofrontend/libgo/go/runtime/lfstack_64bit.go gollvm/gofrontend/libgo/go/runtime/lock_futex.go gollvm/gofrontend/libgo/go/runtime/lockrank.go gollvm/gofrontend/libgo/go/runtime/lockrank_off.go gollvm/gofrontend/libgo/go/runtime/malloc.go gollvm/gofrontend/libgo/go/runtime/map.go gollvm/gofrontend/libgo/go/runtime/map_fast32.go gollvm/gofrontend/libgo/go/runtime/map_fast64.go gollvm/gofrontend/libgo/go/runtime/map_faststr.go gollvm/gofrontend/libgo/go/runtime/mbarrier.go gollvm/gofrontend/libgo/go/runtime/mbitmap.go gollvm/gofrontend/libgo/go/runtime/mcache.go gollvm/gofrontend/libgo/go/runtime/mcentral.go gollvm/gofrontend/libgo/go/runtime/mem_gccgo.go gollvm/gofrontend/libgo/go/runtime/mfinal.go gollvm/gofrontend/libgo/go/runtime/mfixalloc.go gollvm/gofrontend/libgo/go/runtime/mgc.go gollvm/gofrontend/libgo/go/runtime/mgc_gccgo.go gollvm/gofrontend/libgo/go/runtime/mgcmark.go gollvm/gofrontend/libgo/go/runtime/mgcscavenge.go gollvm/gofrontend/libgo/go/runtime/mgcsweep.go gollvm/gofrontend/libgo/go/runtime/mgcsweepbuf.go gollvm/gofrontend/libgo/go/runtime/mgcwork.go gollvm/gofrontend/libgo/go/runtime/mheap.go gollvm/gofrontend/libgo/go/runtime/mpagealloc.go gollvm/gofrontend/libgo/go/runtime/mpagealloc_64bit.go gollvm/gofrontend/libgo/go/runtime/mpagecache.go gollvm/gofrontend/libgo/go/runtime/mpallocbits.go gollvm/gofrontend/libgo/go/runtime/mprof.go gollvm/gofrontend/libgo/go/runtime/mranges.go gollvm/gofrontend/libgo/go/runtime/msan0.go gollvm/gofrontend/libgo/go/runtime/msize.go gollvm/gofrontend/libgo/go/runtime/mspanset.go gollvm/gofrontend/libgo/go/runtime/mstats.go gollvm/gofrontend/libgo/go/runtime/mwbbuf.go gollvm/gofrontend/libgo/go/runtime/nbpipe_pipe2.go gollvm/gofrontend/libgo/go/runtime/netpoll.go gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go gollvm/gofrontend/libgo/go/runtime/os_gccgo.go gollvm/gofrontend/libgo/go/runtime/os_linux.go gollvm/gofrontend/libgo/go/runtime/os_linux_noauxv.go gollvm/gofrontend/libgo/go/runtime/panic.go gollvm/gofrontend/libgo/go/runtime/panic32.go gollvm/gofrontend/libgo/go/runtime/preempt.go gollvm/gofrontend/libgo/go/runtime/preempt_nonwindows.go gollvm/gofrontend/libgo/go/runtime/print.go gollvm/gofrontend/libgo/go/runtime/proc.go gollvm/gofrontend/libgo/go/runtime/profbuf.go gollvm/gofrontend/libgo/go/runtime/proflabel.go gollvm/gofrontend/libgo/go/runtime/race0.go gollvm/gofrontend/libgo/go/runtime/rdebug.go gollvm/gofrontend/libgo/go/runtime/relax_stub.go gollvm/gofrontend/libgo/go/runtime/runtime.go gollvm/gofrontend/libgo/go/runtime/runtime1.go gollvm/gofrontend/libgo/go/runtime/runtime2.go gollvm/gofrontend/libgo/go/runtime/rwmutex.go gollvm/gofrontend/libgo/go/runtime/select.go gollvm/gofrontend/libgo/go/runtime/sema.go gollvm/gofrontend/libgo/go/runtime/signal_gccgo.go gollvm/gofrontend/libgo/go/runtime/signal_unix.go gollvm/gofrontend/libgo/go/runtime/sigqueue.go gollvm/gofrontend/libgo/go/runtime/sigqueue_note.go gollvm/gofrontend/libgo/go/runtime/sizeclasses.go gollvm/gofrontend/libgo/go/runtime/slice.go gollvm/gofrontend/libgo/go/runtime/string.go gollvm/gofrontend/libgo/go/runtime/stubs.go gollvm/gofrontend/libgo/go/runtime/stubs2.go gollvm/gofrontend/libgo/go/runtime/stubs3.go gollvm/gofrontend/libgo/go/runtime/stubs_linux.go gollvm/gofrontend/libgo/go/runtime/symtab.go gollvm/gofrontend/libgo/go/runtime/time.go gollvm/gofrontend/libgo/go/runtime/time_nofake.go gollvm/gofrontend/libgo/go/runtime/timestub.go gollvm/gofrontend/libgo/go/runtime/timestub2.go gollvm/gofrontend/libgo/go/runtime/trace.go gollvm/gofrontend/libgo/go/runtime/traceback_gccgo.go gollvm/gofrontend/libgo/go/runtime/type.go gollvm/gofrontend/libgo/go/runtime/typekind.go gollvm/gofrontend/libgo/go/runtime/utf8.go gollvm/gofrontend/libgo/go/runtime/write_err.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/runtime_linknames.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/runtime_sysinfo.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/sigtab.go

I am stripping down some recurrent prefixes, in the directory path:

> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: **use of undefined type 'epollevent'**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:52:3: error: **reference to undefined name 'events'**
> 

> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:52:11: error: **reference to undefined name '_EPOLLIN'**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
Probably due to the previous error:
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:4: error: reference to field 'events' in object which has no fields or methods
> 

> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:14: error: reference to undefined name '_EPOLLIN'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:25: error: **reference to undefined name '_EPOLLOUT'**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:73:34: error: **reference to field 'data' in object which has no fields or methods**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:155:8: error: reference to field 'events' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:159:37: error: reference to field 'data' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:160:9: error: reference to field 'events' in object which has no fields or methods
> 

> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:160:20: error: reference to undefined name '_EPOLLIN'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:161:55: error: reference to field 'events' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:8: error: reference to field 'events' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:17: error: reference to undefined name '_EPOLLIN'
> 
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:38: error: **reference to undefined name '_EPOLLHUP'**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:48: error: **reference to undefined name '_EPOLLERR'**
> 
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:8: error: reference to field 'events' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:17: error: reference to undefined name '_EPOLLOUT'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:27: error: reference to undefined name '_EPOLLHUP'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:37: error: reference to undefined name '_EPOLLERR'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:183:42: error: reference to field 'data' in object which has no fields or methods
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:185:9: error: reference to field 'events' in object which has no fields or methods
> 
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:185:20: error: reference to undefined name '_EPOLLERR'

> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:316:13: error: **reference to undefined name '_ITIMER_PROF'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:321:13: error: reference to undefined name '_ITIMER_PROF'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:498:20: error: **reference to undefined name '_SI_USER'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:508:20: error: reference to undefined name '_SI_USER'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:528:20: error: reference to undefined name '_SI_USER'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:534:20: error: reference to undefined name '_SI_USER'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:654:20: error: **reference to undefined name '_BUS_ADRERR'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:664:40: error: **reference to undefined name '_SEGV_MAPERR'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:664:70: error: **reference to undefined name '_SEGV_ACCERR'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:675:8: error: **reference to undefined name '_FPE_INTDIV'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:677:8: error: **reference to undefined name '_FPE_INTOVF'**
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:762:92: error: reference to undefined name '_SI_USER'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:939:21: error: reference to undefined name '_SI_USER'
> /gollvm/gofrontend/libgo/go/runtime/signal_unix.go:1029:17: error: **reference to undefined name '_SS_DISABLE'**
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> /gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> 

> [1590/2668] Building Go package 'runtime' (PIC)
> FAILED: tools/gollvm/libgo/.pic/runtime.o 
> /gollvm/libgo && /usr/local/bin/cmake -E make_directory ././.pic && llvm-goc -c -o gollvm/libgo/./.pic/runtime.o -fPIC -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.raw -fgo-compiling-runtime -I . gollvm/gofrontend/libgo/go/runtime/alg.go /gollvm/gofrontend/libgo/go/runtime/atomic_pointer.go gollvm/gofrontend/libgo/go/runtime/cgo_gccgo.go gollvm/gofrontend/libgo/go/runtime/cgocall.go gollvm/gofrontend/libgo/go/runtime/cgocheck.go gollvm/gofrontend/libgo/go/runtime/chan.go gollvm/gofrontend/libgo/go/runtime/cpuprof.go gollvm/gofrontend/libgo/go/runtime/cputicks.go /gollvm/gofrontend/libgo/go/runtime/debug.go /gollvm/gofrontend/libgo/go/runtime/debuglog.go gollvm/gofrontend/libgo/go/runtime/debuglog_off.go gollvm/gofrontend/libgo/go/runtime/env_posix.go gollvm/gofrontend/libgo/go/runtime/eqtype.go gollvm/gofrontend/libgo/go/runtime/error.go gollvm/gofrontend/libgo/go/runtime/extern.go gollvm/gofrontend/libgo/go/runtime/fastlog2.go gollvm/gofrontend/libgo/go/runtime/fastlog2table.go gollvm/gofrontend/libgo/go/runtime/ffi.go gollvm/gofrontend/libgo/go/runtime/float.go gollvm/gofrontend/libgo/go/runtime/hash64.go gollvm/gofrontend/libgo/go/runtime/heapdump.go gollvm/gofrontend/libgo/go/runtime/iface.go gollvm/gofrontend/libgo/go/runtime/lfstack.go /gollvm/gofrontend/libgo/go/runtime/lfstack_64bit.go gollvm/gofrontend/libgo/go/runtime/lock_futex.go gollvm/gofrontend/libgo/go/runtime/lockrank.go gollvm/gofrontend/libgo/go/runtime/lockrank_off.go gollvm/gofrontend/libgo/go/runtime/malloc.go gollvm/gofrontend/libgo/go/runtime/map.go gollvm/gofrontend/libgo/go/runtime/map_fast32.go gollvm/gofrontend/libgo/go/runtime/map_fast64.go gollvm/gofrontend/libgo/go/runtime/map_faststr.go gollvm/gofrontend/libgo/go/runtime/mbarrier.go gollvm/gofrontend/libgo/go/runtime/mbitmap.go gollvm/gofrontend/libgo/go/runtime/mcache.go gollvm/gofrontend/libgo/go/runtime/mcentral.go gollvm/gofrontend/libgo/go/runtime/mem_gccgo.go gollvm/gofrontend/libgo/go/runtime/mfinal.go gollvm/gofrontend/libgo/go/runtime/mfixalloc.go gollvm/gofrontend/libgo/go/runtime/mgc.go gollvm/gofrontend/libgo/go/runtime/mgc_gccgo.go gollvm/gofrontend/libgo/go/runtime/mgcmark.go gollvm/gofrontend/libgo/go/runtime/mgcscavenge.go gollvm/gofrontend/libgo/go/runtime/mgcsweep.go gollvm/gofrontend/libgo/go/runtime/mgcsweepbuf.go gollvm/gofrontend/libgo/go/runtime/mgcwork.go gollvm/gofrontend/libgo/go/runtime/mheap.go gollvm/gofrontend/libgo/go/runtime/mpagealloc.go gollvm/gofrontend/libgo/go/runtime/mpagealloc_64bit.go gollvm/gofrontend/libgo/go/runtime/mpagecache.go gollvm/gofrontend/libgo/go/runtime/mpallocbits.go gollvm/gofrontend/libgo/go/runtime/mprof.go gollvm/gofrontend/libgo/go/runtime/mranges.go gollvm/gofrontend/libgo/go/runtime/msan0.go gollvm/gofrontend/libgo/go/runtime/msize.go gollvm/gofrontend/libgo/go/runtime/mspanset.go gollvm/gofrontend/libgo/go/runtime/mstats.go gollvm/gofrontend/libgo/go/runtime/mwbbuf.go gollvm/gofrontend/libgo/go/runtime/nbpipe_pipe2.go gollvm/gofrontend/libgo/go/runtime/netpoll.go gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go gollvm/gofrontend/libgo/go/runtime/os_gccgo.go gollvm/gofrontend/libgo/go/runtime/os_linux.go gollvm/gofrontend/libgo/go/runtime/os_linux_noauxv.go gollvm/gofrontend/libgo/go/runtime/panic.go gollvm/gofrontend/libgo/go/runtime/panic32.go gollvm/gofrontend/libgo/go/runtime/preempt.go gollvm/gofrontend/libgo/go/runtime/preempt_nonwindows.go gollvm/gofrontend/libgo/go/runtime/print.go gollvm/gofrontend/libgo/go/runtime/proc.go gollvm/gofrontend/libgo/go/runtime/profbuf.go gollvm/gofrontend/libgo/go/runtime/proflabel.go gollvm/gofrontend/libgo/go/runtime/race0.go gollvm/gofrontend/libgo/go/runtime/rdebug.go gollvm/gofrontend/libgo/go/runtime/relax_stub.go gollvm/gofrontend/libgo/go/runtime/runtime.go gollvm/gofrontend/libgo/go/runtime/runtime1.go gollvm/gofrontend/libgo/go/runtime/runtime2.go gollvm/gofrontend/libgo/go/runtime/rwmutex.go gollvm/gofrontend/libgo/go/runtime/select.go gollvm/gofrontend/libgo/go/runtime/sema.go gollvm/gofrontend/libgo/go/runtime/signal_gccgo.go gollvm/gofrontend/libgo/go/runtime/signal_unix.go gollvm/gofrontend/libgo/go/runtime/sigqueue.go gollvm/gofrontend/libgo/go/runtime/sigqueue_note.go gollvm/gofrontend/libgo/go/runtime/sizeclasses.go gollvm/gofrontend/libgo/go/runtime/slice.go gollvm/gofrontend/libgo/go/runtime/string.go gollvm/gofrontend/libgo/go/runtime/stubs.go gollvm/gofrontend/libgo/go/runtime/stubs2.go gollvm/gofrontend/libgo/go/runtime/stubs3.go gollvm/gofrontend/libgo/go/runtime/stubs_linux.go gollvm/gofrontend/libgo/go/runtime/symtab.go gollvm/gofrontend/libgo/go/runtime/time.go gollvm/gofrontend/libgo/go/runtime/time_nofake.go gollvm/gofrontend/libgo/go/runtime/timestub.go gollvm/gofrontend/libgo/go/runtime/timestub2.go gollvm/gofrontend/libgo/go/runtime/trace.go gollvm/gofrontend/libgo/go/runtime/traceback_gccgo.go gollvm/gofrontend/libgo/go/runtime/type.go gollvm/gofrontend/libgo/go/runtime/typekind.go gollvm/gofrontend/libgo/go/runtime/utf8.go gollvm/gofrontend/libgo/go/runtime/write_err.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/runtime_linknames.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/runtime_sysinfo.go /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/tools/gollvm/libgo/sigtab.go
> 
> 

> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:52:3: error: reference to undefined name 'events'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:52:11: error: reference to undefined name '_EPOLLIN'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:4: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:14: error: reference to undefined name '_EPOLLIN'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:72:25: error: reference to undefined name '_EPOLLOUT'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:73:34: error: reference to field 'data' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:155:8: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:159:37: error: reference to field 'data' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:160:9: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:160:20: error: reference to undefined name '_EPOLLIN'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:161:55: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:8: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:17: error: reference to undefined name '_EPOLLIN'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:38: error: reference to undefined name '_EPOLLHUP'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:176:48: error: reference to undefined name '_EPOLLERR'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:8: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:17: error: reference to undefined name '_EPOLLOUT'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:27: error: reference to undefined name '_EPOLLHUP'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:179:37: error: reference to undefined name '_EPOLLERR'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:183:42: error: reference to field 'data' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:185:9: error: reference to field 'events' in object which has no fields or methods
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:185:20: error: reference to undefined name '_EPOLLERR'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:316:13: error: reference to undefined name '_ITIMER_PROF'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:321:13: error: reference to undefined name '_ITIMER_PROF'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:498:20: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:508:20: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:528:20: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:534:20: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:654:20: error: reference to undefined name '_BUS_ADRERR'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:664:40: error: reference to undefined name '_SEGV_MAPERR'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:664:70: error: reference to undefined name '_SEGV_ACCERR'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:675:8: error: reference to undefined name '_FPE_INTDIV'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:677:8: error: reference to undefined name '_FPE_INTOVF'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:762:92: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:939:21: error: reference to undefined name '_SI_USER'
> gollvm/gofrontend/libgo/go/runtime/signal_unix.go:1029:17: error: reference to undefined name '_SS_DISABLE'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> gollvm/gofrontend/libgo/go/runtime/netpoll_epoll.go:22:39: error: use of undefined type 'epollevent'
> 

> [1591/2668] Creating gollvm/libgo/tmp-sysinfo.go

And then Ninja stops the build - so not sure whether tmp-sysinfo.go is generated. But that could be checked/reproduced, for sure.

https://github.com/advancedwebdeveloper/clang_test_cpu_features/actions/runs/371676906 - that's my workflow.
https://github.com/advancedwebdeveloper/clang_test_cpu_features/runs/1422446316?check_suite_focus=true - that's a failing build, described above;
https://github.com/advancedwebdeveloper/clang_test_cpu_features/runs/1422446338?check_suite_focus=true - a GCC oriented, to support compiler's diversity;
https://github.com/advancedwebdeveloper/clang_test_cpu_features/runs/1422446292?check_suite_focus=true - that's a Clang 10 oriented build, which doesn't have any tracked errors
.