[opensuse-arm] Build options for ARM?
Hi, where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc. Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2 * VFPV3-d16 * tune: cortex-A9 Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct. Alex -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 27/11/2012 14:14, Alexander Graf a écrit :
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
gcc -v gives configure options used to build GCC. I guess it is this command to use. RPM_OPT_FLAGS does not give much, only: -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
ok.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct.
Thanks. Should we document it in the wiki? Guillaume
Alex
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27 November 2012 13:54, Guillaume Gardet
Le 27/11/2012 14:14, Alexander Graf a écrit :
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
gcc -v gives configure options used to build GCC. I guess it is this command to use. RPM_OPT_FLAGS does not give much, only:
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
ok.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct.
Thanks.
Should we document it in the wiki?
In an ideal world, most certainly yes :)
Guillaume
Alex
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-- Andrew Wafaa IRC: FunkyPenguin GPG: 0x3A36312F -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 27/11/2012 15:02, Andrew Wafaa a écrit :
On 27 November 2012 13:54, Guillaume Gardet
wrote: Le 27/11/2012 14:14, Alexander Graf a écrit :
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
gcc -v gives configure options used to build GCC. I guess it is this command to use. RPM_OPT_FLAGS does not give much, only:
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
ok.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct.
Thanks.
Should we document it in the wiki?
In an ideal world, most certainly yes :)
Is this page [0] OK to add information like that or should we create a new one? Guillaume [0]: https://en.opensuse.org/openSUSE:ARM_distribution_howto
Guillaume
Alex
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-- Andrew Wafaa IRC: FunkyPenguin GPG: 0x3A36312F
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27 November 2012 14:11, Guillaume Gardet
Le 27/11/2012 15:02, Andrew Wafaa a écrit :
On 27 November 2012 13:54, Guillaume Gardet
wrote: Le 27/11/2012 14:14, Alexander Graf a écrit :
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
gcc -v gives configure options used to build GCC. I guess it is this command to use. RPM_OPT_FLAGS does not give much, only:
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
ok.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct.
Thanks.
Should we document it in the wiki?
In an ideal world, most certainly yes :)
Is this page [0] OK to add information like that or should we create a new one?
Guillaume
[0]: https://en.opensuse.org/openSUSE:ARM_distribution_howto
I don't see why not, at least for now. Having the heading of "Build Flags" and sub heading of "GCC" & "RPM_OPT_FLAGS" or similar should be sufficient. I know we don't use LLVM at the minute, but it make come. Thanks, Andy -- Andrew Wafaa IRC: FunkyPenguin GPG: 0x3A36312F -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 27/11/2012 15:28, Andrew Wafaa a écrit :
On 27 November 2012 14:11, Guillaume Gardet
wrote: Le 27/11/2012 15:02, Andrew Wafaa a écrit :
On 27 November 2012 13:54, Guillaume Gardet
wrote: Le 27/11/2012 14:14, Alexander Graf a écrit :
On 11/27/2012 02:08 PM, Guillaume Gardet wrote:
Hi,
where could we find which options are passed to GCC? I mean -mcpu -mtune, -mfloat, etc.
Most of it is defined in gcc. You can call it with some magic parameter to have it tell you :). The rest are RPM_OPT_FLAGS which should be in the prjconf meta of the project.
gcc -v gives configure options used to build GCC. I guess it is this command to use. RPM_OPT_FLAGS does not give much, only:
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
Currently, I think we are using the following for ARM v7, but I cannot find where it is defined: * thumb2
Only for factory. 12.2 builds with -marm.
ok.
* VFPV3-d16 * tune: cortex-A9
Those 2 are correct.
Thanks.
Should we document it in the wiki?
In an ideal world, most certainly yes :)
Is this page [0] OK to add information like that or should we create a new one?
Guillaume
[0]: https://en.opensuse.org/openSUSE:ARM_distribution_howto
I don't see why not, at least for now. Having the heading of "Build Flags" and sub heading of "GCC" & "RPM_OPT_FLAGS" or similar should be sufficient. I know we don't use LLVM at the minute, but it make come.
Yes, LLVM is currently broken. I managed to fix armv5 but not armv7. Guillaume
Thanks,
Andy
-- Andrew Wafaa IRC: FunkyPenguin GPG: 0x3A36312F
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (3)
-
Alexander Graf
-
Andrew Wafaa
-
Guillaume Gardet