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

gcc: fatal error: cannot read spec file ‘./specs’: Is a directory #3272

Closed
0mustafasevinc0 opened this issue Mar 25, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working external Issues created by non node team members

Comments

@0mustafasevinc0
Copy link

0mustafasevinc0 commented Mar 25, 2024

Celestia Node version

v0.13.1

OS

Linux Mint 20.1

Install tools

No response

Others

No response

Steps to reproduce it

$ ver="1.21.1"
$ cd $HOME
$ wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
$ sudo rm -rf /usr/local/go
$ sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
$ rm "go$ver.linux-amd64.tar.gz"
$ echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
$ source $HOME/.bash_profile
$ cd $HOME
$ rm -rf celestia-node
$ git clone https://github.com/celestiaorg/celestia-node.git
$ git checkout tags/v0.13.1
$ make build

Expected result

well done

Actual result

go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.2
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
go: downloading golang.org/x/time v0.5.0
github.com/celestiaorg/celestia-node/cmd/celestia
/home/walue/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
gcc: fatal error: cannot read spec file ‘./specs’: Is a directory
compilation terminated.

make: *** [Makefile:38: build] Error 1

Relevant log output

No response

Notes

No response

@0mustafasevinc0 0mustafasevinc0 added the bug Something isn't working label Mar 25, 2024
@github-actions github-actions bot added the external Issues created by non node team members label Mar 25, 2024
@ramin ramin self-assigned this Mar 26, 2024
@ramin
Copy link
Contributor

ramin commented May 8, 2024

@0mustafasevinc0 i spent some time trying to recreate this on a fresh box (though not linux mint) and didn't run into similar issues. My guess is

  • there is some config in you go toolchain and how you set that up that is incorrect
  • some config in your profile that is potentially setting some GCC flag override

Can you try with latest and verify your go installation is correct and see if things work. Also, ensure you are on go 1.22 going forward. Let me know if you still have issues

@ramin ramin closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external Issues created by non node team members
Projects
None yet
Development

No branches or pull requests

2 participants