[CMake] Cmake errors
outro pessoa
outro.pessoa at gmail.com
Fri Nov 29 21:55:53 EST 2013
On Fri, Nov 29, 2013 at 9:50 PM, outro pessoa <outro.pessoa at gmail.com>wrote:
> If it can be fixed.
>
It's a C preprocessor error while using CLang to build. What's the
work-around for this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131129/ccb6c0a6/attachment.htm>
-------------- next part --------------
===> Found saved configuration for traverso-0.49.4
===> traverso-0.49.2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by traverso-0.49.2 for building
===> Extracting for traverso-0.49.2
=> SHA256 Checksum OK for traverso-0.49.2.tar.gz.
===> Patching for traverso-0.49.2
===> traverso-0.49.2 depends on file: /usr/local/bin/cmake - found
===> traverso-0.49.2 depends on shared library: slv2 - found
===> traverso-0.49.2 depends on shared library: wavpack - found
===> traverso-0.49.2 depends on shared library: vorbis - found
===> traverso-0.49.2 depends on shared library: raptor2 - found
===> traverso-0.49.2 depends on shared library: rasqal - found
===> traverso-0.49.2 depends on shared library: curl - found
===> traverso-0.49.2 depends on shared library: FLAC - found
===> traverso-0.49.2 depends on shared library: fftw3 - found
===> traverso-0.49.2 depends on shared library: mad - found
===> traverso-0.49.2 depends on shared library: samplerate - found
===> traverso-0.49.2 depends on shared library: icudata - found
===> traverso-0.49.2 depends on shared library: yajl - found
===> traverso-0.49.2 depends on shared library: sndfile - found
===> traverso-0.49.2 depends on shared library: ogg - found
===> traverso-0.49.2 depends on shared library: rdf - found
===> traverso-0.49.2 depends on shared library: SM - found
===> traverso-0.49.2 depends on shared library: ICE - found
===> traverso-0.49.2 depends on shared library: jack - found
===> Configuring for traverso-0.49.2
===> Performing in-source build
/bin/mkdir -p /usr/home/raspycat/traverso/work/traverso-0.49.2
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Traverso 0.49.2 will be built to install into /usr/local
getconf: no such configuration parameter `LFS_CFLAGS'
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Program pkg-config found (/usr/local/bin/pkg-config)
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/local/bin/qmake-qt4 (found suitable version "4.8.5", minimum required is "4.3.1")
-- checking for module 'redland>=1.0.2'
-- found redland, version 1.0.16
-- REDLAND Library Found OK
-- Looking for wavpack/wavpack.h
-- Looking for wavpack/wavpack.h - found
-- checking for module 'wavpack>=4.40.0'
-- found wavpack, version 4.60.1
-- WavPack Library Found OK
-- Looking for vorbis/vorbisfile.h
-- Looking for vorbis/vorbisfile.h - found
-- checking for module 'vorbis>=1.1.2'
-- found vorbis, version 1.3.3
-- Ogg Vorbis Library Found OK
-- Looking for FLAC/export.h
-- Looking for FLAC/export.h - found
-- FLAC Library Found OK
-- Looking for mad.h
-- Looking for mad.h - found
-- Looking for fftw3.h
-- Looking for fftw3.h - found
-- checking for module 'fftw3>=3.0.0'
-- found fftw3, version 3.3.3
-- FFTW3 Library Found OK
-- Looking for sys/vfs.h
-- Looking for sys/vfs.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for mlock
-- Looking for mlock - found
-- ALSA support: Disabled
-- Looking for jack/jack.h
-- Looking for jack/jack.h - found
-- checking for module 'jack>=0.100'
-- found jack, version 0.121.3
-- Jack Library Found OK
Build options:
Building in mode : RELEASE
ALSA support : FALSE
Jack support : TRUE
PortAudio support : FALSE
CoreAudio support : FALSE
SLV2 support : TRUE (Using internal library)
MP3 read support : TRUE
MP3 writing support : FALSE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
THREADS_HAVE_PTHREAD_ARG
-- Build files have been written to: /usr/home/raspycat/traverso/work/traverso-0.49.2
===> Building for traverso-0.49.2
[ 1%] Generating moc_JackDriver.cxx
[ 1%] Generating moc_AudioBus.cxx
[ 1%] Generating moc_AudioDevice.cxx
[ 1%] Generating moc_Client.cxx
Scanning dependencies of target traversoaudiobackend
[ 2%] Building CXX object src/engine/CMakeFiles/traversoaudiobackend.dir/JackDriver.o
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/JackDriver.cpp:109:24: warning: 'jack_client_new' is deprecated [-Wdeprecated-declarations]
if ( (client = jack_client_new (client_name)) == NULL) {
^
/usr/local/include/jack/jack.h:97:16: note: 'jack_client_new' declared here
jack_client_t *jack_client_new (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
^
1 warning generated.
[ 2%] Building CXX object src/engine/CMakeFiles/traversoaudiobackend.dir/AudioBus.o
[ 2%] Building CXX object src/engine/CMakeFiles/traversoaudiobackend.dir/AudioChannel.o
[ 2%] Building CXX object src/engine/CMakeFiles/traversoaudiobackend.dir/AudioDevice.o
In file included from /usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDevice.cpp:52:
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/common/Tsar.h:66:9: error: field has incomplete type 'void *[]'
void* _a[];
^
1 error generated.
*** Error code 1
Stop.
make[4]: stopped in /usr/home/raspycat/traverso/work/traverso-0.49.2
*** Error code 1
Stop.
make[3]: stopped in /usr/home/raspycat/traverso/work/traverso-0.49.2
*** Error code 1
Stop.
make[2]: stopped in /usr/home/raspycat/traverso/work/traverso-0.49.2
*** Error code 1
Stop.
make[1]: stopped in /usr/home/raspycat/traverso
*** Error code 1
Stop.
make: stopped in /usr/home/raspycat/traverso
More information about the CMake
mailing list