During an attempt to use catalyst 2.0_rc8 to create a stage1 target, it bombs when attempting to build glibc. Configure is looking for the linux headers in the stage1root (--with-headers=/tmp/stage1root//usr/include), before linux-headers have installed into stage1root. Reproducible: Always Steps to Reproduce: 1. Create stage3 with catalyst2 2. Create spec file with target of stage1 3. Use spec file to create a stage1. Actual Results: Run with --verbose: ROOT=/tmp/stage1root emerge --usepkg --buildpkg --newuse -vpt --noreplace app-arch/bzip2 app-arch/tar app-shells/bash dev-lang/python net-misc/rsync net-misc/wget >=sys-apps/baselayout-1.11.12-r4 sys-apps/coreutils sys-apps/debianutils sys-apps/diffutils sys-apps/file sys-apps/findutils sys-apps/gawk sys-apps/grep sys-apps/less sys-apps/net-tools >=sys-apps/portage-2.0.51.22 sys-apps/sed sys-apps/texinfo >=sys-devel/binutils-2.13.90.0.4 sys-devel/bison sys-devel/flex >=sys-devel/gcc-3.3.4-r1 sys-devel/gettext sys-devel/gnuconfig sys-devel/make sys-devel/patch dev-lang/perl virtual/editor virtual/gzip virtual/libc virtual/os-headers These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] sys-kernel/linux-headers-2.6.11-r2 to /tmp/stage1root/ 0 kB [ebuild N ] app-editors/nano-1.3.7 to /tmp/stage1root/ +build* -debug -justify -ncurses* -nls -nomac -slang -spell* -unicode 0 kB [ebuild N ] app-admin/perl-cleaner-1.01 to /tmp/stage1root/ 0 kB [ebuild N ] dev-lang/perl-5.8.6-r7 to /tmp/stage1root/ -berkdb* +build* -debug -doc -gdbm* -ithreads -minimal -perlsuid 0 kB [ebuild N ] sys-devel/libperl-5.8.6-r1 to /tmp/stage1root/ -berkdb* -debug -gdbm* -ithreads 0 kB [ebuild N ] sys-devel/patch-2.5.9 to /tmp/stage1root/ +build* -static 0 kB [ebuild N ] sys-devel/make-3.80-r2 to /tmp/stage1root/ +build* -hardened -nls -static 0 kB [ebuild N ] sys-devel/gnuconfig-20050602 to /tmp/stage1root/ 0 kB [ebuild N ] sys-devel/gettext-0.14.4 to /tmp/stage1root/ -doc -emacs -nls 6,869 kB [ebuild N ] sys-devel/gcc-3.4.4-r1 to /tmp/stage1root/ (-altivec) -bootstrap -boundschecking +build* -fortran* -gcj -gtk* -hardened -ip28 -mudflap (-multilib) -multislot (-n32) (-n64) -nls -nocxx -nopie -nossp -objc -objc-gc -vanilla 0 kB [ebuild N ] sys-devel/gcc-config-1.3.12-r4 to /tmp/stage1root/ 0 kB [ebuild N ] sys-devel/flex-2.5.4a-r6 to /tmp/stage1root/ +build* -static 0 kB [ebuild N ] sys-devel/bison-1.875d to /tmp/stage1root/ -nls -static 0 kB [ebuild N ] sys-devel/m4-1.4.3 to /tmp/stage1root/ -nls 0 kB [ebuild N ] sys-devel/binutils-2.16.1 to /tmp/stage1root/ -multislot -multitarget -nls -test 0 kB [ebuild N ] sys-devel/binutils-config-1.8-r6 to /tmp/stage1root/ 0 kB [ebuild N ] sys-apps/texinfo-4.8-r2 to /tmp/stage1root/ +build* -nls -static 0 kB [ebuild N ] sys-apps/sed-4.1.4 to /tmp/stage1root/ -bootstrap +build* -nls -static 0 kB [ebuild N ] sys-apps/portage-2.0.51.22-r3 to /tmp/stage1root/ +build* (-selinux) 0 kB [ebuild N ] sys-apps/sandbox-1.2.12 to /tmp/stage1root/ 0 kB [ebuild N ] sys-apps/net-tools-1.60-r11 to /tmp/stage1root/ +build* -nls -static 0 kB [ebuild N ] sys-apps/less-385_p4-r2 to /tmp/stage1root/ -unicode 0 kB [ebuild N ] sys-apps/grep-2.5.1-r8 to /tmp/stage1root/ +build* -nls -pcre -static 0 kB [ebuild N ] sys-apps/gawk-3.1.4-r4 to /tmp/stage1root/ +build* -nls -xml 0 kB [ebuild N ] sys-apps/findutils-4.1.20-r1 to /tmp/stage1root/ -afs +build* -nls (-selinux) -static 0 kB [ebuild N ] sys-libs/glibc-2.3.5-r2 to /tmp/stage1root/ +build* -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls (-multilib) -nls -nptl -nptlonly -pic -profile (-selinux) -userlocales* 0 kB Total size of downloads: 6,869 kB Press any key within 15 seconds to pause the build... Press any key to continue... emerge --usepkg --buildpkg --newuse --noreplace app-arch/bzip2 app-arch/tar app-shells/bash dev-lang/python net-misc/rsync net-misc/wget >=sys-apps/baselayout-1.11.12-r4 sys-apps/coreutils sys-apps/debianutils sys-apps/diffutils sys-apps/file sys-apps/findutils sys-apps/gawk sys-apps/grep sys-apps/less sys-apps/net-tools >=sys-apps/portage-2.0.51.22 sys-apps/sed sys-apps/texinfo >=sys-devel/binutils-2.13.90.0.4 sys-devel/bison sys-devel/flex >=sys-devel/gcc-3.3.4-r1 sys-devel/gettext sys-devel/gnuconfig sys-devel/make sys-devel/patch dev-lang/perl virtual/editor virtual/gzip virtual/libc virtual/os-headers Calculating dependencies ...done! >>> emerge (1 of 26) sys-libs/glibc-2.3.5-r2 to /tmp/stage1root/ ...snip... >>> Source unpacked. * ABI: default * CBUILD: i386-pc-linux-gnu * CHOST: i386-pc-linux-gnu * CTARGET: i386-pc-linux-gnu * CBUILD_OPT: * CTARGET_OPT: * CC: * CFLAGS: -mcpu=i686 -O2 * Configuring GLIBC for linuxthreads with: --disable-nls --disable-dev-erandom --without-tls --without-__thread --enable-add-ons=linuxthreads,c_stubs,libidn --enable-kernel=2.4.1 --without-selinux --without-cvs --enable-bind-now --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --disable-profile --without-gd --with-headers=/tmp/stage1root//usr/include --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/misc/glibc ...snip... running configure fragment for sysdeps/unix/sysv/linux checking for egrep... (cached) grep -E checking installed Linux kernel header files... TOO OLD! configure: error: GNU libc requires kernel header files from Linux 2.0.10 or later to be installed before configuring. The kernel header files are found usually in /usr/include/asm and /usr/include/linux; make sure these directories use files from Linux 2.0.10 or later. This check uses <linux/version.h>, so make sure that file was built correctly when installing the kernel header files. To use kernel headers not from /usr/include/linux, use the configure option --with-headers. !!! ERROR: sys-libs/glibc-2.3.5-r2 failed. !!! Function glibc_do_configure, Line 927, Exitcode 1 !!! failed to configure glibc !!! If you need support, post the topmost build error, NOT this status message. !!! catalyst: run script failed. Traceback (most recent call last): File "modules/generic_stage_target.py", line 952, in run_local cmd("/bin/bash "+self.settings["controller_file"]+" run","run script failed.",env=self.env) File "/usr/lib/catalyst2/modules/catalyst_support.py", line 448, in cmd raise CatalystError,myexc CatalystError: <unprintable instance object> None !!! catalyst: Stage build aborting due to error. Catalyst aborting.... Expected Results: Completed successfully. Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org" MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" USE="x86 X aalib alsa apache2 apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr crypt cups curl dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint glut gmp gphoto2 gstreamer gtk gtk2 idn imagemagick imap imlib java jpeg kde lcms libg++ libwww lm_sensors mad mhash mikmod milter mmx mng motif mozilla mp3 mpeg mysql nas ncurses nptl nvidia ogg oggvorbis opengl oss pam pcre pda pdflib perl php png python qt quicktime readline recode samba sasl scanner sdl spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vhosts vorbis xine xinerama xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Try _rc9 which I just added to portage (might take a while to sync) and see if you still have issues.
I am still getting the same error.... Is there any more information I might provide to help troubleshoot?
Considering I cannot duplicate this, I would be willing to bet that it is your specs or something in your configuration. Why exactly did you build your own stage3 then build a stage1? That seems a bit backwards to me. Also, catalyst 2.0_rc9 resolves the issue of chost/cflags/cxxflags/ldflags being available in stage1 only by moving them to stage2 where they belong, so this very likely could be resolved completely. Without more information, like what customizations you have made to your snapshot, etc. there is no way that I can effectively troubleshoot this.
Created attachment 74717 [details] catalyst.conf
Created attachment 74718 [details] catalyst environment settings
Created attachment 74719 [details] stage1.spec
Created attachment 74720 [details] stage2.spec
Created attachment 74721 [details] stage3.spec
Created attachment 74723 [details] package.mask
Created attachment 74724 [details] package.use
My end goal is to have a generic x86 stage1 seed with the current stable versions from a portage snapshot dated 2005-12-05. I plan on using the resulting generic x86 stage1 to seed my other processor specific stage2/3's. Attached are the specs, catalyst.conf, and portage_confdir files (package.use, package.mask) that I am using. The spec files contain notes about any changes I made... I use the same conf file for each target.
OK. I'm really not going to take all the time to troubleshoot a completely local problem. For one, you've changed USE in your envscript, which is something that you cannot do and expect things to work. Ever. USE *must* match what is in the profile or things don't work right. My suggestion to you is this: create your own profile with the changes from your envscript build your stage1 from a stage3-x86-2005.1-r1 seed build your stage2 and stage3 from this stage1 Also, stage2/use and stage3/use are invalid. Only stage4 allows for customization like that. In fact, catalyst is designed to specifically not allow such customizations to work properly on the lower stages. You need to build a new profile with these changes or things won't work. Unfortunately your "bug" is really alocal configuration issue and beyond the scope of catalyst, so I am going to mark this as INVALID simply because catalyst is functioning how it is supposed to function.
(In reply to comment #12) > For one, you've changed USE in your envscript, which is something that you > cannot do and expect things to work. Ever. USE *must* match what is in the > profile or things don't work right. The USE flags in each spec do, in fact, match exactly what is in the env file. I assumed catalyst and/or bootstrap would throw away or ignore any settings which are not appropriate for each target...
Using stage3-pentium3-2005.1-r1.tar.bz2, catalyst 2.0_rc9, and the following spec/conf fails to build stage1 with the exact same error. No use flags, no envscript, no optimizations. It attempts to install glibc into stage1root before linux-headers are installed in stage1root, the glibc configure is looking for those headers in stage1root, so it bombs. stage1.spec: subarch: pentium3 target: stage1 version_stamp: 20051205 rel_type: seed rel_version: 20051205 profile: default-linux/x86/2005.1 snapshot: 20051205 source_subpath: seed/stage3-pentium3-2005.1-r1 catalyst.conf: distdir="/usr/portage/distfiles" options="autoresume snapcache" sharedir="/usr/lib/catalyst2" storedir="/storage01/catalyst2" portdir="/storage01/catalyst2/portage" snapshot_cache="/storage01/catalyst2/snapshot_cache"
You can't use subarch: pentium3 on a stage1
Even though your subarch is invalid, this still appears to be a valid bug. Trying to figure out what exactly has caused it.
I have managed to determine that it is not catalyst causing this error, as using an older (20051129) snapshot resolves the issue. This means it is something in the tree that has changed, causing the problem.
Someone else noted the issue in bug 114923...
Right... this should be a DUPE of that because it isn't catalyst causing the problem. *** This bug has been marked as a duplicate of 114923 ***