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: redefinition of SYS_SENDTO in sysinfo.go #41660

Open
advancedwebdeveloper opened this issue Sep 27, 2020 · 4 comments
Open

gollvm: redefinition of SYS_SENDTO in sysinfo.go #41660

advancedwebdeveloper opened this issue Sep 27, 2020 · 4 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@advancedwebdeveloper
Copy link

advancedwebdeveloper commented Sep 27, 2020

$ make -j 1 gollvm
[ 0%] Built target GoDumpSpecMacroParser
[ 0%] Built target LLVMDemangle
[ 0%] Built target LLVMSupport
[ 0%] Built target LLVMBitstreamReader
[ 0%] Built target LLVMRemarks
[ 0%] Built target LLVMTableGen
[ 0%] Built target LLVMTableGenGlobalISel
[ 0%] Built target obj.llvm-tblgen
[ 0%] Built target llvm-tblgen
[ 0%] Built target intrinsics_gen
[ 0%] Built target LLVMBinaryFormat
[ 0%] Built target LLVMCore
[ 0%] Built target LLVMBitReader
[ 0%] Built target LLVMDebugInfoMSF
[ 0%] Built target LLVMDebugInfoCodeView
[ 0%] Built target LLVMMC
[ 0%] Built target LLVMMCParser
[ 0%] Built target LLVMMCDisassembler
[ 0%] Built target LLVMTextAPI
[ 0%] Built target llvm_vcsrevision_h
[ 0%] Built target LLVMObject
[ 0%] Built target LLVMDebugInfoDWARF
[ 0%] Built target X86CommonTableGen
[ 0%] Built target LLVMX86Info
[ 0%] Built target LLVMX86Desc
[ 0%] Built target GoDumpSpecMacroTokenizer
[ 0%] Built target llvm-godumpspec
[ 0%] Built target GollvmDriverOptions
[ 0%] Built target libgmp
[ 0%] Built target libmpfr
[ 0%] Built target libmpc
[ 0%] Built target LLVMDriverUtils
[ 0%] Built target LLVMAsmParser
[ 0%] Built target LLVMIRReader
[ 0%] Built target LLVMProfileData
[ 0%] Built target LLVMAnalysis
[ 0%] Built target LLVMBitWriter
[ 0%] Built target LLVMTransformUtils
[ 0%] Built target LLVMAggressiveInstCombine
[ 0%] Built target LLVMInstCombine
[ 0%] Built target LLVMScalarOpts
[ 0%] Built target LLVMTarget
[ 0%] Built target LLVMCodeGen
[ 0%] Built target LLVMSelectionDAG
[ 0%] Built target LLVMAsmPrinter
[ 0%] Built target LLVMGlobalISel
[ 0%] Built target omp_gen
[ 0%] Built target omp_cpp
[ 0%] Built target LLVMFrontendOpenMP
[ 0%] Built target LLVMInstrumentation
[ 0%] Built target LLVMVectorize
[ 0%] Built target LLVMLinker
[ 0%] Built target LLVMipo
[ 0%] Built target LLVMHelloNew
[ 0%] Built target LLVMObjCARCOpts
[ 0%] Built target LLVMCoroutines
[ 0%] Built target LLVMCFGuard
[ 0%] Built target LLVMOption
[ 0%] Built target LLVMX86CodeGen
[ 0%] Built target LLVMX86AsmParser
[ 0%] Built target LLVMX86Disassembler
[ 0%] Built target LLVMPasses
[ 0%] Built target LLVMCppGoFrontEnd
[ 0%] Built target LLVMCppGoPasses
[ 0%] Built target llvm-goc
[ 0%] Built target llvm-goc-token
[ 0%] Updating Go exports file for package 'internal/unsafeheader'
[ 0%] Updating Go exports file for package 'internal/cpu'
[ 0%] Updating Go exports file for package 'internal/bytealg'
[ 0%] Updating Go exports file for package 'runtime/internal/atomic'
[ 0%] Updating Go exports file for package 'runtime/internal/sys'
[ 0%] Updating Go exports file for package 'runtime/internal/math'
[ 0%] Updating Go exports file for package 'internal/reflectlite'
[ 0%] Updating Go exports file for package 'errors'
[ 0%] Updating Go exports file for package 'math/bits'
[ 0%] Updating Go exports file for package 'unicode/utf8'
[ 0%] Updating Go exports file for package 'internal/race'
[ 0%] Updating Go exports file for package 'sync/atomic'
[ 0%] Updating Go exports file for package 'sync'
[ 0%] Updating Go exports file for package 'unicode'
[ 0%] Building Go exports file for package 'reflect'
[ 0%] Updating Go exports file for package 'reflect'
[ 0%] Building Go package 'sort' (PIC)
[ 0%] Building Go package 'sort' (non-PIC)
[ 0%] Building Go exports file for package 'sort'
[ 0%] Updating Go exports file for package 'sort'
[ 0%] Building Go package 'internal/fmtsort' (PIC)
[ 0%] Building Go package 'internal/fmtsort' (non-PIC)
[ 0%] Building Go exports file for package 'internal/fmtsort'
[ 0%] Updating Go exports file for package 'internal/fmtsort'
[ 0%] Updating Go exports file for package 'io'
[ 0%] Updating Go exports file for package 'internal/oserror'
[ 0%] Building Go package 'syscall' (PIC)
/home/oceanfish81/workarea/gollvm_release/tools/gollvm/libgo/sysinfo.go:2383:1: error: expected declaration
/home/oceanfish81/workarea/gollvm_release/tools/gollvm/libgo/sysinfo.go:5355:7: error: redefinition of 'SYS_SENDTO'
/home/oceanfish81/workarea/gollvm_release/tools/gollvm/libgo/sysinfo.go:4:7: note: previous definition of 'SYS_SENDTO' was here
/home/oceanfish81/workarea/gollvm_release/tools/gollvm/libgo/sysinfo.go:5360:7: error: redefinition of 'SYS_SET_MEMPOLICY'
/home/oceanfish81/workarea/gollvm_release/tools/gollvm/libgo/sysinfo.go:6:7: note: previous definition of 'SYS_SET_MEMPOLICY' was here
make[3]: *** [tools/gollvm/libgo/CMakeFiles/libgotool.dir/build.make:3785: tools/gollvm/libgo/.pic/syscall.o] Error 3
make[2]: *** [CMakeFiles/Makefile2:36771: tools/gollvm/libgo/CMakeFiles/libgotool.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:18210: tools/gollvm/CMakeFiles/gollvm.dir/rule] Error 2
make: *** [Makefile:3975: gollvm] Error 2

@advancedwebdeveloper
Copy link
Author

@thanm , here is my log

build log
bug2report.log

@advancedwebdeveloper
Copy link
Author

@thanm , @cherrymui : here is my archived build folder, on Ubuntu 20

@ianlancetaylor ianlancetaylor changed the title gollvm is no building gollvm: redefinition of SYS_SENDTO in sysinfo.go Sep 27, 2020
@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 27, 2020
@ianlancetaylor ianlancetaylor added this to the gollvm milestone Sep 27, 2020
@advancedwebdeveloper
Copy link
Author

CC @jxdhust

@thanm
Copy link
Contributor

thanm commented Sep 28, 2020

I looked at your build artifacts. The file "sysinfo.go" is damaged -- it looks almost as though multiple copies of it are concatenated together. The build log you submitted doesn't include the invocation of mksysinfo.sh, however, so I don't think there's much I can do to tell how things went wrong. I'd suggest deleting your build area and starting over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants