Bug 12386 - [morty] error building nspr-native
Summary: [morty] error building nspr-native
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 x86_64
: Medium+ normal
Target Milestone: 2.2.3
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-29 15:10 UTC by Thomas Köller
Modified: 2017-12-14 16:04 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Patch to fix build error (2.07 KB, patch)
2017-11-29 15:10 UTC, Thomas Köller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Köller 2017-11-29 15:10:05 UTC
Created attachment 4134 [details]
Patch to fix build error

Building nspr-native fails because of a missing #include. Patch attached.
Comment 1 Ross Burton 2017-11-30 15:50:37 UTC
This has been fixed already in git master/rocko with 2c58d7176417dcb8226f6244363979e739450732, so that should be backported instead.

This sounds like the thin edge of the "nothing works with my new compiler" though, so if I were you I'd install the morty buildtools.
Comment 2 Thomas Köller 2017-12-01 11:49:38 UTC
(In reply to comment #1)
> This has been fixed already in git master/rocko with
> 2c58d7176417dcb8226f6244363979e739450732, so that should be backported
> instead.
> 
> This sounds like the thin edge of the "nothing works with my new compiler"
> though, so if I were you I'd install the morty buildtools.

I downloaded and installed http://downloads.yoctoproject.org/releases/yocto/yocto-2.2.2/buildtools/x86_64-buildtools-nativesdk-standalone-2.2.2.sh, is that what you mean? Using that did not change anything. Little wonder, as the installed tool chain does not include a compiler, and so the hosts compiler is still used:

[tkoeller@fedora-vb-tkoeller build-rpb]$ ls /opt/poky/2.2.2/sysroots/x86_64-pokysdk-linux/usr/bin
2to3-3.5        git-cvsserver       gtar     make                pdftexi2dvi  python3.5          sexp-conv  update-alternatives     zcat
chrpath         git.real            gunzip   makeinfo            pkcs1-conv   python3.5-config   tar        update-ca-certificates
c_rehash        git-receive-pack    gzip     nettle-hash         pod2texi     python3.5m         texi2any   updatedb
find            git-shell           idle3    nettle-lfib-stream  pydoc3       python3.5m-config  texi2dvi   wget
find.findutils  git-upload-archive  idle3.5  nettle-pbkdf2       pydoc3.5     python3.5.real     texi2pdf   xargs
git             git-upload-pack     locate   openssl             python3      python3-config     texindex   xargs.findutils
[tkoeller@fedora-vb-tkoeller build-rpb]$ echo $PATH
/home/tkoeller/ModBiz_MCM_Linaro_Project/linaro-build/layers/openembedded-core/scripts:/home/tkoeller/ModBiz_MCM_Linaro_Project/linaro-build/bitbake/bin:/home/tkoeller/ModBiz_MCM_Linaro_Project/linaro-build/.repo/repo:/opt/poky/2.2.2/sysroots/x86_64-pokysdk-linux/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/tkoeller/.local/bin:/home/tkoeller/bin
[tkoeller@fedora-vb-tkoeller build-rpb]$ which -a gcc
/usr/bin/gcc
Comment 3 Armin Kuster 2017-12-02 22:30:06 UTC
merged to stagging