Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile fails: "error: unknown FP unit 'sse'" #635

Closed
bguiz opened this issue Dec 1, 2023 · 2 comments
Closed

compile fails: "error: unknown FP unit 'sse'" #635

bguiz opened this issue Dec 1, 2023 · 2 comments

Comments

@bguiz
Copy link

bguiz commented Dec 1, 2023

What

The make step fails.

The error is:

clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
error: unknown FP unit 'sse'

Steps to reproduce

git clone git@github.com:HaxeFoundation/hashlink.git
cd hashlink
brew bundle
# Using mbedtls@2
#                    Error: Could not symlink bin/cert_app
# Target /opt/homebrew/bin/cert_app
# is a symlink belonging to mbedtls.
brew link --overwrite mbedtls@2
make
# make: ./hl: Command not found
# 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 -I /usr/local/opt/libvorbis/include -I /usr/local/opt/openal-soft/include -Dopenal_soft  -DGL_SILENCE_DEPRECATION -o include/pcre/pcre2_auto_possess.o -c include/pcre/pcre2_auto_possess.c -I include/pcre -D HAVE_CONFIG_H -D PCRE2_CODE_UNIT_WIDTH=16
# clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
# error: unknown FP unit 'sse'
# make: *** [include/pcre/pcre2_auto_possess.o] Error 1

System info

Device: MacBook Pro
Chip: Apple M1 Max
Memory: 32GB
macOS: Ventura 13.4.1 (c)

@bguiz
Copy link
Author

bguiz commented Dec 1, 2023

this issue looks like it could be related: #457

... however, it is closed, implying it has been resolved.
Should there be separate instructions for building with the M1 chips in the README perhaps? (The comments in the linked issue aren't clear what the resolution should be)

@Simn
Copy link
Member

Simn commented Dec 1, 2023

#611

@Simn Simn closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants