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

An error occurs when run go run studio.go #764

Open
rmd1710714107 opened this issue Feb 6, 2024 · 3 comments
Open

An error occurs when run go run studio.go #764

rmd1710714107 opened this issue Feb 6, 2024 · 3 comments
Labels
type/question Type: question about the product

Comments

@rmd1710714107
Copy link

Question

when i run go run studio.go, i get the error as below:

# runtime/cgo
gcc_libinit_windows.c: 在函数‘_cgo_beginthread’中:
gcc_libinit_windows.c:143:27: 错误:implicit declaration of function ‘_beginthread’; did you mean ‘_cgo_beginthread’? [-Werror=implicit-function-declaration]
  143 |                 thandle = _beginthread(func, 0, arg);
      |                           ^~~~~~~~~~~~
      |                           _cgo_beginthread
cc1:所有的警告都被当作是错误

Environment

  • win11 64bit
  • go version go1.21.6 windows/amd64
  • gcc 版本 11.4.0 (GCC)
gcc -v
使用内建 specs。
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/11/lto-wrapper.exe
目标:x86_64-pc-cygwin
配置为:/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-11.4.0/configure --srcdir=/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-11.4.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --with-gcc-major-version-only --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,d,fortran,lto,objc,obj-c++,jit --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --enable-libquadmath --enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers --disable-multilib --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
线程模型:posix
Supported LTO compression algorithms: zlib zstd
gcc 版本 11.4.0 (GCC)

how can I resolve this question?

@QingZ11
Copy link

QingZ11 commented Feb 6, 2024

go run studio.go

🤔 how did you install nebula-studio?

你是如何安装 studio 的?

@QingZ11 QingZ11 added the type/question Type: question about the product label Feb 6, 2024
@rmd1710714107
Copy link
Author

rmd1710714107 commented Feb 6, 2024

go run studio.go

🤔 how did you install nebula-studio?

你是如何安装 studio 的?

直接克隆的本仓库代码,然后运行的

@huaxiabuluo
Copy link
Contributor

尝试将 golang 版本降级到 1.18 或者 1.20 试下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

3 participants