[OpenSER-Devel] SF.net SVN: openser: [3411] trunk/Makefile.defs

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Dec 17 13:00:17 UTC 2007


Hi Henning,

a simple compile attempt with gcc 3.3.6 fails:

Compiling datagram_fnc.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall 
-minline-all-stringops -falign-loops -mtune=prescott 
-DMOD_NAME='"mi_datagram"'    -DNAME='"openser"' 
-DVERSION='"1.4.0dev0-notls"' -DARCH='"i386"' -DOS='"linux"' 
-DCOMPILER='"gcc 3.3.6"' -D__CPU_i386 -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 
-DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC  
-DSVNREVISION='"2:3408M"'  -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 datagram_fnc.c -o datagram_fnc.o
cc1: error: invalid option `tune=prescott'


a look into GNU docs reveals that mtune does not exists for 3.3.6:

  
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

Regards,
Bogdan

Henning Westerholt wrote:
> On Monday 17 December 2007, Bogdan-Andrei Iancu wrote:
>   
>> Revision: 3411
>>           http://openser.svn.sourceforge.net/openser/?rev=3411&view=rev
>> Author:   bogdan_iancu
>> Date:     2007-12-17 03:28:35 -0800 (Mon, 17 Dec 2007)
>>
>> Log Message:
>> -----------
>> fixed some compiler detection and options.
>>  - bogus 3.0 CC class fixed to 3.x
>>  - not all 3.x versions support mtune -> reverted back to march
>>     
>
> Bogdan,
>
> i did of course some research prior to this change. At least the documentation 
> states that all recent 3.X compilers support this parameter. For what version 
> this don't work?
>
> And there is actually a functional difference between mtune and march:
>
> 'mtune' generates code that runs on all i386 compatible machines, this is not 
> true for 'march', accourding the documentation.
>
> Thanks and regards,
>
> Henning
>
>
>   




More information about the Devel mailing list