YateBTS icon indicating copy to clipboard operation
YateBTS copied to clipboard

RaspberryPi 4B Error Please add support for your architecture in typedefs.h

Open sean-huni opened this issue 8 months ago • 0 comments

Failed to execute the make command on the raspberryPi 4 Model B

make -C ../libs/miniwebrtc
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c constants.c
make[2]: Entering directory '/usr/src/yate/libs/miniwebrtc'
g++ -Wall   -I. -I./audio/common/processing -I./audio/common/vad -I./audio/processing/aec -I./audio/processing/aecm -I./audio/processing/agc -I./audio/processing/ns -I./audio/processing/utility -I./system_wrappers -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -DWEBRTC_NS_FLOAT=true -c -o audio/common/resampler/resampler.o audio/common/resampler/resampler.cc
In file included from ./audio/common/processing/signal_processing_library.h:22,
                 from audio/common/resampler/resampler.cc:19:
./typedefs.h:104:2: error: #error Please add support for your architecture in typedefs.h
  104 | #error Please add support for your architecture in typedefs.h
      |  ^~~~~
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c gainquant.c
gcc -Wall  -I. -I./audio/common/processing -I./audio/common/vad -I./audio/processing/aec -I./audio/processing/aecm -I./audio/processing/agc -I./audio/processing/ns -I./audio/processing/utility -I./system_wrappers -O2 -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -DWEBRTC_NS_FLOAT=true  -c -o audio/common/processing/auto_correlation.o audio/common/processing/auto_correlation.c
In file included from audio/common/processing/signal_processing_library.h:22,
                 from audio/common/processing/auto_correlation.c:18:
./typedefs.h:104:2: error: #error Please add support for your architecture in typedefs.h
  104 | #error Please add support for your architecture in typedefs.h
      |  ^~~~~
make[2]: *** [Makefile:260: audio/common/processing/auto_correlation.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++ -Wall   -I.. -I.. -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -rdynamic -shared -Wl,--unresolved-symbols=ignore-in-shared-libs -Wl,--retain-symbols-file,/dev/null  -o zlibcompress.yate  -I/usr/include zlibcompress.cpp  -L.. -lyate  -lz
make[2]: *** [Makefile:263: audio/common/resampler/resampler.o] Error 1
make[2]: Leaving directory '/usr/src/yate/libs/miniwebrtc'
make[1]: *** [Makefile:448: ../libs/miniwebrtc/libminiwebrtc.a] Error 2
make[1]: *** Waiting for unfinished jobs....
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c layer4.cpp
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c iLBC_decode.c
iLBC_decode.c: In function ‘iLBC_decode’:
iLBC_decode.c:325:9: warning: variable ‘check’ set but not used [-Wunused-but-set-variable]
  325 |     int check;
      |         ^~~~~
In function ‘Decode’,
    inlined from ‘iLBC_decode’ at iLBC_decode.c:483:13:
iLBC_decode.c:244:13: warning: ‘memcpy’ accessing 428 bytes at offsets 0 and 160 overlaps 268 bytes at offset 160 [-Wrestrict]
  244 |             memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iLBC_decode.c:289:13: warning: ‘memcpy’ accessing 428 bytes at offsets 0 and 160 overlaps 268 bytes at offset 160 [-Wrestrict]
  289 |             memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c StateConstructW.c
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c router.cpp
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c createCB.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c getCBvec.c
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c sccp.cpp
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c iLBC_encode.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c StateSearchW.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c doCPLC.c
iLBC_encode.c: In function ‘iLBC_encode’:
iLBC_encode.c:297:13: warning: ‘memcpy’ accessing 428 bytes at offsets 0 and 160 overlaps 268 bytes at offset 160 [-Wrestrict]
  297 |             memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
iLBC_encode.c:367:13: warning: ‘memcpy’ accessing 428 bytes at offsets 0 and 160 overlaps 268 bytes at offset 160 [-Wrestrict]
  367 |             memcpy(mem, mem+SUBL, (CB_MEML-SUBL)*sizeof(float));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c helpfun.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c syntFilter.c
helpfun.c: In function ‘LSF_check’:
helpfun.c:264:11: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]
  264 |     float tmp;
      |           ^~~
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c enhancer.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c hpInput.c
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c tcap.cpp
sccp.cpp: In member function ‘void TelEngine::SS7SCCP::printStatus(bool)’:
sccp.cpp:4449:12: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=]
 4449 |     Output("SCCP '%s' [%p] Time: " FMT64 " Status:%s",debugName(),this,Time::msecNow(),dest.c_str());
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  ~~~~~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     u_int64_t {aka long unsigned int}
In file included from yatesig.h:25,
                 from sccp.cpp:22:
