Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122173 - dev-libs/klibc-1.2.1-r1 fails to compile with KBUILD_OUTPUT
Summary: dev-libs/klibc-1.2.1-r1 fails to compile with KBUILD_OUTPUT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 14:05 UTC by Thomas Weidner
Modified: 2006-07-07 06:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch to fix dash linking problems when compiling with KBUILD_OUTPUT. (klibc-1.2.4-kbuild.patch,615 bytes, patch)
2006-03-11 16:27 UTC, Michal Januszewski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2006-02-08 14:05:49 UTC
hi, 

i have kernel sources in /usr/src/linux but built it in /home/thomas/kernel-build/  and i set KBUILD_OUTPUT correctly. the kernel build dir is found at the beginning of the ebuild run correctly, but compiling fails nevertheless:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /home/thomas/kernel-build/
 * Found sources for kernel version:
 *     2.6.15-gentoo-r2
>>> Unpacking source...
>>> Unpacking klibc-1.2.1.tar.bz2 to /var/tmp/portage/klibc-1.2.1-r1/work
 * Applying klibc-1.2.1-nostdinc-flags.patch ...                          [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/klibc-1.2.1-r1/work/klibc-1.2.1 ...
  GEN     klcc/klibc.config
  GEN     klcc/klcc
  HOSTCC  scripts/basic/fixdep
  GEN     klibc/syscalls/SYSCALLS.i
klibc/SYSCALLS.def:13:24: error: asm/unistd.h: No such file or directory
make[3]: *** [klibc/syscalls/SYSCALLS.i] Error 1
make[2]: *** [klibc/syscalls] Error 2
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

emerge --info is:
Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d acl aim alsa asf audiofile avi berkdb bitmap-fonts cairo crypt cups dvd dvdread emboss encode ffmpeg font-server foomaticdb fortran gif gpm gstreamer gtk gtk2 icq imlib ipv6 irc jabber jpeg libcaca live lzw lzw-tiff mad matroska mp3 mpeg msn ncurses nls nptl nptlonly nsplugin objc opengl oss pam pdflib perl png python quicktime readline real rtc sdl ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis xattr xpm xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2006-03-11 16:27:20 UTC
Created attachment 81946 [details, diff]
A patch to fix dash linking problems when compiling with KBUILD_OUTPUT.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-07 06:33:29 UTC
Added to -r2, thanks.