[MinnowBoard] [MinnowBoardMax] gcc flags
Benjamin Schubert
ben.c.schubert at gmail.com
Wed Mar 4 08:35:13 UTC 2015
1) I am running gentoo (hardened version)
2) My config is :
CFLAGS="-march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mno-avx
-mno-avx2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
3) I rebuilt all the system with the same flags...
Thanks !
Le mar. 3 mars 2015 à 23:37, B Cran <bruce.cran at gmail.com> a écrit :
> 1. What Linux distribution are you running?
> 2. What do you have in /etc/make.conf or any system config file which
> contains build flags to use?
> 3. If you've rebuilt system binaries or libraries (e.g. glibc), what build
> flags did you use?
>
> --
> Bruce
>
> On Tue, Mar 3, 2015 at 2:36 PM, Benjamin Schubert <
> ben.c.schubert at gmail.com> wrote:
>
>> I am sadly unable to send an example of what is going wrong.
>>
>> But if I run systemctl --help in GDB, I get an illegal instruction and if
>> I switch to asm layout, the last instruction seems to be a "vstmxcsr" which
>> is, if I'm not mistaken from the avx extension (even though the error is
>> still here if I compile with -mno-avx -mno-avx2.
>>
>> Thanks for your help !
>>
>> Le mar. 3 mars 2015 à 21:52, Darren Hart <dvhart at linux.intel.com> a
>> écrit :
>>
>>> I guess I'll need more detail about what exactly you are doing, because
>>> we use these flags to build complete OS images, including systemd, and
>>> they have been working correctly for months now.
>>>
>>> Can you provide a small test C program that triggers this failure and a
>>> Makefile to build it?
>>>
>>> Regards,
>>>
>>> Darren
>>>
>>> On 3/3/15 12:34 PM, Benjamin Schubert wrote:
>>> > Hey,
>>> >
>>> > Yeah sorry, I still get invalid opcode (especially with systemd, which
>>> > is quite annoying).
>>> >
>>> > I tried your version and this does not work either :/
>>> >
>>> > Any clue ?
>>> >
>>> > Le mar. 3 mars 2015 à 21:14, Darren Hart <dvhart at linux.intel.com
>>> > <mailto:dvhart at linux.intel.com>> a écrit :
>>> >
>>> > Can you explain what you mean by does not work? Are you still
>>> getting
>>> > illegal instructions? You may also need to set -mtune. This is
>>> what we
>>> > use for the intel-corei7-64 BSP in the Yocto Project which enables
>>> the
>>> > Nehalem and Baytrail and later CPUs (including the E3825 on the
>>> > MinnowBoard MAX):
>>> >
>>> > -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2
>>> >
>>> > Thanks,
>>> >
>>> > Darren
>>> >
>>> > On 3/3/15 11:13 AM, Benjamin Schubert wrote:
>>> > > Hey,
>>> > >
>>> > > Sorry for the long delay. I tried with -march=corei7 without any
>>> > > success. that does not work either.
>>> > >
>>> > > Anybody found something else ?
>>> > >
>>> > > Thanks a lot
>>> > >
>>> > > Le lun. 23 févr. 2015 à 23:00, Darren Hart <
>>> dvhart at linux.intel.com <mailto:dvhart at linux.intel.com>
>>> > > <mailto:dvhart at linux.intel.com <mailto:dvhart at linux.intel.com>__>>
>>> a écrit :
>>> > >
>>> > > Native uses your host CPU, if you want something tailored
>>> for the
>>> > > MinnowBoard MAX Bay Trail SoC, you should use march=corei7.
>>> > > --
>>> > > Darren Hart
>>> > > Intel Open Source Technology Center
>>> > >
>>> > > From: Michael Jarvis <mjarvis.tx.08 at gmail.com <mailto:
>>> mjarvis.tx.08 at gmail.com>
>>> > > <mailto:mjarvis.tx.08 at gmail.__com <mailto:
>>> mjarvis.tx.08 at gmail.com>>>
>>> > >
>>> > > Reply-To: MinnowBoard Development and Community Discussion
>>> > > <elinux-minnowboard at lists.__elinux.org
>>> > <mailto:elinux-minnowboard at lists.elinux.org>
>>> > > <mailto:elinux-minnowboard at __lists.elinux.org
>>> > <mailto:elinux-minnowboard at lists.elinux.org>>>
>>> > > Date: Monday, February 23, 2015 at 11:53 AM
>>> > >
>>> > > To: MinnowBoard Development and Community Discussion
>>> > > <elinux-minnowboard at lists.__elinux.org
>>> > <mailto:elinux-minnowboard at lists.elinux.org>
>>> > > <mailto:elinux-minnowboard at __lists.elinux.org
>>> > <mailto:elinux-minnowboard at lists.elinux.org>>>
>>> > > Subject: Re: [MinnowBoard] [MinnowBoardMax] gcc flags
>>> > >
>>> > > I usually use "-mtune=native". Does that not work for
>>> you?
>>> > >
>>> > >
>>> > >
>>> > > On Sat, Feb 21, 2015 at 3:58 PM, Benjamin Schubert
>>> > > <ben.c.schubert at gmail.com <mailto:ben.c.schubert at gmail.
>>> com>
>>> > <mailto:ben.c.schubert at gmail.__com
>>> > <mailto:ben.c.schubert at gmail.com>>> wrote:
>>> > >
>>> > > Hey everyone !
>>> > >
>>> > > I've been strugling for a while on setting up
>>> correct gcc
>>> > > flags for the minnowboard max.
>>> > >
>>> > > I'm using GCC 4.9.2 with CFLAGS="-march=silvermont"
>>> and I
>>> > > get illegall instructions on some programs.
>>> > >
>>> > > Has anyone managed to have working CFLAGS that are
>>> not
>>> > > -march=native ?
>>> > >
>>> > > Thanks a lot
>>> > >
>>> > > _________________________________________________
>>> > > elinux-MinnowBoard mailing list
>>> > > elinux-MinnowBoard at lists.__elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>
>>> > > <mailto:elinux-MinnowBoard at __lists.elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>>
>>> > > http://lists.elinux.org/__mailman/listinfo/elinux-__
>>> minnowboard
>>> > <http://lists.elinux.org/mailman/listinfo/elinux-minnowboard>
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > *Michael Jarvis*
>>> > > McKinney, TX USA
>>> > > http://about.me/michael.a.__jarvis <
>>> http://about.me/michael.a.jarvis>
>>> > > _________________________________________________
>>> > > elinux-MinnowBoard mailing list
>>> > > elinux-MinnowBoard at lists.__elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>
>>> > > <mailto:elinux-MinnowBoard at __lists.elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>>
>>> > > http://lists.elinux.org/__mailman/listinfo/elinux-__
>>> minnowboard
>>> > <http://lists.elinux.org/mailman/listinfo/elinux-minnowboard>
>>> > >
>>> > > ___________________________________________________
>>> > > elinux-MinnowBoard mailing list
>>> > > elinux-MinnowBoard at lists.__eli__nux.org <http://elinux.org>
>>> > > <mailto:elinux-MinnowBoard at __lists.elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>>
>>> > > http://lists.elinux.org/____mailman/listinfo/elinux-____
>>> minnowboard
>>> > <http://lists.elinux.org/__mailman/listinfo/elinux-__minnowboard>
>>> > > <http://lists.elinux.org/__mailman/listinfo/elinux-__
>>> minnowboard
>>> > <http://lists.elinux.org/mailman/listinfo/elinux-minnowboard>>
>>> > >
>>> > >
>>> > >
>>> > > _________________________________________________
>>> > > elinux-MinnowBoard mailing list
>>> > > elinux-MinnowBoard at lists.__elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>
>>> > > http://lists.elinux.org/__mailman/listinfo/elinux-__minnowboard
>>> > <http://lists.elinux.org/mailman/listinfo/elinux-minnowboard>
>>> > >
>>> >
>>> > --
>>> > Darren Hart
>>> > Intel Open Source Technology Center
>>> > _________________________________________________
>>> > elinux-MinnowBoard mailing list
>>> > elinux-MinnowBoard at lists.__elinux.org
>>> > <mailto:elinux-MinnowBoard at lists.elinux.org>
>>> > http://lists.elinux.org/__mailman/listinfo/elinux-__minnowboard
>>> > <http://lists.elinux.org/mailman/listinfo/elinux-minnowboard>
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > elinux-MinnowBoard mailing list
>>> > elinux-MinnowBoard at lists.elinux.org
>>> > http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>>> >
>>>
>>> --
>>> Darren Hart
>>> Intel Open Source Technology Center
>>>
>>
>> _______________________________________________
>> elinux-MinnowBoard mailing list
>> elinux-MinnowBoard at lists.elinux.org
>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>>
>>
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20150304/b1d7957e/attachment-0001.html>
More information about the elinux-MinnowBoard
mailing list