![](https://seccdn.libravatar.org/avatar/6d198f8c8f1c94ccef873cebcf4f5dfa.jpg?s=120&d=mm&r=g)
On 22/04/13 15:00, Guillaume Gardet wrote:
Le 22/04/2013 15:51, Sid Boyce a écrit :
On 22/04/13 13:42, Guillaume Gardet wrote:
Le 22/04/2013 14:21, Sid Boyce a écrit :
On 22/04/13 08:51, Guillaume Gardet wrote:
Hi,
Le 20/04/2013 08:35, Sid Boyce a écrit :
ODROID-X:/media/1/ghpsdr3-alex # ./configure CFLAGS='-O2 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp' CXXFLAGS='-O2 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp' Attached text file of the errors.
All the header files are present and it compiles fine on x86_64 openSUSE, Ubuntu and Ubuntu 12.10 from hardkernel.com. Regards Sid.
Check the config.log file to see why it cannot be compiled.
Guillaume
Many of the following "CPU does not support ARM mode" errors in config.log.
Try to remove/change flags.
I think -march option should be armv7-a and not armv7 only. You can also try to add -mcpu=cortex-A9.
Guillaume
ODROID-X:/media/1/ghpsdr3-alex # ./configure CFLAGS='march=armv7-a -O3 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp' CXXFLAGS='march=armv7-a -O3 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp'
it is not march=* but -march=* (with a dash).
Guillaume
.
./configure CFLAGS='-march=armv7-a -O3 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp' CXXFLAGS='-march=armv7-a -O3 -pipe -mfpu=neon -fno-tree-vectorize -fopenmp' From config.log ============ configure:15521: result: ${prefix}/lib/python2.7/site-packages configure:15530: checking for python extension module directory configure:15558: result: ${exec_prefix}/lib/python2.7/site-packages configure:15760: Platform: ARM 7 configure:15766: -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp configure:15768: -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp configure:15798: checking for library containing round configure:15829: gcc -o conftest -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp conftest.c >&5 conftest.c:1:0: error: target CPU does not support ARM mode ------------------------------------------------------------------------------------------------------------------- NEXT --- cortex-a9 =============== It was created by ghpsdr3 configure iw0hdv, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure CFLAGS=-mcpu=cortex-a9 -O3 -pipe -fno-tree-vectorize -fopenmp CXXFLAGS=-mcpu=cortex-a9 -O3 -pipe -fno-tree-vectorize -fopenmp ## --------- ## ## Platform. ## ## --------- ## hostname = ODROID-X.site uname -m = armv7l uname -r = 3.6.6 uname -s = Linux uname -v = #8 SMP PREEMPT Sun Nov 11 12:43:43 EST 2012 /usr/bin/uname -p = armv7l /bin/uname -X = unknown /bin/arch = armv7l /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/qt5/qtbase/bin PATH: /usr/lib/mpi/gcc/openmpi/bin PATH: /sbin PATH: /usr/sbin PATH: /usr/local/sbin PATH: /root/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/bin/X11 PATH: /usr/X11R6/bin PATH: /usr/games PATH: /usr/local/mybin PATH: /usr/local/bin PATH: /usr/lib/java/jre/bin PATH: /opt/netbeans/bin Header files problem again ================= checking sys/ioctl.h presence... yes configure: WARNING: sys/ioctl.h: present but cannot be compiled configure: WARNING: sys/ioctl.h: check for missing prerequisite headers? configure: WARNING: sys/ioctl.h: see the Autoconf documentation configure: WARNING: sys/ioctl.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/ioctl.h: proceeding with the compiler's result configure: WARNING: ## --------------------------------------------- ## configure: WARNING: ## Report this to andrew att montefusco dott com ## configure: WARNING: ## --------------------------------------------- ## etc., etc. From config.log ----------------------- | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char pthread_create (); | int | main () | { | return pthread_create (); | ; | return 0; | } configure:15887: gcc -o conftest -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp conftest.c -lpthread >&5 conftest.c:1:0: error: target CPU does not support ARM mode configure:15887: $? = 1 configure: failed program was: ---------------------------------------------------------------------------------------------------------------------------------- ODROID-X:/media/1/ghpsdr3-alex # uname -a Linux ODROID-X.site 3.6.6 #8 SMP PREEMPT Sun Nov 11 12:43:43 EST 2012 armv7l armv7l armv7l GNU/Linux I cloned a fresh repository "autoreconf -i && ./configure" without options. configure:15829: gcc -o conftest -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp conftest.c -lm >&5 conftest.c:1:0: error: target CPU does not support ARM mode configure:15829: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ghpsdr3" | #define PACKAGE_TARNAME "ghpsdr3" | #define PACKAGE_VERSION "iw0hdv" | #define PACKAGE_STRING "ghpsdr3 iw0hdv" | #define PACKAGE_BUGREPORT "andrew att montefusco dott com" | #define PACKAGE_URL "" | #define PACKAGE "ghpsdr3" | #define VERSION "iw0hdv" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char round (); | int | main () | { | return round (); | ; | return 0; | } configure:15846: result: no configure:15856: checking for library containing pthread_create configure:15887: gcc -o conftest -O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp conftest.c >&5 conftest.c:1:0: error: target CPU does not support ARM mode ======================== I am switching back to Ubuntu linaro 12.11 to see if I can spot a difference in config.log other than it's armv7hf. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org