Bug 11236 - util-linux fails to build on Travis CI when python also selected
Summary: util-linux fails to build on Travis CI when python also selected
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2018.02.1
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 14:40 UTC by Frank Vasquez
Modified: 2018-08-28 10:53 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Vasquez 2018-08-16 14:40:19 UTC
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.
Comment 1 Yann E. MORIN 2018-08-16 15:12:06 UTC
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...
Comment 2 Raphael Jacob 2018-08-16 18:17:48 UTC
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
Comment 3 Frank Vasquez 2018-08-18 00:24:57 UTC
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
Comment 4 Raphael Jacob 2018-08-18 07:23:03 UTC
(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
Comment 5 Frank Vasquez 2018-08-20 15:26:31 UTC
I will try reconfiguring my Travis CI build with an Ubuntu 16.04 Docker image when I get a chance.

Cheers,
Frank
Comment 6 Frank Vasquez 2018-08-28 10:52:45 UTC
I can successfully build util-linux with python also selected on Travis CI inside a Docker container.

Cheers,
Frank