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: error: unrecognized command-line option '-marm' #832

Open
M0dred opened this issue Apr 1, 2024 · 2 comments
Open

gcc: error: unrecognized command-line option '-marm' #832

M0dred opened this issue Apr 1, 2024 · 2 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@M0dred
Copy link

M0dred commented Apr 1, 2024

$ uname -a
Linux raspberrypi 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

$ go install -v github.com/projectdiscovery/katana/cmd/katana@latest
runtime/cgo

runtime/cgo

gcc: error: unrecognized command-line option '-marm'

It looks like you're trying to install the Katana tool from the projectdiscovery GitHub repository, but encountering a compilation error related to the CGo package and an unrecognized gcc compiler flag -marm.

@M0dred M0dred added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Apr 1, 2024
@M0dred
Copy link
Author

M0dred commented Apr 1, 2024

$ go version
go version go1.21.6 linux/arm

$ export GOARCH=arm64 # Adjust based on your actual architecture

$ go install -v github.com/projectdiscovery/katana/cmd/katana@latest
github.com/smacker/go-tree-sitter/javascript
github.com/smacker/go-tree-sitter/javascript: build constraints exclude all Go files in /home/kowalski/go/pkg/mod/github.com/smacker/[email protected]/javascript
github.com/smacker/go-tree-sitter
go/pkg/mod/github.com/smacker/[email protected]/iter.go:17:18: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:21:21: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:25:20: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:30:26: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:34:20: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:38:32: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:43:9: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:46:18: undefined: Node
go/pkg/mod/github.com/smacker/[email protected]/iter.go:68:40: undefined: Node

@M0dred
Copy link
Author

M0dred commented Apr 1, 2024

~/go/bin/linux_arm64 $ ls
anew assetfinder dnsx hakrawler httpx notify subfinder waybackurls
asnmap cvemap gron hakrevdns mapcidr qsreplace uncover

others are working, after export GOARCH=arm64

but katana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

1 participant