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

Ubuntu 16 - problem to install #66

Open
caiotelles opened this issue Nov 22, 2016 · 5 comments
Open

Ubuntu 16 - problem to install #66

caiotelles opened this issue Nov 22, 2016 · 5 comments

Comments

@caiotelles
Copy link

I was following the Installation guide, but when I executed the make I had some issues.

Can anyone help me?

liquid-dsp$ make
gcc -I . -I include -Wall -fPIC -g -O2 -c -o src/dotprod/src/dotprod_cccf.mmx.o src/dotprod/src/dotprod_cccf.mmx.c
In file included from src/dotprod/src/dotprod_cccf.mmx.c:49:0:
src/dotprod/src/dotprod_cccf.mmx.c: In function ‘dotprod_cccf_execute_mmx’:
/usr/lib/gcc/x86_64-linux-gnu/5/include/pmmintrin.h:50:1: error: inlining failed in call to always_inline ‘_mm_addsub_ps’: target specific option mismatch
_mm_addsub_ps (__m128 __X, __m128 __Y)
^
src/dotprod/src/dotprod_cccf.mmx.c:255:11: error: called from here
s = _mm_addsub_ps( ci, cq );
^
In file included from src/dotprod/src/dotprod_cccf.mmx.c:49:0:
/usr/lib/gcc/x86_64-linux-gnu/5/include/pmmintrin.h:50:1: error: inlining failed in call to always_inline ‘_mm_addsub_ps’: target specific option mismatch
_mm_addsub_ps (__m128 __X, __m128 __Y)
^
src/dotprod/src/dotprod_cccf.mmx.c:255:11: error: called from here
s = _mm_addsub_ps( ci, cq );
^
: recipe for target 'src/dotprod/src/dotprod_cccf.mmx.o' failed
make: *** [src/dotprod/src/dotprod_cccf.mmx.o] Error 1

@brian-armstrong
Copy link
Contributor

Hi,

I believe this is the same issue as #47

@caiotelles
Copy link
Author

Sorry brian, you are correct.

Just to document:

  1. edit the makefile
  2. change the CONFIG_CFLAGS line and add -msse3 (CONFIG_CFLAGS = -g -O2 -msse3)
  3. save the file and NOT rerun ./configure
  4. run make (now will work 👍 )

Thanks people!!

@brian-armstrong
Copy link
Contributor

Another, probably more stable option, is to apply #65 and rerun autoconf (or bootstrap.sh) which will cause configure to emit the right msse flag into the makefile. Then you won't have to worry about accidentally rerunning configure.

@charlieh0tel
Copy link

./configure CFLAGS="-O -msse3"

also works.

cjcliffe added a commit to cjcliffe/CubicSDR-flatpak that referenced this issue Jan 19, 2017
Work around jgaeddert/liquid-dsp#66. This was preventing the image from building.
@rocket-pig
Copy link

2019 Dec, still need the above CFLAGS to compile on Ubuntu 19.04 Lenovo x230.

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

4 participants