Opened 4 years ago

Closed 3 years ago

#62664 closed defect (fixed)

box2d @2.4.1 build failure on arm64: math_test.cpp:43:3: error: invalid token in expression

Reported by: petrvokac Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc:
Port: box2d

Description (last modified by jmroot (Joshua Root))

Continue? [Y/n]: 
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Fetching archive for box2d
--->  Attempting to fetch box2d-2.4.1_0.darwin_20.arm64.tbz2 from https://packages.macports.org/box2d
--->  Attempting to fetch box2d-2.4.1_0.darwin_20.arm64.tbz2 from https://cph.dk.packages.macports.org/box2d
--->  Attempting to fetch box2d-2.4.1_0.darwin_20.arm64.tbz2 from https://lil.fr.packages.macports.org/box2d
--->  Fetching distfiles for box2d
--->  Verifying checksums for box2d
--->  Extracting box2d
--->  Configuring box2d
--->  Building box2d
Error: Failed to build box2d: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_box2d/box2d/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libreoffice failed

pmm:box2d pet$ uname -a
Darwin pmm.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

Attachments (1)

main.log (248.0 KB) - added by petrvokac 4 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_box2d/box2d/main.log

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by petrvokac

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_box2d/box2d/main.log

comment:1 Changed 4 years ago by kencu (Ken)

The doctest.h header needs to be tweaked for arm64 Macs, as it's defining Intel asm here.

There are some other examples of this recently.

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: arm64 added
Owner: set to stromnov
Port: box2d added
Status: newassigned
Summary: box2d math_test.cpp:43:3: error: invalid token in expressionbox2d @2.4.1 build failure on arm64: math_test.cpp:43:3: error: invalid token in expression

comment:3 Changed 3 years ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In 37cbbd760177dbb8303be710f864f91d9e516750/macports-ports (master):

box2d: disable unit test

Unit test use ASM instruction that prevents this porta to build.

This port haven't use unit test => disable them doesn't change anything.

Closes: #62664

Note: See TracTickets for help on using tickets.