You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
macOS Monterey 12.2.1, Apple M1 Max
Problems Description
Hi,
I'm trying to get libffi tests running on Mac M1 and facing multiple issues. I'm going to open separate tickets for different issues. In this ticket, I'm building the latest released version and running make check:
git clone https://github.com/libffi/libffi
cd libffi
git checkout v3.4.2
./autogen.sh
CC=clang CXX=clang++ ./configure
make
make check
looking at libffi/aarch64-apple-darwin21.3.0/testsuite/libffi.log:
ld: the target architecture doesn't support executable stacksclang: error: linker command failed with exit code 1 (use -v to see invocation)compiler exited with status 1FAIL: libffi.bhaible/test-call.c -W -Wall -DDGTEST=1 -Wno-unused-variable -Wno-unused-parameter -Wno-uninitialized -O0 (test for excess errors)
I was able to get pass the compilation issue by commenting out these lines:
MAKE aarch64-apple-darwin21.3.0 : 0 * check
Making check in include
make[2]: Nothing to be done for `check'.
Making check in testsuite
/Library/Developer/CommandLineTools/usr/bin/make check-DEJAGNU
srcdir='../../testsuite'; export srcdir; \
EXPECT=expect; export EXPECT; \
if /bin/sh -c "runtest --version" > /dev/null 2>&1; then \
exit_status=0; l='libffi'; for tool in $l; do \
if runtest --tool $tool --srcdir $srcdir ; \
then :; else exit_status=1; fi; \
done; \
else echo "WARNING: could not find 'runtest'" 1>&2; :;\
fi; \
exit $exit_status
WARNING: Couldn't find the global config file.
Using ../../testsuite/lib/libffi.exp as tool init file.
Test run by vfomin on Tue Mar 8 09:44:45 2022
Native configuration is aarch64-apple-darwin21.3.0
=== libffi tests ===
Schedule of variations:
unix
Running target unix
Using /opt/homebrew/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /opt/homebrew/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../testsuite/config/default.exp as tool-and-target-specific interface file.
Running ../../testsuite/libffi.bhaible/bhaible.exp ...
Running ../../testsuite/libffi.call/call.exp ...
Running ../../testsuite/libffi.closures/closure.exp ...
Running ../../testsuite/libffi.complex/complex.exp ...
Running ../../testsuite/libffi.go/go.exp ...
=== libffi Summary ===
# of expected passes 548
# of unsupported tests 209
Making check in man
make[2]: Nothing to be done for `check'.
Making check in doc
make[2]: Nothing to be done for `check'.
make[2]: Nothing to be done for `check-am'.
This ticket focuses on solving the build issue and I'm going to open a separate ticket to look into failures. Thanks for looking into this!
The text was updated successfully, but these errors were encountered:
System Details
config.guess:
clang:
macOS Monterey 12.2.1, Apple M1 Max
Problems Description
Hi,
I'm trying to get libffi tests running on Mac M1 and facing multiple issues. I'm going to open separate tickets for different issues. In this ticket, I'm building the latest released version and running
make check
:git clone https://github.com/libffi/libffi cd libffi git checkout v3.4.2 ./autogen.sh CC=clang CXX=clang++ ./configure make make check
looking at
libffi/aarch64-apple-darwin21.3.0/testsuite/libffi.log
:I was able to get pass the compilation issue by commenting out these lines:
libffi/testsuite/lib/libffi.exp
Lines 375 to 380 in f9ea416
The tests pass:
This ticket focuses on solving the build issue and I'm going to open a separate ticket to look into failures. Thanks for looking into this!
The text was updated successfully, but these errors were encountered: