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)
Change History (4)
comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | unknown-architecture-i386.patch added |
---|
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: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
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.