my cmake literacy is very limited, but you can abuse the

BINARY_PACKAGE_BUILD:BOOL=OFF

option (pass -D[..]=on to cmake when configuring). this is used for
redistributable binaries and will not use the -march=. flag.

other than that i was under the impression that

CFLAGS=<your flags> cmake

would pick up the env var (note that most of dt is actually c and not c++).
not sure which one would be used then, the -march would still be added to
the flags by us.

cheers,
 jo


On Sat, Jun 21, 2014 at 2:29 AM, Rico Wendrock <r...@wendrocknet.de> wrote:

> Hm, i dont think that my gcc installation in general is broken, because
> only some parts of the darkable source make problems with the
> -march=native flag
>
> Compling is ok in the beginning of the build process (log.txt), but then
> these errors occured (error.txt)
>
> "-march=native" on my machine means the follwing flags are set:
>
> -march=corei7-avx -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm
> -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-tbm -mavx -msse4.2 -msse4.1
> --param l1-cache-size=32 --param l1-cache-line-size=64 --param
> l2-cache-size=8192 -mtune=generic -fstack-protector
>
> Because i don't now which flag of this lot makes the problems, i simple
> decided to write in my darktable/src/CMakeList.txt the following lines
>
>   set(MARCH "-march=corei7-avx")
>   set(MARCH "-mtune=native")
>
> before i execute "build.sh" and then it works very fine for me.
>
> (but with set(MARCH "-march=native") the compilation process fails)
>
> Because its not a good way to write down lines in the source code, so i
> would be glad to know: can i give the above lines as parameters to
> the compilation process (pass as a variable or flag to the build.sh script
> on the command line?)?
>
> Any suggestions?
>
> Rico
>
> Am 20.06.2014 13:53, schrieb Michal Babej:
>
>  Hi,
>>
>>  "Error: no such instruction: `vfnmadd312sd"
>>> After searching the Internet I've found, that the problem ist the
>>> CXXFFLAG -march=nativ.
>>>
>> After some research, it seems to me the problem isn't in darktable,
>> rather the problem is that your gcc installation is broken. Disabling
>> -march=native is just a workaround, not a solution.
>>
>>  kernel 3.13.0-29-generic, gcc version 4.6.3
>>>
>> According to wikipedia (and gcc release notes), support for FMA3
>> appeared in gcc 4.7.0. Why does gcc 4.6.3 generate those instructions,
>> and then choke on them, is a guestion for gcc guys and/or linux mint
>> guys :)
>>
>> Anyway, if you want to fully use your cpu capabilities with darktable,
>> you need to upgrade your gcc.
>>
>> Regards,
>> -- mb
>>
>> ------------------------------------------------------------
>> ------------------
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> _______________________________________________
>> darktable-devel mailing list
>> darktable-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>>
>>
> --
> Rico Wendrock
> mailto:r...@wendrocknet.de
> http://www.erzgebirgsfotos.de
> fon: (01 73) 201 32 67
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> darktable-devel mailing list
> darktable-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to