projectdiscovery / katana

A next-generation crawling and spidering framework.
MIT License
10.93k stars 580 forks source link

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

Open M0dred opened 6 months ago

M0dred commented 6 months ago

$ 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 commented 6 months ago

$ 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/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/javascript github.com/smacker/go-tree-sitter go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:17:18: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:21:21: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:25:20: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:30:26: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:34:20: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:38:32: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:43:9: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:46:18: undefined: Node go/pkg/mod/github.com/smacker/go-tree-sitter@v0.0.0-20230720070738-0d0a9f78d8f8/iter.go:68:40: undefined: Node

M0dred commented 6 months ago

~/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