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

"make" installation error #1

Open
HugoChateauLaurent opened this issue Feb 21, 2020 · 2 comments
Open

"make" installation error #1

HugoChateauLaurent opened this issue Feb 21, 2020 · 2 comments

Comments

@HugoChateauLaurent
Copy link

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
@HugoChateauLaurent
Copy link
Author

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

@turian
Copy link

turian commented Mar 6, 2021

@HugoChateauLaurent see here: #3

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

2 participants