Here is a link to the build output. Notice that Python.h cannot be located. https://gist.github.com/fvasquez/1d4e94b37bd3388a3e6051d03d25fbd2 The failure only occurs when building on Travis CI. The same defconfig builds just fine on my Ubuntu 16.04 laptop. I tried adding python-dev to apt packages in .travis.yml to no avail.
Frank, As discussed on IRC, this is an environment problem on TravisCI. I suggested you investigate what /opt/pyenv/shims is for, and similarly for all the other stuff in PATH. You may have to sanitise the PATH somehow before calling Buildroot. Otherwise, there's not much we can do about it... :-/ > I tried adding python-dev Which I explained on IRC was useless because your error is about building util-linux for the target, so the host python devel files are useless. Closing as not reproducible on a standard environment...
Hi, @Yann Morin: I think you confound Frank and me. I was on IRC and you told me to investigate more. I would keep this open. Maybe we can fix this in buildroot. Raphael
Thanks, Raphael. Many Buildroot users like me rely on Travis CI. It sucks that Travis CI is still on Ubuntu 14.04 and I doubt that building inside a Docker image will fix the issue. Probably some form of PATH sanitization as Yann points out is what's required. Let me know if I can help in any way. Cheers, Frank
(In reply to Frank Vasquez from comment #3) What would be the problem with using a docker image of the latest debian/ubuntu? What did you try to fix this problem? Did it work? Sadly I had no time for further debugging yet. Raphael
I will try reconfiguring my Travis CI build with an Ubuntu 16.04 Docker image when I get a chance. Cheers, Frank
I can successfully build util-linux with python also selected on Travis CI inside a Docker container. Cheers, Frank