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

detection of atomicity.h #2

Closed
g-roma opened this issue Jul 2, 2013 · 5 comments
Closed

detection of atomicity.h #2

g-roma opened this issue Jul 2, 2013 · 5 comments

Comments

@g-roma
Copy link

g-roma commented Jul 2, 2013

On OSX 10.8 compilation fails at atomic.h because it tries to find atomicity.h as <bits/atomicity.h>. It looks like it may be a problem with ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED

@wackou
Copy link
Contributor

wackou commented Jul 7, 2013

works here, osx 10.8, clang 4.0...

What's your config / the output of "./waf -v" ?

@g-roma
Copy link
Author

g-roma commented Jul 11, 2013

this is with clang 4.2, not sure about what are you asking for ... waf -v compiles in verbose mode.
In the end I get:
(...)/essentia/src/utils/atomic.h:81:14: fatal error: 'bits/atomicity.h' file not found
Changing 'bits' for 'ext' works fine

@wackou
Copy link
Contributor

wackou commented Jul 12, 2013

can you paste the last, say, 30 lines of the log output, please? Have no problem here, so I need to identify the problem with some context.

Also, can you show the result of which clang to see where it gets it? Do you also have a clang in your /usr/bin?

@g-roma
Copy link
Author

g-roma commented Jul 17, 2013

yes clang is in /usr/bin
clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix

And here goes all the output, with some markdown parsing by github :)

ccpn-42-207:essentia gerard$ ./waf configure --mode=release --with-python --with-cpptests --with-examples --with-vamp
Setting top to : /Users/gerard/dev/essentia/essentia
Setting out to : /Users/gerard/dev/essentia/essentia/buildw
→ configuring the project in /Users/gerard/dev/essentia/essentia
→ Building in release mode
Checking for 'g++' (c++ compiler) : clang++
Checking for 'gcc' (c compiler) : clang
Checking for program pkg-config : /usr/local/bin/pkg-config
Checking for 'libavcodec' : yes
Checking for 'libavformat' : yes
Checking for 'libavutil' : yes
Checking for 'libswresample' : not found
Checking for 'taglib' : yes
Checking for 'yaml-0.1' : yes
Checking for 'fftw3f' : yes
Checking for 'samplerate' : yes
Checking for program python : /Library/Frameworks/EPD64.framework/Versions/Current/bin/python
Checking for python version : (2, 7, 3, 'final', 0)
Checking for library python2.7 in LIBDIR : yes
Checking for program /Library/Frameworks/EPD64.framework/Versions/Current/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config : /Library/Frameworks/EPD64.framework/Versions/Current/bin/python-config
Checking for header Python.h : yes

================================ CONFIGURATION SUMMARY ================================

  • FFmpeg / libav detected!
    The following algorithms will be included: ['AudioLoader', 'MonoLoader', 'EqloudLoader', 'EasyLoader', 'MonoWriter', 'AudioWriter']
  • FFmpeg install with swresample support seems to be missing.
    Will be using an embedded copy for doing audio conversion
  • libsamplerate (SRC) detected!
    The following algorithms will be included: ['Resample']
  • TagLib detected!
    The following algorithms will be included: ['MetadataReader']

