learnfm icon indicating copy to clipboard operation
learnfm copied to clipboard

"make" installation error

Open huguettecl opened this issue 5 years ago • 2 comments

When I run "make" from the dx7core folder, I get the following:

g++ -Wall -O  -c dx7note.cc
In file included from fm_core.h:20:0,
                 from dx7note.h:28,
                 from dx7note.cc:26:
aligned_buf.h:24:22: error: ‘size_t’ has not been declared
 template<typename T, size_t size, size_t alignment = 16>
                      ^
aligned_buf.h:24:35: error: ‘size_t’ has not been declared
 template<typename T, size_t size, size_t alignment = 16>
                                   ^
Makefile:15: recipe for target 'dx7note.o' failed
make: *** [dx7note.o] Error 1

Specifications:

  • Ubuntu 16.04 LTS
  • gcc 5.4.0

huguettecl avatar Feb 21 '20 21:02 huguettecl

Running the python module install command with Anaconda python 3.7 yields:

running install
running build
running build_ext
building 'dx7' extension
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/CTN/include/python3.7m -c freqlut.cc -o build/temp.linux-x86_64-3.7/freqlut.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/CTN/include/python3.7m -c fm_op_kernel.cc -o build/temp.linux-x86_64-3.7/fm_op_kernel.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/CTN/include/python3.7m -c exp2.cc -o build/temp.linux-x86_64-3.7/exp2.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/CTN/include/python3.7m -c sawtooth.cc -o build/temp.linux-x86_64-3.7/sawtooth.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/CTN/include/python3.7m -c fir.cc -o build/temp.linux-x86_64-3.7/fir.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from fir.cc:22:0:
aligned_buf.h: In member function ‘T* AlignedBuf<T, size, alignment>::get()’:
aligned_buf.h:28:21: error: ‘intptr_t’ was not declared in this scope
     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
                     ^
aligned_buf.h:28:30: error: expected ‘)’ before ‘storage_’
     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
                              ^
aligned_buf.h:28:70: error: expected ‘)’ before ‘;’ token
     return (T *)((((intptr_t)storage_) + alignment - 1) & -alignment);
                                                                      ^
aligned_buf.h:28:70: error: expected ‘)’ before ‘;’ token
fir.cc: In destructor ‘HalfRateFirFilter::~HalfRateFirFilter()’:
fir.cc:91:10: warning: deleting object of abstract class type ‘FirFilter<float, float>’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete f0;
          ^
fir.cc:92:10: warning: deleting object of abstract class type ‘FirFilter<float, float>’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete f1;
          ^
fir.cc:93:10: warning: deleting object of abstract class type ‘FirFilter<float, float>’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete f2;
          ^
fir.cc: In member function ‘virtual void SseFirFilter::process(const float*, float*, size_t)’:
fir.cc:218:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < nk; i += 4) {
                     ^
fir.cc:236:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < n; i += 4) {
                     ^
fir.cc:242:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < nk; j += 4) {
                       ^
error: command 'gcc' failed with exit status 1

huguettecl avatar Feb 21 '20 21:02 huguettecl

@HugoChateauLaurent see here: https://github.com/bwhitman/learnfm/pull/3

turian avatar Mar 06 '21 22:03 turian