sdrangelove build issues on mipsel

Arturo Borrero Gonzalez arturo.borrero.glez at gmail.com
Tue Jul 7 19:38:19 UTC 2015


On 5 July 2015 at 22:46, ew <la at tfc-server.de> wrote:
> I've pushed a change that should allow building on non-intel platforms, try
> building it from master.

This is what I get:

[...]
[ 21%] Building CXX object CMakeFiles/sdrbase.dir/sdrbase/dsp/interpolator.cpp.o
/usr/bin/c++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB
-DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB
-DUSE_FFTW -Dsdrangelove_EXPORTS -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -O3 -DNDEBUG
-fPIC -isystem /usr/include/mipsel-linux-gnu/qt5 -isystem
/usr/include/mipsel-linux-gnu/qt5/QtCore -isystem
/usr/lib/mipsel-linux-gnu/qt5/mkspecs/linux-g++ -isystem
/usr/include/mipsel-linux-gnu/qt5/QtWidgets -isystem
/usr/include/mipsel-linux-gnu/qt5/QtGui -isystem
/usr/include/mipsel-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/mipsel-linux-gnu/qt5/QtMultimedia -isystem
/usr/include/mipsel-linux-gnu/qt5/QtNetwork
-I/tmp/buildd/sdrangelove-2test/obj-mipsel-linux-gnu
-I/tmp/buildd/sdrangelove-2test/include
-I/tmp/buildd/sdrangelove-2test/include-gpl    -fPIC -o
CMakeFiles/sdrbase.dir/sdrbase/dsp/interpolator.cpp.o -c
/tmp/buildd/sdrangelove-2test/sdrbase/dsp/interpolator.cpp
In file included from
/tmp/buildd/sdrangelove-2test/sdrbase/dsp/interpolator.cpp:4:0:
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h: In
member function 'void Interpolator::doInterpolate(int, Complex*)':
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:65:10:
error: '__m128' does not name a type
    const __m128* filter = (const __m128*)&m_alignedTaps[phase * m_nTaps * 2];
          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:66:4:
error: '__m128' was not declared in this scope
    __m128 sum = _mm_setzero_ps();
    ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:70:5:
error: 'sum' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:70:54:
error: '_mm_loadu_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                      ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:70:58:
error: 'filter' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:70:64:
error: '_mm_mul_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:70:65:
error: '_mm_add_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                 ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:19:
error: '__m64' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                   ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:25:
error: expected primary-expression before ')' token
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                         ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:45:
error: 'sum' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                                             ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:85:
error: '_mm_setzero_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

              ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:110:
error: '_MM_SHUFFLE' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                       ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:111:
error: '_mm_shuffle_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                        ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:112:
error: '_mm_add_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                         ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:76:113:
error: '_mm_storel_pi' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:80:10:
error: '__m128' does not name a type
    const __m128* filter = (const __m128*)&m_alignedTaps[phase * m_nTaps * 2];
          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:81:4:
error: '__m128' was not declared in this scope
    __m128 sum = _mm_setzero_ps();
    ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:89:5:
error: 'sum' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:89:54:
error: '_mm_loadu_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                      ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:89:58:
error: 'filter' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:89:64:
error: '_mm_mul_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:89:65:
error: '_mm_add_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                 ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:95:5:
error: 'filter' was not declared in this scope
     filter = (const __m128*)&m_alignedTaps2[phase * m_nTaps * 2 +
todo * 4 - 4];
     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:95:21:
error: ISO C++ forbids declaration of 'type name' with no type
[-fpermissive]
     filter = (const __m128*)&m_alignedTaps2[phase * m_nTaps * 2 +
todo * 4 - 4];
                     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:95:15:
error: expected primary-expression before 'const'
     filter = (const __m128*)&m_alignedTaps2[phase * m_nTaps * 2 +
todo * 4 - 4];
               ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:95:15:
error: expected ')' before 'const'
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:102:5:
error: 'sum' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:102:54:
error: '_mm_loadu_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                      ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:102:58:
error: 'filter' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                          ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:102:64:
error: '_mm_mul_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:102:65:
error: '_mm_add_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadu_ps(src), *filter));
                                                                 ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:108:5:
error: 'sum' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadl_pi(_mm_setzero_ps(),
(const __m64*)src), filter[0]));
     ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:108:66:
error: '_mm_setzero_ps' was not declared in this scope
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadl_pi(_mm_setzero_ps(),
(const __m64*)src), filter[0]));
                                                                  ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:108:76:
error: ISO C++ forbids declaration of 'type name' with no type
[-fpermissive]
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadl_pi(_mm_setzero_ps(),
(const __m64*)src), filter[0]));
                                                                            ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:108:70:
error: expected primary-expression before 'const'
     sum = _mm_add_ps(sum, _mm_mul_ps(_mm_loadl_pi(_mm_setzero_ps(),
(const __m64*)src), filter[0]));
                                                                      ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:108:70:
error: expected ')' before 'const'
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:19:
error: '__m64' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                   ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:25:
error: expected primary-expression before ')' token
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                         ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:45:
error: 'sum' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));
                                             ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:85:
error: '_mm_setzero_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

              ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:110:
error: '_MM_SHUFFLE' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                       ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:111:
error: '_mm_shuffle_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                        ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:112:
error: '_mm_add_ps' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                         ^
/tmp/buildd/sdrangelove-2test/include-gpl/dsp/interpolator.h:112:113:
error: '_mm_storel_pi' was not declared in this scope
    _mm_storel_pi((__m64*)result, _mm_add_ps(sum, _mm_shuffle_ps(sum,
_mm_setzero_ps(), _MM_SHUFFLE(1, 0, 3, 2))));

                                          ^
CMakeFiles/sdrbase.dir/build.make:322: recipe for target
'CMakeFiles/sdrbase.dir/sdrbase/dsp/interpolator.cpp.o' failed
make[3]: *** [CMakeFiles/sdrbase.dir/sdrbase/dsp/interpolator.cpp.o] Error 1
make[3]: Leaving directory '/tmp/buildd/sdrangelove-2test/obj-mipsel-linux-gnu'
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/sdrbase.dir/all' failed
make[2]: *** [CMakeFiles/sdrbase.dir/all] Error 2
make[2]: Leaving directory '/tmp/buildd/sdrangelove-2test/obj-mipsel-linux-gnu'
Makefile:78: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/buildd/sdrangelove-2test/obj-mipsel-linux-gnu'
[...]


-- 
Arturo Borrero González



More information about the osmocom-sdr mailing list