Bug#764335: /usr/include/x86_64-linux-musl/sys/kd.h:5:22: fatal error: linux/kd.h: No such file or directory

2014-10-08 Thread Kevin Bortis
Hi Michael

In general it is not wise for simple user space program to use files under
linux. musl-gcc was designed to compile simple C programs without the
hassle of installing a full cross compiler.

Since musl does, unlike glibc, NOT depend on any linux-headers, you are
free to use your own set of linux headers if needed.

The best way is to use sanitized kernel headers like the one provided by
sabotage linux as download able tarball.
https://github.com/sabotage-linux/kernel-headers Simply install it and add
-Ipath_to_kernel_headers to your program.

If you want to compile more complicated programs you should look at the
musl-cross project: https://bitbucket.org/GregorR/musl-cross . After
installation you will end up with a full gcc system including linux headers
and binutils. It may sound strange at first to do cross compile for same
arch you are sitting on, but that's the way to go.

I do not consider this a bug of mus-gcc since it is simply not designed and
intended to compile more sophisticated programs.

If I find some time, I will package a full musl cross gcc toolchain.


Bug#764335: /usr/include/x86_64-linux-musl/sys/kd.h:5:22: fatal error: linux/kd.h: No such file or directory

2014-10-07 Thread Michael Tokarev
Package: musl-dev
Version: 1.1.4-1
Severity: normal

This is an error produced by the compiler when using musl-gcc to compile
a source file which #includes sys/kd.h.

linux-libc-dev provides file /usr/include/linux/kd.h, but it looks like
musl-gcc does not try to use it.

Thanks,

/mjt

-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable'), (199, 'testing'), (50, 
'unstable'), (40, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
powerpc

Kernel: Linux 3.10-amd64 (SMP w/8 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages musl-dev depends on:
ii  musl  1.1.4-1

musl-dev recommends no packages.

musl-dev suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764335: /usr/include/x86_64-linux-musl/sys/kd.h:5:22: fatal error: linux/kd.h: No such file or directory

2014-10-07 Thread Michael Tokarev
Control: retitle -1 linux/ includes do not work

07.10.2014 15:03, Michael Tokarev wrote:
 Package: musl-dev
 Version: 1.1.4-1
 Severity: normal
 
 This is an error produced by the compiler when using musl-gcc to compile
 a source file which #includes sys/kd.h.
 
 linux-libc-dev provides file /usr/include/linux/kd.h, but it looks like
 musl-gcc does not try to use it.

The same happens with all linux/ includes actually, even linux/version.h.
Adding a symlink to /usr/include/linux into musl include directory does
the trick, but I'm not sure it is the right/intended fix.

Thanks,

/mjt


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org