csdr icon indicating copy to clipboard operation
csdr copied to clipboard

can't make for mac osx

Open cn0xroot opened this issue 7 years ago • 1 comments

make                                
cat: /proc/cpuinfo: No such file or directory
cat: /proc/cpuinfo: No such file or directory
cat: /proc/cpuinfo: No such file or directory
cat: /proc/cpuinfo: No such file or directory
NOTE: you may have to manually edit Makefile to optimize for your CPU (especially if you compile on ARM, please edit PARAMS_NEON).
Auto-detected optimization parameters: -mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS

rm -f dumpvect*.vect
gcc -std=gnu99 -O3 -ffast-math -fdump-tree-vect-details -dumpbase dumpvect -mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mvectorize-with-neon-quad -funsafe-math-optimizations -Wformat=0 -DNEON_OPTS fft_fftw.c libcsdr_wrapper.c  -g -lm -lrt -lfftw3f -DUSE_FFTW -DLIBCSDR_GPL -DUSE_IMA_ADPCM -Wno-unused-result -fpic -shared -o libcsdr.so
clang: error: unknown argument: '-fdump-tree-vect-details'
clang: error: unknown argument: '-mvectorize-with-neon-quad'
clang: error: no such file or directory: 'dumpvect'
make: *** [libcsdr.so] Error 1

cn0xroot avatar Mar 20 '17 03:03 cn0xroot

I've fixed the /proc/cpuinfo error, from a fork, I take no credit for it. Remove line 31 of Makefile and replace with

CPUFEATURES = $(shell sysctl -a | grep machdep.cpu.features | tr [A-Z] [a-z])
cpufeature = $(if $(findstring $(1),$(CPUFEATURES)),$(2))

as for the clang errors I'm at a loss

zapme avatar Aug 22 '17 23:08 zapme