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

Bastian Friedrich bastian.friedrich at collax.com
Tue Feb 27 09:41:52 CET 2007


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

-- 
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10        www.collax.com

Geschäftsführer: William K. Hite / Boris Nalbach
AG München HRB 158898 . Ust.-IdNr: DE 814464942
\ Help Wanted: Telepath. You know where to apply.




More information about the Devel mailing list