Skip to content

Commit

Permalink
[pull] main from openvenues:master (#20)
Browse files Browse the repository at this point in the history
* docs: spelling/grammar fixes (openvenues#649)

* docs: ARM flags (openvenues#652)

Extend the `--disable-sse2` comment to also include ARM64-based linux releases. Without this, the following error occurs:

```
libtool: compile:  gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ec2-user/libpostal-training/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-address_dictionary.lo -MD -MP -MF .deps/libpostal_la-address_dictionary.Tpo -c address_dictionary.c  -fPIC -DPIC -o .libs/libpostal_la-address_dictionary.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR=\"/home/ec2-user/libpostal-training/libpostal\" -g -mfpmath=sse -msse2 -DUSE_SSE -g -O2 -O2 -D LIBPOSTAL_EXPORTS -MT libpostal_la-expand.lo -MD -MP -MF .deps/libpostal_la-expand.Tpo -c expand.c  -fPIC -DPIC -o .libs/libpostal_la-expand.o
make[2]: *** [libpostal_la-strndup.lo] Error 1
gcc: error: unrecognized command line option '-mfpmath=sse'
gcc: error: unrecognized command line option '-msse2'
gcc: error: unrecognized command line option '-mfpmath=sse'
gcc: error: unrecognized command line option '-msse2'
make[2]: *** [libpostal_la-expand.lo] Error 1
make[2]: *** [libpostal_la-address_dictionary.lo] Error 1
make[2]: Leaving directory `/home/ec2-user/libpostal/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/libpostal'
make: *** [all] Error 2
```

---------

Co-authored-by: JenTing <[email protected]>
Co-authored-by: oskar700 <[email protected]>
Co-authored-by: Kristofer M White <[email protected]>
  • Loading branch information
4 people authored Jan 30, 2024
1 parent b3253b1 commit 88dc287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ brew install curl autoconf automake libtool pkg-config

Then to install the C library:

If you're using an M1 Mac, add `--disable-sse2` to the `./configure` command. This will result in poorer performance but the build will succeed.
If you're using an M1 Mac or ARM64-based linux distro, add `--disable-sse2` to the `./configure` command. This will result in poorer performance but the build will succeed.

```
git clone https://github.com/openvenues/libpostal
Expand Down

0 comments on commit 88dc287

Please sign in to comment.