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

invalid reference to net.internetSocket #270

Open
BirkhoffLee opened this issue Oct 31, 2024 · 4 comments
Open

invalid reference to net.internetSocket #270

BirkhoffLee opened this issue Oct 31, 2024 · 4 comments

Comments

@BirkhoffLee
Copy link

本项目是基于Linux/macOS的,请确认您遇到的问题是否在Linux或macOS上存在。

你正在使用哪个版本的 nexttrace?

macOS_arm64

你看到的异常现象是什么?

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Building subPackage .
# github.com/nxtrace/NTrace-core
link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket

你期待看到的正常表现是怎样的?

should build without error

请附上你的命令

$ nix-env -iA nixpkgs.nexttrace
installing 'nexttrace-1.3.5'
this derivation will be built:
  /nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv
building '/nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Running phase: buildPhase
Building subPackage .
# github.com/nxtrace/NTrace-core
link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket
error: builder for '/nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Building subPackage .
       > # github.com/nxtrace/NTrace-core
       > link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket
       For full logs, run 'nix log /nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv'.

请附上出错时软件输出的错误信息

是否查询过本仓库wiki有没有类似错误

@tsosunchia
Copy link
Member

macOS可以使用readme里提到的安装方法,该issue提到的方法没有测试过

不过通过观察错误代码,我猜测问题出在此安装方法在编译时使用的golang版本上,对于版本的选择可查看此issue #257

BirkhoffLee added a commit to BirkhoffLee/nixpkgs that referenced this issue Oct 31, 2024
This project is meant to be build on Go 1.22 instead of any later versions

References:
- nxtrace/NTrace-core#270
- nxtrace/NTrace-core#257
@FyZhu97
Copy link

FyZhu97 commented Nov 4, 2024

So are there plans to support go 1.23+ ?

@tsosunchia
Copy link
Member

由于go 1.23进行了一些改动,暂时没有办法升级

@tsosunchia
Copy link
Member

参考:
#247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants