[Users] action.c:1: error: bad value (x86_64) for -mtune= switch

nick nick at mobilia.it
Mon Sep 11 09:27:39 CEST 2006


Ronald Wiplinger wrote:
> First try to compile Openser on an AMD Semperon CPU:
> 
> openser-1.1.0-tls> make all
> Compiling action.c
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops 
> -falign-loops -ftree-vectorize -mtune=x86_64    -DNAME='"openser"' 
> -DVERSION='"1.1.0-notls"' -DARCH='"x86_64"' -DOS='"linux"' 
> -DCOMPILER='"gcc 4.1.0"' -D__CPU_x86_64 -D__OS_linux -D__SMP_no 
> -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP 
> -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES 
> -DF_MALLOC -DSTATISTICS  -DFAST_LOCK -DADAPTIVE_WAIT 
> -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN 
> -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL 
> -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT 
> -c action.c -o action.o
> action.c:1: error: bad value (x86_64) for -mtune= switch
> make: *** [action.o] Error 1
> 
> 
> How can I solve that?
> 
> bye
> 
> Ronald
> 
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
> 
GCC 4.1???

The manual says these are your options for the -mtune switch

k6
     AMD K6 CPU with MMX instruction set support.
k6-2, k6-3
     Improved versions of AMD K6 CPU with MMX and 3dNOW! instruction set 
support.
athlon, athlon-tbird
     AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and SSE prefetch 
instructions support.
athlon-4, athlon-xp, athlon-mp
     Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full 
SSE instruction set support.
k8, opteron, athlon64, athlon-fx
     AMD K8 core based CPUs with x86-64 instruction set support. (This 
supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction 
set extensions.)

so there is no x86_64 (or x86-64) cpu type in 4.1

You could try compiling with gcc 3.4 if you have it..




More information about the Users mailing list