<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""> I have Parallels (running on El Capitan the one before Sierra) and ubuntu 14 running my current build environment on a MacBook Pro, but boy is the build slow… I also worked at Apple for 19 years on drivers inside MacOS X/iOS, so I am more than motivated to have this working natively rather than inside any container or disk space hogging environment. As I mentioned I am working with the Intel Aero compute board, so slogging though all this fat to build an image is a productivity killer.</div><div class=""><br class=""></div><div class="">I think most of the incompatibilities between Linux and os x (which btw is coming from the ios side of the fence unfortunately), can be mitigated with boot args or via the command line . Apple’s compiler team had to make llvm compatible with gcc, so I am surprised if in 2017, there are compiler issues to building for an x86_64 platform with llvm on the Mac . That’s the kind of bug Apple likes to fix promptly.. </div><div class=""><br class=""></div><div class="">As I mentioned, I tried to simply source the oe-init-build-env, and got an error that the readlink command that yocto is using is incompatible with the bsd version of readlink built into os x. </div><div class=""><br class=""></div><div class="">i.e when I run .</div><div class=""><br class=""></div><div class=""><span style="font-family: Monaco; font-size: 9px;" class="">source oe-init-build-env</span></div><div class=""><br class=""></div><div class="">I get the error</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 9px; line-height: normal; font-family: Monaco;"><span class="" style="font-variant-ligatures: no-common-ligatures;">readlink: illegal option -- f</span></div></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">Which is because on OS X readlink doesn’t specify -f</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><div style="margin: 0px; font-size: 9px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">YNOPSIS</span></div><div style="margin: 0px; font-size: 9px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> stat [-FLnq] [-f </span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">format</span><span style="font-variant-ligatures: no-common-ligatures" class=""> | -l | -r | -s | -x] [-t </span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">timefmt</span><span style="font-variant-ligatures: no-common-ligatures" class="">] [</span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">file</span><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">...</span><span style="font-variant-ligatures: no-common-ligatures" class="">]</span></div><div style="margin: 0px; font-size: 9px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> readlink [-n] [</span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">file</span><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="text-decoration: underline ; font-variant-ligatures: no-common-ligatures" class="">...</span><span style="font-variant-ligatures: no-common-ligatures" class="">]</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I didn’t want to go through this level of change in the Yocto sources if (1) people don’t care to take changes or (2) it had already been done before.. I was curious how far down this rabbit hole people had gone before..</span></div></span></div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 8:50 AM, Andrea Galbusera <<a href="mailto:gizero@gmail.com" class="">gizero@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 12, 2017 at 5:21 PM, Belisko Marek<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:marek.belisko@gmail.com" target="_blank" class="">marek.belisko@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><span class="">On Thu, Jan 12, 2017 at 4:39 PM, Tim Orling<br class=""><<a href="mailto:timothy.t.orling@linux.intel.com" class="">timothy.t.orling@linux.intel.<wbr class="">com</a>> wrote:<br class="">> You can also build using Docker containers:<br class="">><span class="Apple-converted-space"> </span><a href="https://github.com/crops/docker-win-mac-docs/wiki" rel="noreferrer" target="_blank" class="">https://github.com/crops/<wbr class="">docker-win-mac-docs/wiki</a><br class=""></span>Well the re is other limitation about slow filesystem access from<br class="">docker on osx. There is workaround to use nfs but it's not possible to<br class="">use nfs for building yocto - so it's kind of chicken-egg problem ;)<br class=""></blockquote><div class=""><br class=""></div><div class="">I shortly tested the CROPS docker-based setup after watching some presentation at ELCE 2016 in Berlin. It basically worked but I experienced the filesystem slowness your are talking about. I ended up waiting hours to see a simple core-image-minimal build complete (even after giving more cores to docker). One more point is that slightly more complex build scenarios, i.e. building resin.os, also required tweaking docker run parameters for the build container in order to give bitbake access to features like loop devices it needed (not always easily debuggable issues indeed). Turned out I decided to stick with more canonical linux based environments for the moment.</div><div class=""><br class=""></div><div class="">Anyway, the technology behind CROPS is *very* interesting to me, and I'd like to hear from people closely involved (Tim?) what the state of the art is and what we can expect to see in the near future. IIRC, the roadmap for Yocto 2.3 release was supposed to resurrect the Eclipse plugin and adopt CROPS as an alternative for running eSDK in a seamless way on different development host OSs. Beside from the images on docker hub and the github projects that didn't have high activity in the latest months, I hardly find discussions and documentation on the whole approach. Isn't this hot enough anymore or are there big issues that will prevent this technology from taking off. I often manage SDKs for Windows-minded developers and I strongly yearn to find a better approach to help them feel at home while building stuff for OE/Yocto based systems... </div><div class=""><br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div class="HOEnZb"><div class="h5">><br class="">> On Jan 12, 2017, at 7:34 AM, Burton, Ross <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>> wrote:<br class="">><br class="">><br class="">> On 12 January 2017 at 15:14, Roger Smith <<a href="mailto:roger@sentientblue.com" class="">roger@sentientblue.com</a>> wrote:<br class="">>><br class="">>> Is there any documentation for running the Yocto build system on Mac OS X<br class="">>> or macOS as Apple now calls it? I am working with the Intel Aero board.<br class="">>> Before I go down the rabbit hole of fixing issues like this one (and I am<br class="">>> using the bash shell), I’d like to know if anyone has build it on os x<br class="">>> before.<br class="">><br class="">><br class="">> If you install all of the GNU tools using brew or similar and put them first<br class="">> on $PATH then you can get bitbake started. Then you need to stub out the<br class="">> linux-specific bits in bitbake. I've previously started on this work<br class="">> already<br class="">> (<a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=ross/darwin" rel="noreferrer" target="_blank" class="">http://git.yoctoproject.org/<wbr class="">cgit/cgit.cgi/poky-contrib/<wbr class="">log/?h=ross/darwin</a>).<br class="">> The next step is figuring out how to configure OE to build and link natively<br class="">> on OSX using LLVM instead of GCC.<br class="">><br class="">> However all of this is mostly academic because in Sierra (iirc) onwards<br class="">> there is tighter security on processes, which means that pseudo won't work<br class="">> even if you port it to macOS.<br class="">><br class="">> So unless you fancy some non-trivial engineering the short version is just<br class="">> use something like Docker to run a Linux system on your Mac.<br class="">><br class="">> Ross<br class="">> --<br class="">> ______________________________<wbr class="">_________________<br class="">> yocto mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:yocto@yoctoproject.org" class="">yocto@yoctoproject.org</a><br class="">><span class="Apple-converted-space"> </span><a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank" class="">https://lists.yoctoproject.<wbr class="">org/listinfo/yocto</a><br class="">><br class="">><br class="">><br class="">> --<br class="">> ______________________________<wbr class="">_________________<br class="">> yocto mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:yocto@yoctoproject.org" class="">yocto@yoctoproject.org</a><br class="">><span class="Apple-converted-space"> </span><a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank" class="">https://lists.yoctoproject.<wbr class="">org/listinfo/yocto</a><br class="">><br class=""><br class=""></div></div><span class="HOEnZb"><font color="#888888" class="">marek<br class=""><br class="">--<br class="">as simple and primitive as possible<br class="">------------------------------<wbr class="">-------------------<br class="">Marek Belisko - OPEN-NANDRA<br class="">Freelance Developer<br class=""><br class="">Ruska Nova Ves 219 | Presov, 08005 Slovak Republic<br class="">Tel:<span class="Apple-converted-space"> </span><a href="tel:%2B421%20915%20052%20184" value="+421915052184" class="">+421 915 052 184</a><br class="">skype: marekwhite<br class="">twitter: #opennandra<br class="">web:<span class="Apple-converted-space"> </span><a href="http://open-nandra.com/" rel="noreferrer" target="_blank" class="">http://open-nandra.com</a><br class=""></font></span><div class="HOEnZb"><div class="h5">--<br class="">______________________________<wbr class="">_________________<br class="">yocto mailing list<br class=""><a href="mailto:yocto@yoctoproject.org" class="">yocto@yoctoproject.org</a><br class=""><a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank" class="">https://lists.yoctoproject.<wbr class="">org/listinfo/yocto</a><br class=""></div></div></blockquote></div><br class=""></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">yocto mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:yocto@yoctoproject.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">yocto@yoctoproject.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.yoctoproject.org/listinfo/yocto" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.yoctoproject.org/listinfo/yocto</a></div></blockquote></div><br class=""></div></body></html>