Coder Social home page Coder Social logo

ARM support about gore HOT 2 OPEN

goretk avatar goretk commented on July 17, 2024
ARM support

from gore.

Comments (2)

0xdevalias avatar 0xdevalias commented on July 17, 2024

I believe the below is related to this issue (adding here particularly for context of error messages/etc since this issue didn't show up when I searched originally):


$ /opt/homebrew/Cellar/redress/1.1.1/bin/redress info /opt/homebrew/Cellar/redress/1.1.1/bin/redress
panic: Unsupported architecture

goroutine 1 [running]:
github.com/goretk/gore.(*machoFile).getFileInfo(0x1400002c4a0)
	github.com/goretk/[email protected]/macho.go:117 +0xdc
github.com/goretk/gore.Open({0x16f1e6a84, 0x2e})
	github.com/goretk/[email protected]/file.go:86 +0x348
main.listInfo({0x16f1e6a84?, 0x0?})
	github.com/goretk/redress/info.go:50 +0x90
main.init.1.func1(0x140000e6e00?, {0x1400002c300?, 0x4?, 0x100e4f6df?})
	github.com/goretk/redress/info.go:25 +0x30
github.com/spf13/cobra.(*Command).execute(0x140000c4280, {0x1400002c2e0, 0x1, 0x1})
	github.com/spf13/[email protected]/command.go:860 +0x53c
github.com/spf13/cobra.(*Command).ExecuteC(0x1010dd2c0)
	github.com/spf13/[email protected]/command.go:974 +0x318
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:902
main.main()
	github.com/goretk/redress/main.go:25 +0x24

is this only for x86?

Originally posted by @chenrui333 in Homebrew/homebrew-core#155724 (comment)


That seems to be coming from the gore lib that redress depends on:

gore/macho.go

Lines 104 to 123 in 7856820

func (m *machoFile) getFileInfo() *FileInfo {
fi := &FileInfo{
ByteOrder: m.file.ByteOrder,
OS: "macOS",
}
switch m.file.Cpu {
case macho.Cpu386:
fi.WordSize = intSize32
fi.Arch = Arch386
case macho.CpuAmd64:
fi.WordSize = intSize64
fi.Arch = ArchAMD64
case macho.CpuArm64:
fi.WordSize = intSize64
fi.Arch = ArchARM64
default:
panic("Unsupported architecture")
}
return fi
}


What system were you trying to run it on?

Originally posted by @0xdevalias in Homebrew/homebrew-core#155724 (comment)


I am trying on ventura arm, if does not run for arm, then we probably need depends_on arch: :x86_64 as well as some upstream note on it

Originally posted by @chenrui333 in Homebrew/homebrew-core#155724 (comment)

from gore.

0xdevalias avatar 0xdevalias commented on July 17, 2024

@TcM1911 I believe this may have been fixed by @derekparker in:

from gore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.