[Devel] Re: [Users] action.c:1: error: bad value (x86_64) for
-mtune= switch
Alexandr Dubovikov
shurik at start4.info
Tue Feb 27 10:19:33 CET 2007
On Tue, Feb 27, 2007 at 09:41:52AM +0100, 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...
value x86_64 for gcc 4.x.x is not in use anymore
You should use x86-64 instead of x86_64.
Bogdan, I think better way to fix it in Makefile.defs:
--- openser-1.1.1-notls/Makefile.defs.orig 2007-01-22 13:16:11.000000000 +0100
+++ openser-1.1.1-notls/Makefile.defs 2007-02-27 10:13:32.000000000 +0100
@@ -569,7 +569,7 @@ ifeq ($(CC_SHORTVER), 4.x)
CFLAGS+=-minline-all-stringops \
-falign-loops \
-ftree-vectorize \
- -mtune=$(CPU)
+ -mtune=$(shell echo $(CPU) |sed -e 's/x86_64/x86-64/' )
else
#if gcc 3.4
ifeq ($(CC_SHORTVER), 3.4)
>
> 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.
>
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
--
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
AD1-UANIC * ICQ: 122351182 * http://www.start4.info
More information about the Devel
mailing list