../../yateclass.h:161:19: note: format string is defined here
  161 | #define FMT64 "%lld"
      |                ~~~^
      |                   |
      |                   long long int
      |                %ld
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c LPCdecode.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c filter.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c hpOutput.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c LPCencode.c
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c FrameClassify.c
LPCencode.c: In function ‘LPCencode’:
LPCencode.c:217:9: warning: variable ‘change’ set but not used [-Wunused-but-set-variable]
  217 |     int change=0;
      |         ^~~~~~
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c iCBConstruct.c
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c dumper.cpp
gcc -Wall  -I../.. -O2 -O3 -funroll-loops -fomit-frame-pointer -fsigned-char -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN -c lsf.c
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c management.cpp
ar rcs libilbc.a anaFilter.o iCBSearch.o packing.o constants.o gainquant.o iLBC_decode.o StateConstructW.o createCB.o getCBvec.o iLBC_encode.o StateSearchW.o doCPLC.o helpfun.o syntFilter.o enhancer.o hpInput.o LPCdecode.o filter.o hpOutput.o LPCencode.o FrameClassify.o iCBConstruct.o lsf.o
make[2]: Leaving directory '/usr/src/yate/libs/ilbc'
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c isup.cpp
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c tup.cpp
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c testpart.cpp
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c q921.cpp
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -c q931.cpp
q931.cpp: In member function ‘virtual void TelEngine::ISDNQ931::timerTick(const TelEngine::Time&)’:
q931.cpp:2921:27: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘u_int64_t’ {aka ‘long unsigned int’} [-Wformat=]
 2921 |      Debug(this,DebugWarn,"Layer 2 was down for " FMT64 " ms",m_l2DownTimer.interval());
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                     |
      |                                                                                     u_int64_t {aka long unsigned int}
In file included from yatesig.h:25,
                 from q931.cpp:22:
../../yateclass.h:161:19: note: format string is defined here
  161 | #define FMT64 "%lld"
      |                ~~~^
      |                   |
      |                   long long int
      |                %ld
ar rcs libyatesig.a engine.o address.o sigcall.o sigtran.o interface.o layer2.o layer3.o layer4.o router.o sccp.o tcap.o dumper.o management.o isup.o tup.o testpart.o q921.o q931.o
g++ -Wall  -o ../../libyatesig.so.6.2.1 -shared -Wl,-soname=libyatesig.so.6.2.1 engine.o address.o sigcall.o sigtran.o interface.o layer2.o layer3.o layer4.o router.o sccp.o tcap.o dumper.o management.o isup.o tup.o testpart.o q921.o q931.o -L../.. -lyateasn -lyate
g++ -Wall   -I../.. -I../.. -I. -I../../libs/yasn -O2 -Wno-overloaded-virtual  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK -DHAVE_BLOCK_RETURN  -o yate-ss7test  main-ss7test.cpp -lpthread  -L. -lyatesig -L../.. -lyateasn -lyate
cd ../.. && ln -sf libyatesig.so.6.2.1 libyatesig.so
make[2]: Leaving directory '/usr/src/yate/libs/ysig'
make[1]: Leaving directory '/usr/src/yate/modules'
make: *** [Makefile:186: modules] Error 2

sean-huni avatar Oct 06 '23 18:10 sean-huni