discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Build fail using clang on OSX 10.8 and fix


From: Michael Dickens
Subject: [Discuss-gnuradio] Build fail using clang on OSX 10.8 and fix
Date: Mon, 5 Nov 2012 15:05:42 -0500

Running Mac OS X 10.8.2, XCode 4.5.1, Apple clang 4.1.  On both the current 
master and next, I get the same error when building.  Compiling both the master 
and next works fine using gcc (both apple gcc 4.2, and apple llvm gcc 4.2).

{{{
[  5%] Building C object 
gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/filter/float_dotprod_sse64.S.o
cd /opt/GNURadio/source/builds/next_clang/gnuradio-core/src/lib && 
/usr/bin/clang  -Dgnuradio_core_EXPORTS -DHAVE_NETDB_H -DHAVE_SYS_TIME_H 
-DHAVE_SYS_TYPES_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_MMAN_H 
-DHAVE_SYS_IPC_H -DHAVE_SYS_SHM_H -DHAVE_SIGNAL_H -DHAVE_NETINET_IN_H 
-DHAVE_ARPA_INET_H -DHAVE_UNISTD_H -DHAVE_SNPRINTF -DHAVE_SIGACTION 
-DHAVE_SELECT -DHAVE_SYSCONF -DHAVE_GETPAGESIZE -DHAVE_NANOSLEEP 
-DHAVE_GETTIMEOFDAY -DHAVE_POSIX_MEMALIGN -DALIGNED_MALLOC=0 
-DHAVE_PTHREAD_SIGMASK -DHAVE_SINF -DHAVE_COSF -DHAVE_MMAP -DTRY_SHM_VMCIRCBUF 
-DFFTW3F_THREADS -O3 -DNDEBUG -fPIC 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/hier 
-I/opt/GNURadio/source/git/gruel/src/include 
-I/opt/GNURadio/source/builds/next_clang/gruel/src/include -I/opt/local/include 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/runtime 
-I/opt/GNURadio/source/builds/next_clang/gnuradio-core/src/lib/general 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/general 
-I/opt/GNURadio/source/builds/next_clang/gnuradio-core/src/lib/gengen 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/gengen 
-I/opt/GNURadio/source/builds/next_clang/gnuradio-core/src/lib/filter 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/filter 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/missing 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/reed-solomon 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/viterbi 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/io 
-I/opt/GNURadio/source/builds/next_clang/gnuradio-core/src/lib/swig 
-I/opt/GNURadio/source/git/gnuradio-core/src/lib/swig 
-I/opt/GNURadio/source/git/volk/include 
-I/opt/GNURadio/source/builds/next_clang/volk/include    -o 
CMakeFiles/gnuradio-core.dir/filter/float_dotprod_sse64.S.o   -c 
/opt/GNURadio/source/git/gnuradio-core/src/lib/filter/float_dotprod_sse64.S
/opt/GNURadio/source/git/gnuradio-core/src/lib/filter/float_dotprod_sse64.S:57:2:
 error: unknown directive
 .version "01.01"
 ^
}}}

The actual assembly directive that is causing this issue is:

        .version        "01.01"

which if I comment it out of all of the necessary files then clang seems to 
work.  Do we really require this specific directive in those assembly files? - 
MLD


reply via email to

[Prev in Thread] Current Thread [Next in Thread]