Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F559E2E.6020408@gmail.com>
Date: Tue, 06 Mar 2012 00:18:38 -0500
From: Richard Farina <sidhayn@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: CFLAGS="-march=native" sometimes unsupported

On 03/05/12 23:14, Solar Designer wrote:
> On Mon, Mar 05, 2012 at 05:06:25PM -0500, Richard Farina wrote:
>> The issue stems from having CFLAGS which support my architecture but
>> building the generic target.  This is fixed by "make linux-x86-64-avx".
> Great.
>
> You should indeed be using these -avx and -xop targets where appropriate.
>
> However, if a C compiler happens to have AVX (or even XOP) enabled by
> default, that should not prevent other make targets from working.  So I
> might try to reproduce your build errors later.
>
> For now, my guess remains that the targets would in fact work if
> -march=native were implied, but did not work because you somehow
> modified the CFLAGS in this way for _some_ source files only.  I simply
> have no other explanation, although of course this guess might be wrong.
I can promise that I did not modify the CFLAGS for some source files
only unless the Makefile did, it certainly wasn't a willful choice on my
end.

My system CFLAGS build EVERYTHING with -march=native and in this case it
tries to build the standard x86_64 target and dies.

FYI bug 1: https://bugs.gentoo.org/show_bug.cgi?id=405941 bug 2:
https://bugs.gentoo.org/show_bug.cgi?id=405927

bug 405941 is the error without the jumbo patch applied and 405927 is
the error with the jumbo patch applied.  I can replicate both of these
errors at will, and my fix of using the correct target worked for both
(as you may imagine).

If you need anything else around this I'm happy to help but please be
sure to email me and cc the list as I'll likely drop off the list in a
few days.

Thanks for your fantastic product and well documented Makefile, next
time I will be sure to read it sooner ;-)


-Rick

>
>> Sorry for decreasing the signal to noise ratio on the list.
> You did not.
>
> Thanks,
>
> Alexander
>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.