'configure' finished successfully (1.137s)
ccpn-42-207:essentia gerard$ ./waf
Waf: Entering directory `/Users/gerard/dev/essentia/essentia/buildw'
→ building from /Users/gerard/dev/essentia/essentia
→ building from /Users/gerard/dev/essentia/essentia/src
Building all the algorithms
Ignoring the following algorithms: GaiaTransform
→ building from /Users/gerard/dev/essentia/essentia/src/examples
→ building from /Users/gerard/dev/essentia/essentia/src/python
[ 1/310] cxx: src/base/algorithm.cpp -> buildw/src/base/algorithm.cpp.1.o
[ 2/310] cxx: src/base/configurable.cpp -> buildw/src/base/configurable.cpp.1.o
[ 3/310] cxx: src/base/connector.cpp -> buildw/src/base/connector.cpp.1.o
[ 4/310] cxx: src/base/debugging.cpp -> buildw/src/base/debugging.cpp.1.o
[ 5/310] cxx: src/base/essentia.cpp -> buildw/src/base/essentia.cpp.1.o
[ 6/310] cxx: src/base/essentiautil.cpp -> buildw/src/base/essentiautil.cpp.1.o
[ 7/310] cxx: src/base/parameter.cpp -> buildw/src/base/parameter.cpp.1.o
[ 8/310] cxx: src/base/pool.cpp -> buildw/src/base/pool.cpp.1.o
[ 9/310] cxx: src/base/range.cpp -> buildw/src/base/range.cpp.1.o
[ 10/310] cxx: src/base/sinkbase.cpp -> buildw/src/base/sinkbase.cpp.1.o
[ 11/310] cxx: src/base/sourcebase.cpp -> buildw/src/base/sourcebase.cpp.1.o
[ 12/310] cxx: src/base/stringutil.cpp -> buildw/src/base/stringutil.cpp.1.o
[ 13/310] cxx: src/scheduler/network.cpp -> buildw/src/scheduler/network.cpp.1.o
[ 14/310] cxx: src/scheduler/networkparser.cpp -> buildw/src/scheduler/networkparser.cpp.1.o
[ 15/310] cxx: src/streaming/accumulatoralgorithm.cpp -> buildw/src/streaming/accumulatoralgorithm.cpp.1.o
[ 16/310] cxx: src/streaming/algorithms/devnull.cpp -> buildw/src/streaming/algorithms/devnull.cpp.1.o
[ 17/310] cxx: src/streaming/algorithms/poolstorage.cpp -> buildw/src/streaming/algorithms/poolstorage.cpp.1.o
[ 18/310] cxx: src/streaming/streamingalgorithm.cpp -> buildw/src/streaming/streamingalgorithm.cpp.1.o
[ 19/310] cxx: src/streaming/streamingalgorithmcomposite.cpp -> buildw/src/streaming/streamingalgorithmcomposite.cpp.1.o
[ 20/310] cxx: src/streaming/streamingalgorithmwrapper.cpp -> buildw/src/streaming/streamingalgorithmwrapper.cpp.1.o
[ 21/310] cxx: src/utils/asciidag.cpp -> buildw/src/utils/asciidag.cpp.1.o
[ 22/310] cxx: src/utils/asciidagparser.cpp -> buildw/src/utils/asciidagparser.cpp.1.o
[ 23/310] cxx: src/utils/audiocontext.cpp -> buildw/src/utils/audiocontext.cpp.1.o
[ 24/310] cxx: src/utils/splineutil.cpp -> buildw/src/utils/splineutil.cpp.1.o
In file included from ../src/utils/audiocontext.cpp:20:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/audiocontext.h:26:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/ffmpegapi.h:48:
/usr/local/Cellar/ffmpeg/0.8/include/libavcodec/avcodec.h:525:1: warning: attribute 'deprecated' is ignored, place it after "enum" to apply attribute to type declaration [-Wignored-attributes]
attribute_deprecated enum AVLPCType {
^
/usr/local/Cellar/ffmpeg/0.8/include/libavutil/attributes.h:85:49: note: expanded from macro 'attribute_deprecated'

define attribute_deprecated attribute((deprecated))

                                            ^

../src/utils/audiocontext.cpp:66:46: warning: implicit conversion of NULL constant to 'int' [-Wnull-conversion]
_avStream = avformat_new_stream(_demuxCtx, NULL);
~~~~~~~~~~~~~~~~~~~ ^~~~
0
2 warnings generated.
[ 25/310] cxx: src/utils/yamlast.cpp -> buildw/src/utils/yamlast.cpp.1.o
[ 26/310] cxx: src/algorithms/essentia_algorithms_reg.cpp -> buildw/src/algorithms/essentia_algorithms_reg.cpp.1.o
[ 27/310] cxx: src/algorithms/extractor/rhythmextractor2013.cpp -> buildw/src/algorithms/extractor/rhythmextractor2013.cpp.1.o
[ 28/310] cxx: src/algorithms/rhythm/rhythmdescriptors.cpp -> buildw/src/algorithms/rhythm/rhythmdescriptors.cpp.1.o
[ 29/310] cxx: src/algorithms/spectral/hpcp.cpp -> buildw/src/algorithms/spectral/hpcp.cpp.1.o
[ 30/310] cxx: src/algorithms/io/fileoutputproxy.cpp -> buildw/src/algorithms/io/fileoutputproxy.cpp.1.o
[ 31/310] cxx: src/algorithms/sfx/maxtototal.cpp -> buildw/src/algorithms/sfx/maxtototal.cpp.1.o
[ 32/310] cxx: src/algorithms/tonal/harmonicpeaks.cpp -> buildw/src/algorithms/tonal/harmonicpeaks.cpp.1.o
[ 33/310] cxx: src/algorithms/spectral/maxmagfreq.cpp -> buildw/src/algorithms/spectral/maxmagfreq.cpp.1.o
[ 34/310] cxx: src/algorithms/spectral/strongpeak.cpp -> buildw/src/algorithms/spectral/strongpeak.cpp.1.o
[ 35/310] cxx: src/algorithms/spectral/spectralwhitening.cpp -> buildw/src/algorithms/spectral/spectralwhitening.cpp.1.o
[ 36/310] cxx: src/algorithms/tonal/tonicindianartmusic.cpp -> buildw/src/algorithms/tonal/tonicindianartmusic.cpp.1.o
[ 37/310] cxx: src/algorithms/temporal/larm.cpp -> buildw/src/algorithms/temporal/larm.cpp.1.o
[ 38/310] cxx: src/algorithms/standard/stereodemuxer.cpp -> buildw/src/algorithms/standard/stereodemuxer.cpp.1.o
[ 39/310] cxx: src/algorithms/tonal/inharmonicity.cpp -> buildw/src/algorithms/tonal/inharmonicity.cpp.1.o
[ 40/310] cxx: src/algorithms/stats/instantpower.cpp -> buildw/src/algorithms/stats/instantpower.cpp.1.o
[ 41/310] cxx: src/algorithms/io/monoloader.cpp -> buildw/src/algorithms/io/monoloader.cpp.1.o
[ 42/310] cxx: src/algorithms/extractor/tuningfrequencyextractor.cpp -> buildw/src/algorithms/extractor/tuningfrequencyextractor.cpp.1.o
[ 43/310] cxx: src/algorithms/standard/noiseadder.cpp -> buildw/src/algorithms/standard/noiseadder.cpp.1.o
[ 44/310] cxx: src/algorithms/io/monowriter.cpp -> buildw/src/algorithms/io/monowriter.cpp.1.o
[ 45/310] cxx: src/algorithms/io/ringbufferoutput.cpp -> buildw/src/algorithms/io/ringbufferoutput.cpp.1.o
In file included from ../src/algorithms/io/ringbufferoutput.cpp:21:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/ringbufferimpl.h:23:
/Users/gerard/dev/essentia/essentia/src/utils/atomic.h:81:14: fatal error: 'bits/atomicity.h' file not found

include <bits/atomicity.h>

         ^

1 error generated.
In file included from ../src/algorithms/io/monowriter.cpp:20:
In file included from ../src/algorithms/io/monowriter.h:24:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/audiocontext.h:26:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/ffmpegapi.h:48:
/usr/local/Cellar/ffmpeg/0.8/include/libavcodec/avcodec.h:525:1: warning: attribute 'deprecated' is ignored, place it after "enum" to apply attribute to type declaration [-Wignored-attributes]
attribute_deprecated enum AVLPCType {
^
/usr/local/Cellar/ffmpeg/0.8/include/libavutil/attributes.h:85:49: note: expanded from macro 'attribute_deprecated'

define attribute_deprecated attribute((deprecated))

                                            ^

1 warning generated.
In file included from ../src/algorithms/essentia_algorithms_reg.cpp:19:
In file included from /Users/gerard/dev/essentia/essentia/src/algorithms/io/monowriter.h:24:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/audiocontext.h:26:
In file included from /Users/gerard/dev/essentia/essentia/src/utils/ffmpegapi.h:48:
/usr/local/Cellar/ffmpeg/0.8/include/libavcodec/avcodec.h:525:1: warning: attribute 'deprecated' is ignored, place it after "enum" to apply attribute to type declaration [-Wignored-attributes]
attribute_deprecated enum AVLPCType {
^
/usr/local/Cellar/ffmpeg/0.8/include/libavutil/attributes.h:85:49: note: expanded from macro 'attribute_deprecated'

define attribute_deprecated attribute((deprecated))

                                            ^

1 warning generated.
Waf: Leaving directory `/Users/gerard/dev/essentia/essentia/buildw'
Build failed
-> task in 'essentia' failed (exit status 1):
{task 4316533520: cxx ringbufferoutput.cpp -> ringbufferoutput.cpp.1.o}
['clang++', '-pipe', '-Wall', '-O2', '-fPIC', '-Wno-gnu', '-I/Users/gerard/dev/essentia/essentia/buildw/src', '-I/Users/gerard/dev/essentia/essentia/src', '-I/Users/gerard/dev/essentia/essentia/buildw/src/base', '-I/Users/gerard/dev/essentia/essentia/src/base', '-I/Users/gerard/dev/essentia/essentia/buildw/src/scheduler', '-I/Users/gerard/dev/essentia/essentia/src/scheduler', '-I/Users/gerard/dev/essentia/essentia/buildw/src/streaming', '-I/Users/gerard/dev/essentia/essentia/src/streaming', '-I/Users/gerard/dev/essentia/essentia/buildw/src/streaming/algorithms', '-I/Users/gerard/dev/essentia/essentia/src/streaming/algorithms', '-I/Users/gerard/dev/essentia/essentia/buildw/src/utils', '-I/Users/gerard/dev/essentia/essentia/src/utils', '-I/Users/gerard/dev/essentia/essentia/buildw/src/3rdparty', '-I/Users/gerard/dev/essentia/essentia/src/3rdparty', '-I/Users/gerard/dev/essentia/essentia/buildw/src/3rdparty/vamp-plugin-sdk-2.4', '-I/Users/gerard/dev/essentia/essentia/src/3rdparty/vamp-plugin-sdk-2.4', '-I/usr/local/Cellar/fftw/3.3.3/include', '-I/usr/local/Cellar/ffmpeg/0.8/include', '-I/usr/local/Cellar/libsamplerate/0.1.8/include', '-I/usr/local/Cellar/taglib/1.8/include/taglib', '-DGTEST_HAS_TR1_TUPLE=0', '-DHAVE_AVCODEC=1', '-DHAVE_AVFORMAT=1', '-DHAVE_AVUTIL=1', '-DHAVE_TAGLIB=1', '-D__STDC_CONSTANT_MACROS', '-DHAVE_YAML=1', '-DHAVE_FFTW=1', '-DHAVE_SAMPLERATE=1', '-DPYTHONDIR="/usr/local/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/site-packages"', '-DHAVE_PYTHON_H=1', '../src/algorithms/io/ringbufferoutput.cpp', '-c', '-o', 'src/algorithms/io/ringbufferoutput.cpp.1.o']

@wackou
Copy link
Contributor

wackou commented Aug 18, 2013

OK, should be fixed now

@wackou wackou closed this as completed Aug 18, 2013
dbogdanov added a commit that referenced this issue Jun 15, 2015
Merge updates from MTG/essentia master branch
palonso added a commit to palonso/essentia that referenced this issue Dec 14, 2018
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