mismatching headers between powerpc/ppc64el and other archs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
the header files from linux-libc-dev are causing repsnapper on -proposed to FTBFS on powerpc/ppc64el
I tracked it to 2 include clauses:
#include <sys/ioctl.h>
#include <asm/termbits.h>
causing the following error on powerpc/ppc64el builds:
following errors:
src/printer/
src/printer/
struct termios2 options;
src/printer/
if ( ioctl( device_fd, TCGETS2, &options ) < 0 ) {
src/printer/
if ( ioctl( device_fd, TCSETS2, &options ) < 0 ) {
Please see bug #1619100 for more info.
Comparing the powerpc/ppc64el headers to amd64 I found that they seem to be missing includes to other headers under asm-generic/
If I try to add the missing asm-generic headers:
#include <sys/ioctl.h>
#include <asm/termbits.h>
#include <asm-generic/
#include <asm-generic/
Then the build again fails on both powerpc/ppc64el and succeeds on all other archs, this time the error is:
In file included from src/printer/
/usr/include/
struct termios {
^~~~~~~
In file included from src/printer/
/usr/include/
struct termios {
^~~~~~~
In file included from src/printer/
/usr/include/
struct ktermios {
^~~~~~~~
In file included from src/printer/
/usr/include/
struct ktermios {
^~~~~~~~
Finally, modifying the original includes to remove the asm/termbits.h:
#include <sys/ioctl.h>
#include <asm-generic/
#include <asm-generic/
Allows for the repsnapper build to succeed on all arches, including powerpc/ppc64el. Question is: why is this even needed?
linux-libc-dev packages:
Get:10 http://
Get:10 http://
Get:10 http://
Checking the headers is seems that powerpc/ppc64el are missing includes for asm-generics:
$ grep -r TCGETS2 linux-libc-
linux-libc-
linux-libc-
$ grep -r ioctls.h linux-libc-
linux-libc-
linux-libc-
linux-libc-
linux-libc-
$ grep -r "termios2 {" linux-libc-
linux-libc-
linux-libc-
$ grep -r termbits.h linux-libc-
linux-libc-
linux-libc-
linux-libc-
linux-libc-
summary: |
- mismatch headers between powerpc/ppc64el and other archs + mismatching headers between powerpc/ppc64el and other archs |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
tags: | added: cscc |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1619446
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.