v1.12 make fails on maxOS Monterey 12.5.1 M1 cpu

Open
#557 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
build-system

Research direction

Start by reproducing make on macOS Monterey 12.5.1 with an M1 CPU and focus on the compile command for include/pcre/pcre_chartables.c. Trace where the -msse2 and -mfpmath=sse flags are set, then confirm that the build completes without the unknown FP unit error.

Written by the indexing model from the issue text.

Description

brew bundle seems to work, make fails:

% brew bundle
==> Tapping homebrew/bundle
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-bundle'...
remote: Enumerating objects: 6720, done.
remote: Counting objects: 100% (794/794), done.
remote: Compressing objects: 100% (192/192), done.
remote: Total 6720 (delta 666), reused 677 (delta 602), pack-reused 5926
Receiving objects: 100% (6720/6720), 1.55 MiB | 4.10 MiB/s, done.
Resolving deltas: 100% (3952/3952), done.
Tapped 1 command (98 files, 1.9MB).
Installing cmake
Installing jpeg-turbo
Installing libpng
Installing sdl2
Installing libogg
Installing libvorbis
Installing openal-soft
Installing mbedtls@2
Installing libuv
Installing openssl
Installing sqlite
Homebrew Bundle complete! 11 Brewfile dependencies now installed.

% make
cc -Wall -O3 -I src -msse2 -mfpmath=sse -std=c11 -D LIBHL_EXPORTS -m64 -I include -I /usr/local/include -I /usr/local/opt/libjpeg-turbo/include -I /usr/local/opt/jpeg-turbo/include -I /usr/local/opt/sdl2/include/SDL2 -I /usr/local/opt/libvorbis/include -I /usr/local/opt/openal-soft/include -Dopenal_soft  -DGL_SILENCE_DEPRECATION -o include/pcre/pcre_chartables.o -c include/pcre/pcre_chartables.c 
clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
error: unknown FP unit 'sse'
make: *** [include/pcre/pcre_chartables.o] Error 1
Dominant language
C
Stars
911
Forks
207
Avg merge
1d 21h
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hashlink

All issues in HaxeFoundation/hashlink

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.