Ticket #25684 (closed defect: fixed)
valgrind-devel 3.6.0-r11208_0 Wrong architecture
| Reported by: | vortexfive@… | Owned by: | raimue@… |
|---|---|---|---|
| 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
Change History
comment:1 Changed 3 years ago by macsforever2000@…
- Owner changed from macports-tickets@… to raimue@…
comment:2 follow-up: ↓ 3 Changed 3 years ago by raimue@…
- Status changed from new to assigned
As I don't have access to a i386-only Mac, could you please provide the config.log for me to debug this?
sudo port clean valgrind-devel sudo port configure valgrind-devel cp $(port work valgrind-devel)/trunk/config.log ~/Desktop
comment:3 in reply to: ↑ 2 Changed 3 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 3 years ago by raimue@…
I found a upstream bug report and attached a reference back to this ticket.
comment:5 Changed 3 years ago by raimue@…
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 3 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 in reply to: ↑ 6 Changed 3 years ago by raimue@…
- Status changed from assigned to closed
- Resolution set to fixed
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.

