Skip to contentSkip to conversation

New: util-linux fails to build on Travis CI when python also selected

Buildroot bugzilla at busybox.net 1 participant 8 messages Aug 16, 2018 – Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=11236

Bug ID: 11236
Summary: util-linux fails to build on Travis CI when python
also selected
Product: buildroot
Version: 2018.02.1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: frankv at helium.com
CC: buildroot at uclibc.org
Target Milestone: ---

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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 11236] util-linux fails to build on Travis CI when python also selected

https://bugs.busybox.net/show_bug.cgi?id=11236

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |yann.morin.1998 at free.fr
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #1 from Yann E. MORIN <[email protected]> --- 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... :-/

Quoted 1 line

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...

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 11236] util-linux fails to build on Travis CI when python also selected

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11236

Raphael Jacob <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|WORKSFORME                  |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Raphael Jacob <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 11236] util-linux fails to build on Travis CI when python also selected

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11236

--- Comment #3 from Frank Vasquez <[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 11236] util-linux fails to build on Travis CI when python also selected

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11236

--- Comment #4 from Raphael Jacob <[email protected]> ---
(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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 11236] util-linux fails to build on Travis CI when python also selected

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11236

Frank Vasquez <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WONTFIX
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.