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)

config.log (157.2 KB) - added by vortexfive@… 14 years ago.
patch-valgrind-only32bit.diff (478 bytes) - added by raimue (Rainer Müller) 14 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to raimue@…

comment:2 Changed 14 years ago by raimue (Rainer Müller)

Status: newassigned

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

Changed 14 years ago by vortexfive@…

Attachment: config.log added

comment:3 in reply to:  2 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)

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 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 in reply to:  6 Changed 14 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.