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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Feb 27 10:42:58 CET 2007


Hi Bastian,

I changed the name of the internal variable to avoid the overlapping. 
Please update and see if the issue is fixed now.

regards,
bogdan

Bastian Friedrich wrote:
> Hi,
>
> On Donnerstag 14 September 2006, Bogdan-Andrei Iancu wrote:
>   
>>>>> 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
>>>>>>             
>> just for the list info: the problem was a name overlapping between an
>> environment vvariable and a local variable used by make file to set
>> the -mtune param - both are named CPU.
>>     
>
> I'd like to bring up this topic again before too late: I am using an 
> openSuSE 10.2 system with
> -----------
> bastian at han:~> gcc --version
> gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
> -----------
> on a machine; compilation of a fresh SVN checkout still fails due to 
> this reason. I guess this should be fixed before 1.2...
>
> Thx,
>    Bastian
>
>   




More information about the Devel mailing list