I am trying to build an Edison image from source which I would like to customise however the most recent source packages I can find (listed below) have a bunch of out of date /broken package links and are causing the build to fail. Question: am I using the latest source distribution and if not where can I find one that builds?
I am using the following source:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/ meta-intel-edison - Layer for the Intel Edison Development Platform
Thanks for reaching out!
Could you please explain us more about the error message you received? Was it related to paho-mqtt? I have seen several thread where users have issues with this recipe when building Edison's image. If that was the case please try the following:
1. Go to paho-mqtt:
2. Modify paho-mqtt_3.1.bb:
Search for the line that contains SRC_URI and change it into the following:
SRC_URI = "git://github.com/eclipse/paho.mqtt.c.git;protocol=http \
3. Try building the image again.
If the error message is not related to paho-mqtt, please send us a screenshot of the error message.
We'll be waiting for your response.
Thanks so much for getting back to me so quickly.
I did hit the issue you mention with paho-mqtt and fixed it manually in exactly the way you describe.
In addition I got several warnings for other packages which seem to have out of date URLs:
WARNING: Failed to fetch URL http://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz http://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.xz http://downloads.sourceforge.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.xz, attempting MIRRORS if available
WARNING:Failed to fetch URL http://downloads.sourceforge.net/flex/flex-2.5.39.tar.bz2 http://downloads.sourceforge.net/flex/flex-2.5.39.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-util-1.5.3.tar.gz http://www.apache.org/dist/apr/apr-util-1.5.3.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URLhttp://code.entropywave.com/download/orc/orc-0.4.18.tar.gz;name=orc http://code.entropywave.com/download/orc/orc-0.4.18.tar.gz;name=orc, attempting MIRRORS if available
I believe the issue might be related to the OS you are using to build the image. As you can see in section 1.3.1 of Yocto's Mega Manual ( http://www.yoctoproject.org/docs/1.7.2/mega-manual/mega-manual.html). When you build the image on an unsupported OS, it will throw a warning message that unexpected issues might occur. I personally have never had this specific issue on Ubuntu 14. Is it possible for you to try using Ubuntu 14? If so, let me know if the issue persists.
The warning messages you posted above are normal, they simply let you know that the packages were not found on the "first download link" and it used a mirror to get it. In case it fails to obtain the package from another mirror it will throw an error message such as in the case of paho-mqtt. If that is not the case, it is O.K. to ignore those warning messages.
Let me know how it goes.
I retried this using Ubuntu 14 and was able to successfully build the image.
Just to recap for anyone else:
1, Use this source: http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/ meta-intel-edison - Layer for the Intel Edison Development Platform
2, Run on Ubuntu 14 (not 16)
3, Fix the broken link in the paho_mqtt recipe as above
4, Ignore the warnings
Thanks so much for helping!
I'm glad to be of help! I'm really happy to hear that now you are able to build the image.
If you ever have any other doubts, please don't hesitate to come back to the community, we'll try to help you in any way we can.
The source you linked to builds just fine on Ubuntu 16.04 LTS (with the fix to the paho-mqtt recipe), although it will complain about it every step of the way...
I am using ubuntu 16.10. Could you please tell a way to resolve this error without having to install ubuntu 14.
The error looks very strange. Why is NULL check wrong? Also I am tryying to pass "-wno-error=nonull-compare" but still I cannot resolve the issue.
Awaiting your reply.