Opened 5 years ago

Closed 5 years ago

#58870 closed defect (fixed)

ispc @1.11.0: Unknown architecture i386

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: ispc

Description

ispc fails to build on Mac OS X 10.6. The error is:

CMake Error at examples/cmake/AddISPCExample.cmake:90 (message):
  Unknown architecture i386

The error message is incorrect. This is not an i386 machine; it's an x86_64 machine. The AddISPCExample.cmake script is misusing the output of the uname -m command, erroneously believing it represents the architecture of userland software. On macOS, uname -m tells you the architecture of the kernel, not the architecture of userland software. On an x86_64 machine it is perfectly possible to run x86_64 software while booted to the i386 kernel, and Snow Leopard does use that configuration on some hardware, including the hardware we use for the buildbot.

Attachments (2)

unknown-architecture-i386.patch (1.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.
Portfile-ispc.diff (459 bytes) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

Actually it looks like it's just looking specifically for the values x86_64 and i686, and classifying them both as x86. So the fix is probably just to add i386 to the list as another alias for x86. The attached patch changes the 3 copies of this list that I found in the code but I haven't tested if that fixes it.

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile-ispc.diff added

comment:2 Changed 5 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed

In 2d78c96509b0749e78c4269631f7084fd25aac1e/macports-ports (master):

ispc: add unknown-architecture-i386.patch

Closes: #58870

Note: See TracTickets for help on using tickets.