Opened 14 years ago
Closed 14 years ago
#25684 closed defect (fixed)
valgrind-devel 3.6.0-r11208_0 Wrong architecture
Reported by: | vortexfive@… | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | valgrind-devel |
Description
When running valgrind I get "Bad CPU type in executable". The command "file valgrind" gives "Mach-O 64-bit executable" I use a MacBook with CoreDuo processor (not 64-bit).
Attachments (2)
Change History (9)
comment:1 Changed 14 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to raimue@… |
---|
comment:2 follow-up: 3 Changed 14 years ago by raimue (Rainer Müller)
Status: | new → assigned |
---|
Changed 14 years ago by vortexfive@…
Attachment: | config.log added |
---|
comment:3 Changed 14 years ago by vortexfive@…
Replying to raimue@…:
As I don't have access to a i386-only Mac, could you please provide the
config.log
for me to debug this?
Let me know if there's anything else I can do to help getting this to work again.
comment:4 Changed 14 years ago by raimue (Rainer Müller)
I found a upstream bug report and attached a reference back to this ticket.
Changed 14 years ago by raimue (Rainer Müller)
Attachment: | patch-valgrind-only32bit.diff added |
---|
comment:5 Changed 14 years ago by raimue (Rainer Müller)
Here is a proposed patch which could probably solve the problem:
sudo port -v clean valgrind-devel cd $(port dir valgrind-devel) curl -o patch-valgrind-only32bit.diff http://trac.macports.org/attachment/ticket/25684/patch-valgrind-only32bit.diff?format=raw patch -p0 < patch-valgrind-only32bit.diff sudo port -v install valgrind-devel
Please report back if this solves your problem.
comment:6 follow-up: 7 Changed 14 years ago by vortexfive@…
I get this error:
Error: Unable to open port: invalid bareword "i386" in expression "$build_arch == i386"; should be "$i386" or "{i386}" or "i386(...)" or ...
The option '--enable-only32bit' does indeed fix the problem.
comment:7 Changed 14 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Replying to vortexfive@…:
I get this error:
Error: Unable to open port: invalid bareword "i386" in expression "$build_arch == i386"; should be "$i386" or "{i386}" or "i386(...)" or ...
Gah, forgot quotes around it.
The option '--enable-only32bit' does indeed fix the problem.
Alright, thanks.
Committed in r69942.
As I don't have access to a i386-only Mac, could you please provide the
config.log
for me to debug this?