Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gollvm: use of undefined type 'epollevent' , reference to undefined name '_SEGV_ACCERR' if compiled using Clang 9 #42734

Open
advancedwebdeveloper opened this issue Nov 19, 2020 · 4 comments
Milestone

Comments

@advancedwebdeveloper
Copy link

@advancedwebdeveloper advancedwebdeveloper commented Nov 19, 2020

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
.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Nov 19, 2020

If that is completely cause of compiler version compatibility - I would propose to vote for elevating minimal required version of Clang, so it would be reflected in the README.
If that is not only (or not ) because of compiler's capabilities differing - then it is a reason to find few indirect issues, which would allow to improve the quality of gollvm's support and.
As for the libgo - it would a matter of supporting the library for both gollvm and main-go.

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Nov 21, 2020

It's interesting: all jobs failed
Logs for Clang 9
Logs for GCC
Logs for Clang 10
Logs for Clang 11

@advancedwebdeveloper
Copy link
Author

@advancedwebdeveloper advancedwebdeveloper commented Nov 21, 2020

Extracted from Clang 11 oriented build log:

[1495/2668] Building Go package 'hash/maphash' (PIC)
FAILED: tools/gollvm/libgo/hash/.pic/maphash.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 ./hash/.pic && /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/hash/.pic/maphash.o -fPIC -fgo-pkgpath=hash/maphash -I . /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/hash/maphash/maphash.go
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH to point to it):
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xd77ab3]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xd75acc]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xd77f45]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7f4ba79b33c0]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xc5b156]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x1829645] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x182903b] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x183c53e] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x182962c] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x182903b] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x1829ae4] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x15f0936]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x14a95d7]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x1433d95]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x14348b8]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x14358f3]
/home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xc1fe3d] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xc255c3] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0xc203ff] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x471569] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x46aa60] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x46abc2] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x4626a3]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f4ba74290b3] /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/build_release/./bin/llvm-goc[0x46137e]
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /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/hash/.pic/maphash.o -fPIC -fgo-pkgpath=hash/maphash -I . /home/runner/work/clang_test_cpu_features/clang_test_cpu_features/clang_test_cpu_features/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/hash/maphash/maphash.go

  1. Running pass 'Function Pass Manager' on module 'gomodule'.
  2. Running pass 'Combine redundant instructions' on function '@hash_1maphash.Hash.Sum'
    Segmentation fault (core dumped)

Look like this is a cause to open another issue

@cagedmantis cagedmantis added this to the Backlog milestone Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants