* Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
[not found] ` <CAJTo0La2CZAKw0Cd4_NpPLt=qXy3x3Arv36huhUMmCH3tV14YA@mail.gmail.com>
@ 2016-03-09 22:50 ` Martin Jansa
2016-03-09 22:51 ` Richard Purdie
2016-03-09 23:02 ` Richard Purdie
0 siblings, 2 replies; 6+ messages in thread
From: Martin Jansa @ 2016-03-09 22:50 UTC (permalink / raw)
To: Burton, Ross, openembedded-core; +Cc: yocto@yoctoproject.org, Rudolf J Streif
[-- Attachment #1: Type: text/plain, Size: 17294 bytes --]
On Sat, Mar 05, 2016 at 09:40:48PM +0000, Burton, Ross wrote:
> On 5 March 2016 at 21:19, Rudolf J Streif <rudolf.streif@gmail.com> wrote:
>
> > compile fails with the following error message:
> >
> > | make[2]: *** No rule to make target '../readline/libreadline.a', needed
> > by 'gdb'. Stop.
> > | make[2]: *** Waiting for unfinished jobs....
> >
> > The reason seems to be a broken path to the built-in readline in the
> > makefile as the default configuration is
> > --without-system-readline. Enabling
> >
> > PACKAGECONFIG_append_pn-dbg = " readline"
See http://patchwork.openembedded.org/patch/116843/ discussion, the
patch from Ross mentioned bellow fixes it better and is already merged
in master.
> The default is with system readline...
>
> gdb-common.inc:PACKAGECONFIG ??= "readline"
BTW: this is causing gdb-cross-* to depend on target readline, which may
have different signatures for different MACHINEs with the same arch.
E.g. after adding qemuarm7 MACHINE, you can easily get gdb-cross-arm
being rebuilt/extracted-from-sstate after each MACHINE change.
I'm not sure why selftest didn't catch this, but it can be seen with:
openembedded-core/scripts/sstate-diff-machines.sh --machines="qemuarm qemuarm7" --targets=gdb-cross-arm --tmpdir=tmp-glibc
OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate-diff/1457556601/*/*/*gdb-cross*/*do_configure*
tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gdb-cross-arm/7.10.1-r0.do_configure.sigdata.5053ae4a1b3de54b978ba7201b1dde75
tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gdb-cross-arm/7.10.1-r0.do_configure.sigdata.382badde81cbf6c925f66525ae33c33a
OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate-diff/1457556601/*/*/*gdb-cross*/*do_configure*
Task dependencies changed from:
['ABIEXTENSION', 'ACLOCALDIR', 'AR', 'ARMPKGARCH', 'ARMPKGARCH_tune-armv5te', 'ARMPKGSFX_DSP', 'ARMPKGSFX_EABI', 'ARMPKGSFX_ENDIAN', 'ARMPKGSFX_FPU', 'ARMPKGSFX_THUMB', 'ARM_INSTRUCTION_SET', 'ARM_M_OPT', 'ARM_THUMB_OPT', 'ARM_THUMB_SUFFIX', 'AS', 'ASNEEDED', 'AUTOTOOLS_COPYACLOCAL', 'AUTOTOOLS_SCRIPT_PATH', 'B', 'BASEDEPENDS', 'BB_CURRENTTASK', 'BP', 'BPN', 'BUILD_AR', 'BUILD_AS', 'BUILD_AS_ARCH', 'BUILD_CC', 'BUILD_CCLD', 'BUILD_CC_ARCH', 'BUILD_CFLAGS', 'BUILD_CPP', 'BUILD_CPPFLAGS', 'BUILD_CXX', 'BUILD_CXXFLAGS', 'BUILD_FC', 'BUILD_LD', 'BUILD_LDFLAGS', 'BUILD_LD_ARCH', 'BUILD_NM', 'BUILD_OPTIMIZATION', 'BUILD_OS', 'BUILD_PREFIX', 'BUILD_RANLIB', 'BUILD_STRIP', 'BUILD_SYS', 'BUILD_VENDOR', 'CACHED_CONFIGUREVARS', 'CC', 'CCLD', 'CC_FOR_BUILD', 'CFLAGS', 'CFLAGS_FOR_BUILD', 'CLEANBROKEN', 'CONFIGUREOPTS', 'CONFIGUREOPT_DEPTRACK', 'CONFIGURESTAMPFILE', 'CONFIGURE_SCRIPT', 'CONFIG_SITE', 'CPP', 'CPPFLAGS', 'CPPFLAGS_FOR_BUILD', 'CPP_FOR_BUILD', 'CROSS_TARGET_SYS_DIR', 'CXX', 'CXXFLAGS', 'CXXFLAGS_FOR_BUILD', 'CXX_FOR_BUILD', 'DEBUG_BUILD', 'DEBUG_FLAGS', 'DEBUG_OPTIMIZATION', 'DEFAULTTUNE', 'DEPENDS', 'DEPENDS_GETTEXT', 'DISABLE_STATIC', 'EXPAT', 'EXTRA_OECONF', 'EXTRA_OEMAKE', 'FC', 'FULL_OPTIMIZATION', 'GDBPROPREFIX', 'HOST_ARCH', 'HOST_AS_ARCH', 'HOST_CC_ARCH', 'HOST_LD_ARCH', 'HOST_OS', 'HOST_PREFIX', 'HOST_SYS', 'HOST_VENDOR', 'INHIBIT_DEFAULT_DEPS', 'LC_ALL', 'LD', 'LDFLAGS', 'LDFLAGS_FOR_BUILD', 'LD_FOR_BUILD', 'LIBCEXTENSION', 'LICENSE', 'LIC_FILES_CHKSUM', 'LINKER_HASH_STYLE', 'LOGFIFO', 'MAKE', 'MLPREFIX', 'NM', 'OBJCOPY', 'OBJDUMP', 'P', 'PACKAGECONFIG', 'PACKAGECONFIG[babeltrace]', 'PACKAGECONFIG[readline]', 'PKG_CONFIG_DIR', 'PKG_CONFIG_DISABLE_UNINSTALLED', 'PKG_CONFIG_LIBDIR', 'PKG_CONFIG_PATH', 'PKG_CONFIG_SYSROOT_DIR', 'PKG_CONFIG_SYSTEM_INCLUDE_PATH', 'PKG_CONFIG_SYSTEM_LIBRARY_PATH', 'PN', 'PREFERRED_ARM_INSTRUCTION_SET', 'PSEUDO_DISABLED', 'PV', 'PYTHON_BASEVERSION', 'PYTHON_PN', 'QA_LOGFILE', 'QA_SANE', 'RANLIB', 'S', 'SELECTED_OPTIMIZATION', 'STAGING_BASE_LIBDIR_NATIVE', 'STAGING_BINDIR_NATIVE', 'STAGING_DATADIR', 'STAGING_DATADIR_NATIVE', 'STAGING_DIR', 'STAGING_DIR_NATIVE', 'STAGING_INCDIR_NATIVE', 'STAGING_LIBDIR_NATIVE', 'STRINGS', 'STRIP', 'T', 'TARGET_ARCH', 'TARGET_CFLAGS', 'TARGET_CPPFLAGS', 'TARGET_CXXFLAGS', 'TARGET_LDFLAGS', 'TARGET_LINK_HASH_STYLE', 'TARGET_OS', 'TARGET_SYS', 'TARGET_VENDOR', 'TEXDEP', 'TOOLCHAIN_OPTIONS', 'TUNE_ARCH', 'TUNE_CCARGS_MFLOAT', 'TUNE_CCARGS_MFPU', 'TUNE_FEATURES', 'TUNE_FEATURES_tune-armv5', 'TUNE_FEATURES_tune-armv5t', 'TUNE_FEATURES_tune-armv5te', 'TUNE_PKGARCH', 'UNKNOWN_CONFIGURE_WHITELIST', 'USE_NLS', 'append_libtool_sysroot', 'autotools_copy_aclocals', 'autotools_dep_prepend', 'autotools_postconfigure', 'autotools_preconfigure', 'base_bindir', 'base_dep_prepend', 'base_libdir', 'base_libdir_native', 'base_prefix', 'base_sbindir', 'baselib', 'bbfatal', 'bbfatal_log', 'bbnote', 'bindir', 'bindir_native', 'datadir', 'datadir_native', 'die', 'do_qa_configure', 'docdir', 'exec_prefix', 'gettext_dependencies', 'gettext_oeconf', 'includedir', 'includedir_native', 'infodir', 'libdir', 'libdir_native', 'libexecdir', 'localstatedir', 'lt_cv_sys_lib_dlsearch_path_spec', 'mandir', 'nonarch_base_libdir', 'nonarch_libdir', 'oe_runconf', 'oe_runmake', 'oe_runmake_call', 'oldincludedir', 'package_qa_check_license', 'package_qa_handle_error', 'package_qa_write_error', 'prefix', 'prefix_native', 'sbindir', 'servicedir', 'sharedstatedir', 'siteinfo_data', 'siteinfo_get_files', 'sstate_add', 'sstate_clean', 'sstate_clean_manifest', 'sstate_init', 'sstate_state_fromvars', 'sysconfdir', 'sysroot_cleansstate', 'systemd_system_unitdir', 'systemd_unitdir', 'systemd_user_unitdir']
to:
['ABIEXTENSION', 'ACLOCALDIR', 'AR', 'ARMPKGARCH', 'ARMPKGARCH_tune-armv7a-neon', 'ARMPKGSFX_DSP', 'ARMPKGSFX_EABI', 'ARMPKGSFX_ENDIAN', 'ARMPKGSFX_FPU', 'ARMPKGSFX_THUMB', 'ARM_INSTRUCTION_SET', 'ARM_M_OPT', 'ARM_THUMB_OPT', 'ARM_THUMB_SUFFIX', 'AS', 'ASNEEDED', 'AUTOTOOLS_COPYACLOCAL', 'AUTOTOOLS_SCRIPT_PATH', 'B', 'BASEDEPENDS', 'BB_CURRENTTASK', 'BP', 'BPN', 'BUILD_AR', 'BUILD_AS', 'BUILD_AS_ARCH', 'BUILD_CC', 'BUILD_CCLD', 'BUILD_CC_ARCH', 'BUILD_CFLAGS', 'BUILD_CPP', 'BUILD_CPPFLAGS', 'BUILD_CXX', 'BUILD_CXXFLAGS', 'BUILD_FC', 'BUILD_LD', 'BUILD_LDFLAGS', 'BUILD_LD_ARCH', 'BUILD_NM', 'BUILD_OPTIMIZATION', 'BUILD_OS', 'BUILD_PREFIX', 'BUILD_RANLIB', 'BUILD_STRIP', 'BUILD_SYS', 'BUILD_VENDOR', 'CACHED_CONFIGUREVARS', 'CC', 'CCLD', 'CC_FOR_BUILD', 'CFLAGS', 'CFLAGS_FOR_BUILD', 'CLEANBROKEN', 'CONFIGUREOPTS', 'CONFIGUREOPT_DEPTRACK', 'CONFIGURESTAMPFILE', 'CONFIGURE_SCRIPT', 'CONFIG_SITE', 'CPP', 'CPPFLAGS', 'CPPFLAGS_FOR_BUILD', 'CPP_FOR_BUILD', 'CROSS_TARGET_SYS_DIR', 'CXX', 'CXXFLAGS', 'CXXFLAGS_FOR_BUILD', 'CXX_FOR_BUILD', 'DEBUG_BUILD', 'DEBUG_FLAGS', 'DEBUG_OPTIMIZATION', 'DEFAULTTUNE', 'DEPENDS', 'DEPENDS_GETTEXT', 'DISABLE_STATIC', 'EXPAT', 'EXTRA_OECONF', 'EXTRA_OEMAKE', 'FC', 'FULL_OPTIMIZATION', 'GDBPROPREFIX', 'HOST_ARCH', 'HOST_AS_ARCH', 'HOST_CC_ARCH', 'HOST_LD_ARCH', 'HOST_OS', 'HOST_PREFIX', 'HOST_SYS', 'HOST_VENDOR', 'INHIBIT_DEFAULT_DEPS', 'LC_ALL', 'LD', 'LDFLAGS', 'LDFLAGS_FOR_BUILD', 'LD_FOR_BUILD', 'LIBCEXTENSION', 'LICENSE', 'LIC_FILES_CHKSUM', 'LINKER_HASH_STYLE', 'LOGFIFO', 'MAKE', 'MLPREFIX', 'NM', 'OBJCOPY', 'OBJDUMP', 'P', 'PACKAGECONFIG', 'PACKAGECONFIG[babeltrace]', 'PACKAGECONFIG[readline]', 'PKG_CONFIG_DIR', 'PKG_CONFIG_DISABLE_UNINSTALLED', 'PKG_CONFIG_LIBDIR', 'PKG_CONFIG_PATH', 'PKG_CONFIG_SYSROOT_DIR', 'PKG_CONFIG_SYSTEM_INCLUDE_PATH', 'PKG_CONFIG_SYSTEM_LIBRARY_PATH', 'PN', 'PREFERRED_ARM_INSTRUCTION_SET', 'PSEUDO_DISABLED', 'PV', 'PYTHON_BASEVERSION', 'PYTHON_PN', 'QA_LOGFILE', 'QA_SANE', 'RANLIB', 'S', 'SELECTED_OPTIMIZATION', 'STAGING_BASE_LIBDIR_NATIVE', 'STAGING_BINDIR_NATIVE', 'STAGING_DATADIR', 'STAGING_DATADIR_NATIVE', 'STAGING_DIR', 'STAGING_DIR_NATIVE', 'STAGING_INCDIR_NATIVE', 'STAGING_LIBDIR_NATIVE', 'STRINGS', 'STRIP', 'T', 'TARGET_ARCH', 'TARGET_CFLAGS', 'TARGET_CPPFLAGS', 'TARGET_CXXFLAGS', 'TARGET_LDFLAGS', 'TARGET_LINK_HASH_STYLE', 'TARGET_OS', 'TARGET_SYS', 'TARGET_VENDOR', 'TEXDEP', 'TOOLCHAIN_OPTIONS', 'TUNE_ARCH', 'TUNE_CCARGS_MFLOAT', 'TUNE_CCARGS_MFPU', 'TUNE_FEATURES', 'TUNE_FEATURES_tune-armv7a', 'TUNE_FEATURES_tune-armv7a-neon', 'TUNE_PKGARCH', 'UNKNOWN_CONFIGURE_WHITELIST', 'USE_NLS', 'append_libtool_sysroot', 'autotools_copy_aclocals', 'autotools_dep_prepend', 'autotools_postconfigure', 'autotools_preconfigure', 'base_bindir', 'base_dep_prepend', 'base_libdir', 'base_libdir_native', 'base_prefix', 'base_sbindir', 'baselib', 'bbfatal', 'bbfatal_log', 'bbnote', 'bindir', 'bindir_native', 'datadir', 'datadir_native', 'die', 'do_qa_configure', 'docdir', 'exec_prefix', 'gettext_dependencies', 'gettext_oeconf', 'includedir', 'includedir_native', 'infodir', 'libdir', 'libdir_native', 'libexecdir', 'localstatedir', 'lt_cv_sys_lib_dlsearch_path_spec', 'mandir', 'nonarch_base_libdir', 'nonarch_libdir', 'oe_runconf', 'oe_runmake', 'oe_runmake_call', 'oldincludedir', 'package_qa_check_license', 'package_qa_handle_error', 'package_qa_write_error', 'prefix', 'prefix_native', 'sbindir', 'servicedir', 'sharedstatedir', 'siteinfo_data', 'siteinfo_get_files', 'sstate_add', 'sstate_clean', 'sstate_clean_manifest', 'sstate_init', 'sstate_state_fromvars', 'sysconfdir', 'sysroot_cleansstate', 'systemd_system_unitdir', 'systemd_unitdir', 'systemd_user_unitdir']
basehash changed from 6dae9966f8172d38f74b51b1592c6f53 to 1da8e870ad7319e1bf108416c3b22dd9
List of dependencies for variable TUNE_FEATURES changed from 'set(['DEFAULTTUNE', 'TUNE_FEATURES_tune-armv5te'])' to 'set(['TUNE_FEATURES_tune-armv7a-neon', 'DEFAULTTUNE'])'
changed items: set(['TUNE_FEATURES_tune-armv7a-neon', 'TUNE_FEATURES_tune-armv5te'])
List of dependencies for variable ARMPKGARCH changed from 'set(['DEFAULTTUNE', 'ARMPKGARCH_tune-armv5te'])' to 'set(['ARMPKGARCH_tune-armv7a-neon', 'DEFAULTTUNE'])'
changed items: set(['ARMPKGARCH_tune-armv7a-neon', 'ARMPKGARCH_tune-armv5te'])
List of dependencies for variable TUNE_CCARGS_MFPU changed from 'set([])' to 'set(['TUNE_FEATURES'])'
Dependency on variable ARMPKGARCH_tune-armv7a-neon was added
Dependency on variable TUNE_FEATURES_tune-armv7a-neon was added
Dependency on variable TUNE_FEATURES_tune-armv7a was added
Dependency on Variable TUNE_FEATURES_tune-armv5t was removed
Dependency on Variable TUNE_FEATURES_tune-armv5te was removed
Dependency on Variable ARMPKGARCH_tune-armv5te was removed
Dependency on Variable TUNE_FEATURES_tune-armv5 was removed
Variable ARM_THUMB_SUFFIX value changed from '${@bb.utils.contains('TUNE_FEATURES', 'armv4', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv5', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv6', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7r', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7ve', 't2', '', d)}
TUNE_FEATURES{armv4} = Unset
TUNE_FEATURES{armv5} = Set
TUNE_FEATURES{armv6} = Unset
TUNE_FEATURES{armv7a} = Unset
TUNE_FEATURES{armv7m} = Unset
TUNE_FEATURES{armv7r} = Unset
TUNE_FEATURES{armv7ve} = Unset' to '${@bb.utils.contains('TUNE_FEATURES', 'armv4', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv5', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv6', 't', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7r', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 't2', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'armv7ve', 't2', '', d)}
TUNE_FEATURES{armv4} = Unset
TUNE_FEATURES{armv5} = Unset
TUNE_FEATURES{armv6} = Unset
TUNE_FEATURES{armv7a} = Set
TUNE_FEATURES{armv7m} = Unset
TUNE_FEATURES{armv7r} = Unset
TUNE_FEATURES{armv7ve} = Unset'
Variable DEFAULTTUNE value changed from 'armv5te' to 'armv7a-neon'
Variable TUNE_CCARGS_MFPU value changed from '${@bb.utils.contains('TUNE_FEATURES', 'vfp', ' vfp', '', d)}
TUNE_FEATURES{vfp} = Unset' to '${@bb.utils.contains('TUNE_FEATURES', 'vfp', ' vfp', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'neon', ' neon', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', ' vfpv3d16', '', d)}${@bb.utils.contains('TUNE_FEATURES', 'vfpv3', ' vfpv3', '' , d)}${@bb.utils.contains('TUNE_FEATURES', 'vfpv4', ' vfpv4', '', d)}${@bb.utils.contains('TUNE_FEATURES', [ 'vfpv4', 'neon' ], ' neon-vfpv4', '', d)}
TUNE_FEATURES{neon} = Set
TUNE_FEATURES{vfp} = Set
TUNE_FEATURES{vfpv3} = Unset
TUNE_FEATURES{vfpv3d16} = Unset
TUNE_FEATURES{vfpv4} = Unset'
Variable ARMPKGSFX_THUMB value changed from '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT', True) == 'thumb' else ''}
TUNE_FEATURES{thumb} = Set' to '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT', True) == 'thumb' else ''}
TUNE_FEATURES{thumb} = Unset'
runtaskdeps changed from ['autoconfautoconf_2.69.bb.do_populate_sysroot:virtual:native', 'automakeautomake_1.15.bb.do_populate_sysroot:virtual:native', 'expatexpat_2.1.0.bb.do_populate_sysroot:virtual:native', 'gdbgdb-cross_7.10.1.bb.do_patch', 'gettextgettext-minimal-native_0.19.4.bb.do_populate_sysroot', 'gnu-configgnu-config_git.bb.do_populate_sysroot:virtual:native', 'libtoollibtool-native_2.4.6.bb.do_populate_sysroot', 'ncursesncurses_6.0+20160213.bb.do_populate_sysroot:virtual:native', 'pythonpython-native_2.7.11.bb.do_populate_sysroot', 'readlinereadline_6.3.bb.do_populate_sysroot', 'readlinereadline_6.3.bb.do_populate_sysroot:virtual:native', 'texinfo-dummy-nativetexinfo-dummy-native.bb.do_populate_sysroot'] to ['autoconfautoconf_2.69.bb.do_populate_sysroot:virtual:native', 'automakeautomake_1.15.bb.do_populate_sysroot:virtual:native', 'expatexpat_2.1.0.bb.do_populate_sysroot:virtual:native', 'gdbgdb-cross_7.10.1.bb.do_patch', 'gettextgettext-minimal-native_0.19.4.bb.do_populate_sysroot', 'gnu-configgnu-config_git.bb.do_populate_sysroot:virtual:native', 'libtoollibtool-native_2.4.6.bb.do_populate_sysroot', 'ncursesncurses_6.0+20160213.bb.do_populate_sysroot:virtual:native', 'pythonpython-native_2.7.11.bb.do_populate_sysroot', 'readlinereadline_6.3.bb.do_populate_sysroot', 'readlinereadline_6.3.bb.do_populate_sysroot:virtual:native', 'texinfo-dummy-nativetexinfo-dummy-native.bb.do_populate_sysroot']
/OE/build/oe-core/openembedded-core/meta/recipes-core/readline/readline_6.3.bb.do_populate_sysroot with hash 323c67a8a6a66c247677ab68c85ff9fb
changed to
/OE/build/oe-core/openembedded-core/meta/recipes-core/readline/readline_6.3.bb.do_populate_sysroot with hash 88caa3bcf334d42e71c134af45ad5b4b
Hash for dependent task readlinereadline_6.3.bb.do_populate_sysroot changed from 323c67a8a6a66c247677ab68c85ff9fb to 88caa3bcf334d42e71c134af45ad5b4b
What's even more interesting is that even gcc-cross-initial has different signatures for 2 ARM MACHINEs with different DEFAULTTUNES
OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE= env.gdb-cross-arm*
env.gdb-cross-arm:DEFAULTTUNE="armv5te"
env.gdb-cross-arm7:DEFAULTTUNE="armv7a-neon"
OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate-diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross-initial-arm/5.3.0-r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba
tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross-initial-arm/5.3.0-r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239
OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate-diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
basehash changed from 5848199c69eee0db746de21c5458c13d to 673cd8d19bc4cbea132900a670593df6
Variable EXTRA_OECONF value changed from '--with-newlib --without-headers --disable-shared --disable-threads --disable-multilib --disable-__cxa_atexit --enable-languages=c --program-prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build-sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL} ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with-native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC} ${@gettext_oeconf(d)}
DISTRO_FEATURES{ld-is-gold} = Unset' to '--with-newlib --without-headers --disable-shared --disable-threads --disable-multilib --disable-__cxa_atexit --enable-languages=c --program-prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build-sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL} ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with-native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC} ${@gettext_oeconf(d)} --with-arch=armv7-a
DISTRO_FEATURES{ld-is-gold} = Unset'
>
> However if you do have PACKAGECONFIG set to "" for gdb for some reason then
> you'll want to cherry-pick ce2542057d877044a7548f2884d192f4f672c75a
> (master-next) to fix builds with the internal readline if you've got
> no-static-libs enabled (which is true for Poky).
>
> Ross
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
2016-03-09 22:50 ` Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master Martin Jansa
@ 2016-03-09 22:51 ` Richard Purdie
2016-03-09 23:02 ` Richard Purdie
1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2016-03-09 22:51 UTC (permalink / raw)
To: Martin Jansa, Burton, Ross, openembedded-core
Cc: yocto@yoctoproject.org, Rudolf J Streif
On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote:
> On Sat, Mar 05, 2016 at 09:40:48PM +0000, Burton, Ross wrote:
> > On 5 March 2016 at 21:19, Rudolf J Streif <rudolf.streif@gmail.com>
> > wrote:
> >
> > > compile fails with the following error message:
> > >
> > > > make[2]: *** No rule to make target
> > > > '../readline/libreadline.a', needed
> > > by 'gdb'. Stop.
> > > > make[2]: *** Waiting for unfinished jobs....
> > >
> > > The reason seems to be a broken path to the built-in readline in
> > > the
> > > makefile as the default configuration is
> > > --without-system-readline. Enabling
> > >
> > > PACKAGECONFIG_append_pn-dbg = " readline"
>
> See http://patchwork.openembedded.org/patch/116843/ discussion, the
> patch from Ross mentioned bellow fixes it better and is already
> merged
> in master.
>
> > The default is with system readline...
> >
> > gdb-common.inc:PACKAGECONFIG ??= "readline"
>
> BTW: this is causing gdb-cross-* to depend on target readline, which
> may
> have different signatures for different MACHINEs with the same arch.
>
> E.g. after adding qemuarm7 MACHINE, you can easily get gdb-cross-arm
> being rebuilt/extracted-from-sstate after each MACHINE change.
>
> I'm not sure why selftest didn't catch this, but it can be seen with:
> openembedded-core/scripts/sstate-diff-machines.sh --machines="qemuarm
> qemuarm7" --targets=gdb-cross-arm --tmpdir=tmp-glibc
Something has regressed. Do you know when this last passed? Looks like
we need to add some extra tests to selftest and get this fixed.
Sadly I'm drowning in problems to fix at the moment :(
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
2016-03-09 22:50 ` Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master Martin Jansa
2016-03-09 22:51 ` Richard Purdie
@ 2016-03-09 23:02 ` Richard Purdie
2016-03-09 23:52 ` Martin Jansa
2016-03-10 10:34 ` Peter A. Bigot
1 sibling, 2 replies; 6+ messages in thread
From: Richard Purdie @ 2016-03-09 23:02 UTC (permalink / raw)
To: Martin Jansa, Burton, Ross, openembedded-core
Cc: yocto@yoctoproject.org, Rudolf J Streif, Peter A. Bigot
On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote:
> What's even more interesting is that even gcc-cross-initial has
> different signatures for 2 ARM MACHINEs with different DEFAULTTUNES
>
> OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE= env.gdb-cross-arm*
> env.gdb-cross-arm:DEFAULTTUNE="armv5te"
> env.gdb-cross-arm7:DEFAULTTUNE="armv7a-neon"
>
> OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate
> -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross
> -initial-arm/5.3.0
> -r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba
> tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross
> -initial-arm/5.3.0
> -r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239
> OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate
> -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> basehash changed from 5848199c69eee0db746de21c5458c13d to
> 673cd8d19bc4cbea132900a670593df6
> Variable EXTRA_OECONF value changed from '--with-newlib --without
> -headers --disable-shared --disable-threads --disable-multilib -
> -disable-__cxa_atexit --enable-languages=c --program
> -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
> -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> ${@gettext_oeconf(d)}
> DISTRO_FEATURES{ld-is-gold} = Unset' to '--with-newlib --without
> -headers --disable-shared --disable-threads --disable-multilib -
> -disable-__cxa_atexit --enable-languages=c --program
> -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
> -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> ${@gettext_oeconf(d)} --with-arch=armv7-a
> DISTRO_FEATURES{ld-is-gold} = Unset'
To answer my own question, it looks like:
gcc-configure-common.inc:EXTRA_OECONF_append_armv6 = " --with-arch=armv6"
gcc-configure-common.inc:EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a"
gcc-configure-common.inc:EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a"
which effectively comes from:
http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devtools/gcc/gcc-configure-common.inc?id=c0a071e16ec04f485f06eece5b807e5afbe1c1f1
The concept of having one gcc for each arch precludes such changes :(.
I believe these overrides need to move to the gcc-target.inc file.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
2016-03-09 23:02 ` Richard Purdie
@ 2016-03-09 23:52 ` Martin Jansa
2016-03-10 0:09 ` Richard Purdie
2016-03-10 10:34 ` Peter A. Bigot
1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2016-03-09 23:52 UTC (permalink / raw)
To: Richard Purdie
Cc: Peter A. Bigot, yocto@yoctoproject.org, openembedded-core,
Rudolf J Streif
[-- Attachment #1: Type: text/plain, Size: 3836 bytes --]
On Wed, Mar 09, 2016 at 11:02:31PM +0000, Richard Purdie wrote:
> On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote:
> > What's even more interesting is that even gcc-cross-initial has
> > different signatures for 2 ARM MACHINEs with different DEFAULTTUNES
> >
> > OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE= env.gdb-cross-arm*
> > env.gdb-cross-arm:DEFAULTTUNE="armv5te"
> > env.gdb-cross-arm7:DEFAULTTUNE="armv7a-neon"
> >
> > OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate
> > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> > tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross
> > -initial-arm/5.3.0
> > -r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba
> > tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross
> > -initial-arm/5.3.0
> > -r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239
> > OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate
> > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> > basehash changed from 5848199c69eee0db746de21c5458c13d to
> > 673cd8d19bc4cbea132900a670593df6
> > Variable EXTRA_OECONF value changed from '--with-newlib --without
> > -headers --disable-shared --disable-threads --disable-multilib -
> > -disable-__cxa_atexit --enable-languages=c --program
> > -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> > -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> > -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
> > -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> > ${@gettext_oeconf(d)}
> > DISTRO_FEATURES{ld-is-gold} = Unset' to '--with-newlib --without
> > -headers --disable-shared --disable-threads --disable-multilib -
> > -disable-__cxa_atexit --enable-languages=c --program
> > -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> > -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> > -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
> > -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> > ${@gettext_oeconf(d)} --with-arch=armv7-a
> > DISTRO_FEATURES{ld-is-gold} = Unset'
>
> To answer my own question, it looks like:
>
> gcc-configure-common.inc:EXTRA_OECONF_append_armv6 = " --with-arch=armv6"
> gcc-configure-common.inc:EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a"
> gcc-configure-common.inc:EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a"
>
> which effectively comes from:
>
> http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devtools/gcc/gcc-configure-common.inc?id=c0a071e16ec04f485f06eece5b807e5afbe1c1f1
>
> The concept of having one gcc for each arch precludes such changes :(.
>
> I believe these overrides need to move to the gcc-target.inc file.
Reverting this change in Dizzy based build fixes the signatures for
gcc-cross(-initial)-arm
for gdb-cross-arm, there is still datadir -> TUNE_PKGARCH dependency from even
older change:
OE qemuarm7@ ~/build/oe-core/openembedded-core $ git show -1 3e87aba1
commit 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23
Author: Phil Blundell <pb@pbcl.net>
Date: Wed Apr 24 16:15:54 2013 +0100
gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
+datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
Reverting this change fixes gdb-cross-arm signatures.
Will try what happens when I revert this in master and move --with-arch
options to gcc-target.inc only.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
2016-03-09 23:52 ` Martin Jansa
@ 2016-03-10 0:09 ` Richard Purdie
0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2016-03-10 0:09 UTC (permalink / raw)
To: Martin Jansa
Cc: Peter A. Bigot, yocto@yoctoproject.org, openembedded-core,
Rudolf J Streif
On Thu, 2016-03-10 at 00:52 +0100, Martin Jansa wrote:
> On Wed, Mar 09, 2016 at 11:02:31PM +0000, Richard Purdie wrote:
> > On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote:
> > > What's even more interesting is that even gcc-cross-initial has
> > > different signatures for 2 ARM MACHINEs with different
> > > DEFAULTTUNES
> > >
> > > OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE= env.gdb-cross
> > > -arm*
> > > env.gdb-cross-arm:DEFAULTTUNE="armv5te"
> > > env.gdb-cross-arm7:DEFAULTTUNE="armv7a-neon"
> > >
> > > OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate
> > > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> > > tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross
> > > -initial-arm/5.3.0
> > > -r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba
> > > tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross
> > > -initial-arm/5.3.0
> > > -r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239
> > > OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate
> > > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
> > > basehash changed from 5848199c69eee0db746de21c5458c13d to
> > > 673cd8d19bc4cbea132900a670593df6
> > > Variable EXTRA_OECONF value changed from '--with-newlib --without
> > > -headers --disable-shared --disable-threads --disable-multilib -
> > > -disable-__cxa_atexit --enable-languages=c --program
> > > -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> > > -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> > > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> > > -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> > > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} -
> > > -with
> > > -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> > > ${@gettext_oeconf(d)}
> > > DISTRO_FEATURES{ld-is-gold} = Unset' to '--with-newlib --without
> > > -headers --disable-shared --disable-threads --disable-multilib -
> > > -disable-__cxa_atexit --enable-languages=c --program
> > > -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
> > > -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
> > > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
> > > -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
> > > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} -
> > > -with
> > > -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
> > > ${@gettext_oeconf(d)} --with-arch=armv7-a
> > > DISTRO_FEATURES{ld-is-gold} = Unset'
> >
> > To answer my own question, it looks like:
> >
> > gcc-configure-common.inc:EXTRA_OECONF_append_armv6 = " --with
> > -arch=armv6"
> > gcc-configure-common.inc:EXTRA_OECONF_append_armv7a = " --with
> > -arch=armv7-a"
> > gcc-configure-common.inc:EXTRA_OECONF_append_armv7ve = " --with
> > -arch=armv7-a"
> >
> > which effectively comes from:
> >
> > http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devto
> > ols/gcc/gcc-configure
> > -common.inc?id=c0a071e16ec04f485f06eece5b807e5afbe1c1f1
> >
> > The concept of having one gcc for each arch precludes such changes
> > :(.
> >
> > I believe these overrides need to move to the gcc-target.inc file.
>
> Reverting this change in Dizzy based build fixes the signatures for
> gcc-cross(-initial)-arm
>
> for gdb-cross-arm, there is still datadir -> TUNE_PKGARCH dependency
> from even
> older change:
>
> OE qemuarm7@ ~/build/oe-core/openembedded-core $ git show -1 3e87aba1
> commit 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23
> Author: Phil Blundell <pb@pbcl.net>
> Date: Wed Apr 24 16:15:54 2013 +0100
>
> gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
>
>
> +datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
>
> Reverting this change fixes gdb-cross-arm signatures.
>
> Will try what happens when I revert this in master and move --with
> -arch
> options to gcc-target.inc only.
I have an untested patch for the latter:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip
&id=3b30d958abff7ab913ed9d4852dfd44a57e84eb1
(just not gotten to it yet).
We do have a bigger problem in that I think if you switch tunes between
things which change TARGET_OS (e.g. an x86 x32 build, mips n32 or ppc
spe) we'll have the same issue. To fix that we'll likely need the
target OS mangling that cross-canadian does and that is going to be
pretty invasive to implement.
The good news is that sstate will remove/install the correct gcc-cross
quite happily so whilst annoying, builds don't break.
The ppc spe v1 issue is more pressing since python3 is breaking on the
autobuilder due to that :(
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master
2016-03-09 23:02 ` Richard Purdie
2016-03-09 23:52 ` Martin Jansa
@ 2016-03-10 10:34 ` Peter A. Bigot
1 sibling, 0 replies; 6+ messages in thread
From: Peter A. Bigot @ 2016-03-10 10:34 UTC (permalink / raw)
To: Richard Purdie, Martin Jansa, Burton, Ross, openembedded-core
Cc: yocto@yoctoproject.org, Rudolf J Streif
On 03/09/2016 05:02 PM, Richard Purdie wrote:
> On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote:
>> What's even more interesting is that even gcc-cross-initial has
>> different signatures for 2 ARM MACHINEs with different DEFAULTTUNES
>>
>> OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE= env.gdb-cross-arm*
>> env.gdb-cross-arm:DEFAULTTUNE="armv5te"
>> env.gdb-cross-arm7:DEFAULTTUNE="armv7a-neon"
>>
>> OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate
>> -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
>> tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross
>> -initial-arm/5.3.0
>> -r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba
>> tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross
>> -initial-arm/5.3.0
>> -r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239
>> OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate
>> -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure*
>> basehash changed from 5848199c69eee0db746de21c5458c13d to
>> 673cd8d19bc4cbea132900a670593df6
>> Variable EXTRA_OECONF value changed from '--with-newlib --without
>> -headers --disable-shared --disable-threads --disable-multilib -
>> -disable-__cxa_atexit --enable-languages=c --program
>> -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
>> -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
>> ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
>> -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
>> ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
>> -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
>> ${@gettext_oeconf(d)}
>> DISTRO_FEATURES{ld-is-gold} = Unset' to '--with-newlib --without
>> -headers --disable-shared --disable-threads --disable-multilib -
>> -disable-__cxa_atexit --enable-languages=c --program
>> -prefix=${TARGET_PREFIX} --with-sysroot=/not/exist --with-build
>> -sysroot=${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}
>> ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with
>> -ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}
>> ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with
>> -native-system-header-dir=${SYSTEMHEADERS}${DISABLE_STATIC}
>> ${@gettext_oeconf(d)} --with-arch=armv7-a
>> DISTRO_FEATURES{ld-is-gold} = Unset'
> To answer my own question, it looks like:
>
> gcc-configure-common.inc:EXTRA_OECONF_append_armv6 = " --with-arch=armv6"
> gcc-configure-common.inc:EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a"
> gcc-configure-common.inc:EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a"
>
> which effectively comes from:
>
> http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devtools/gcc/gcc-configure-common.inc?id=c0a071e16ec04f485f06eece5b807e5afbe1c1f1
>
> The concept of having one gcc for each arch precludes such changes :(.
Yes. Fundamentally the Yocto concept of arch appears to be inconsistent
with gcc's concept in that the defaults for Yocto don't match the
defaults for gcc on the same platform. At the time I submitted that
patch reworking how the toolchain is built wasn't feasible.
I'm not working with Yocto at this time so can't contribute to the
solution, however if/when I get the opportunity I can help verify that
the bug the patch fixed hasn't been re-introduced.
Peter
> I believe these overrides need to move to the gcc-target.inc file.
>
> Cheers,
>
> Richard
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-03-10 10:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <18448427.V3ACvxT67R@rjs-zotac.streifs.net>
[not found] ` <CAJTo0La2CZAKw0Cd4_NpPLt=qXy3x3Arv36huhUMmCH3tV14YA@mail.gmail.com>
2016-03-09 22:50 ` Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master Martin Jansa
2016-03-09 22:51 ` Richard Purdie
2016-03-09 23:02 ` Richard Purdie
2016-03-09 23:52 ` Martin Jansa
2016-03-10 0:09 ` Richard Purdie
2016-03-10 10:34 ` Peter A. Bigot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox