18h of kernel compilation for nothing

Just when it was about to finish, I got:
VOFFSET arch/x86/boot/voffset.h
LDS arch/x86/boot/compressed/vmlinux.lds
AS arch/x86/boot/compressed/head_32.o
CC arch/x86/boot/compressed/misc.o
CC arch/x86/boot/compressed/string.o
CC arch/x86/boot/compressed/cmdline.o
CC arch/x86/boot/compressed/early_serial_console.o
OBJCOPY arch/x86/boot/compressed/vmlinux.bin
HOSTCC arch/x86/boot/compressed/relocs
arch/x86/boot/compressed/relocs.c: In function \u2018print_absolute_symbols\u2019:
arch/x86/boot/compressed/relocs.c:405:14: warning: variable \u2018sh_symtab\u2019 set but not used [-Wunused-but-set-variable]
RELOCS arch/x86/boot/compressed/vmlinux.relocs
LZMA arch/x86/boot/compressed/vmlinux.bin.lzma
lzma: (stdin): Cannot allocate memory
make[2]: *** [arch/x86/boot/compressed/vmlinux.bin.lzma] Error 1
make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build linux-pf.
==> Restart building linux-pf ? [y/N]
==> ---------------------------------
==>

Lockheed wrote:No way. On my Core 2 Duo 2.1Ghz and 4GB RAM Arch kernel compiles in 40-60 minutes (can't say for sure).
Wtf, not possible. Really. On the weekend I'll be at the Pentium-M again, I'll go compile a kernel using the Arch config file. I can't imagine it taking more than half an hour.
Lockheed wrote:No. It's mine. It's awesome and you can't have it Seriously, I have an old lightweight LXbuntu 9.04 on it and it works like a charm.
Whoa!
Though, of course it works like a charm, with 384MB you have plenty of ram. Should be enough even for a kernel compile. Just don't compile in a tmpfs. And, like tomegun says, maybe switch from lzma to gzip compression. And a machine-specific config would also cut down on the compile time a lot.
Lockheed wrote:I have a Pentium 133, too, unfortunately the mobo must be cracked somewhere as it rarely starts. What a pity.
My condolences
We had the habit of always giving away the old computer when we bought a new one. Sometimes I regret it. One of the masterpieces was a Pentium MMX 166Mhz with, get this, 3dfx Voodoo graphics. Yeah, the legendary accelerator. Oh how I wish I still had that. The oldest machine that's still at home is an AMD Duron 800Mhz, with I think a Geforce FX 5200.
Edit: Holy eff, I compiled a kernel with an Arch config on a Core i3-530. It took 24 minutes!! My fairly generic kernel takes 4:30 minutes, a machine-specific one takes 2:30 minutes. Man, the Arch kernel really does have everything including the kitchen sink in it. So I can now see it taking 60 minutes on a Core2Duo.
Compiling all that stuff on a slow machine makes no sense, so Lockheed I really suggest you make a machine-specific config. You'll get the kernel compiled in like 1/10 of the time.
Last edited by Gusar (2012-02-28 14:42:31)

Similar Messages

  • Tiger kernel compiled for allow any to any ipfw firewall rules?

    Hi everyone,
    I was wondering about the kernel state for firewall connections in ipfw. If you run an ipfw list, you will see the last command as an allow any to any. This appears to be a default open state firewall configuration.
    The man pages for ipfw state the following:
    "An ipfw ruleset always includes a default rule (numbered 65535) which cannot be modified or deleted, and matches all packets. The action associated with the default rule can be either deny or allow depending on how the kernel is configured."
    Is there a way to implement a default closed firewall with ipfw in the kernel in Tiger? Default allow any to any appears to be a bit of a security hole.
    Thanks for your input, I greatly appreciate it!
    -Allen

    Ok, perhaps this is silly, for me to reply to my own thread, but I think the following will work:
    in the firewall.conf, add a deny any to any before the default allow any to any... something like:
    add 5400 deny log all from any to any in via en0
    kudos goes to a user on macosxhints for suggesting this. Since ipfw rules will be run in order, this line will run before the default allow, and should trap all ip traffic not explicitly allowed in the firewall list already.
    Hope this helps someone!
    -Allen

  • Create a cross compiler for arm

    I am struggling with building a cross toolchain, essentially it boils down to building these packages (in thegiven order):
    binutils gcc-base newlib gcc
    When done I am trying to compile a dummy cpp algorithm (euler gcd/ggT search) with no includes.
    What the cross toolchain spits at me is the following:
    $ arm-unknown-eabi-gcc -march=armv5te ./euklidisch_ggt.c -o ./euklidisch_ggt.bin.armv5te
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/lib/gcc/arm-unknown-eabi/4.5.2/../../../../arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: cannot find -lc
    collect2: ld returned 1 exit status
    I wrote a little script to build it (as I got pretty much fed up doing it all by hund, round #7 just failed again)
    Note: it is semi-automated, you will still be requested to give your passwd to agree with install and blah
    Note: use it with arg "cleanup" to get rid of old installed packages (run as root)
    Note: use it to compile as user
    #!/bin/bash
    BUILDERUSER=buildmonkey
    PREFIX="/usr"
    TARGET="arm-unknown-eabi"
    PKGBUILDDIR="/home/${BUILDERUSER}/PKGBUILD"
    PKGS="binutils gcc-base newlib gcc"
    export PREFIX
    export TARGET
    export BUILDERUSER
    export PKGS
    export PKGBUILDDIR
    function cleanup
    for j in ${PKGS}
    do
    export j
    echo "Removing package ${TARGET}-${j}"
    su -c'pacman -R ${TARGET}-${j}'
    done
    function compile_and_install
    cd ${PKGBUILDDIR}
    echo ""
    echo ""
    echo "Compileing ${TARGET}-${1} ... "
    echo ""
    echo ""
    cd ./${TARGET}-${1}
    rm ./${TARGET}-${1}*
    makepkg -f || return 1
    su -c 'pacman -U ./${TARGET}-${1}*'
    echo ""
    if [ "${1}" == "cleanup" ]; then
    echo "cleanup requested...."
    cleanup
    exit 0
    fi
    if [ "$(id -u)" == "0" ]; then
    echo "This script must not be run as root!!" 1>&2
    exit 1
    fi
    echo ""
    if [ -d "${PKGBUILDDIR}" ]; then
    echo "PKGBUILD directory is ${PKGBUILDDIR}"
    else
    echo "PKGBUILD directory ${PKGBUILDDIR} is missing!!"
    exit 1
    fi
    echo "PKGs are ${PKGS}"
    echo ""
    for i in ${PKGS}
    do
    compile_and_install ${i}
    done
    exit 0
    The packagebuilds are as following (hacked away versions of the ones existing in AUR, which give me linker errors)
    binutils
    pkgname=arm-unknown-eabi-binutils
    pkgver=2.21
    pkgrel=1
    pkgdesc="A set of programs to assemble and manipulate binary and object files"
    arch=(i686 x86_64)
    license=(GPL)
    options=(!libtool)
    url="http://sources.redhat.com/binutils"
    depends=('glibc' 'zlib')
    source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
    md5sums=('c84c5acc9d266f1a7044b51c85a823f5')
    build() {
    cd $srcdir/binutils-${pkgver}
    [ $NOEXTRACT -eq 1 ] || ./configure\
    --prefix=${PREFIX} \
    --program-prefix=${TARGET}- \
    --enable-shared \
    --disable-multilib \
    --with-lib-path=${PREFIX}/lib/binutils/{TARGET} \
    --disable-nls \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST}
    # mkdir -p $pkgdir/${PREFIX}/lib/binutils
    sed -i 's|know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));|{know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));}|' gas/config/tc-arm.c || return 1
    make configure-host
    make tooldir=$pkgdir/${PREFIX}
    make prefix=$pkgdir/${PREFIX} tooldir=$pkgdir/${PREFIX} install
    mkdir -p $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    cp -v include/libiberty.h $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    rm -f $pkgdir/${PREFIX}/man/man1/{dlltool,nlmconv,windres}*
    rm -f $pkgdir/usr/bin/ar
    rm -f $pkgdir/usr/bin/as
    rm -f $pkgdir/usr/bin/ld
    rm -f $pkgdir/usr/bin/nm
    rm -f $pkgdir/usr/bin/objdump
    rm -f $pkgdir/usr/bin/ranlib
    rm -f $pkgdir/usr/bin/strip
    rm -f $pkgdir/usr/bin/objcopy
    rm -f $pkgdir/usr/lib/libiberty.a
    rm -rf $pkgdir/usr/share
    rm -rf $pkgdir/usr/lib/ldscripts
    gcc-base
    pkgname=arm-unknown-eabi-gcc-base
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    depends=('arm-unknown-eabi-binutils' 'libmpc' 'libelf' 'cloog-ppl')
    options=(!libtool !emptydirs zipman docs !strip)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2)
    md5sums=('aa9e36bec080452372bfba793428ee82')
    build() {
    cd $srcdir/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    [ $NOEXTRACT -eq 1 ] || rm -rf build
    mkdir build
    cd build
    [ $NOEXTRACT -eq 1 ] || ../configure --prefix=${PREFIX} \
    --target=${TARGET} \
    --host=$CHOST \
    --build=$CHOST \
    --enable-shared \
    --disable-nls \
    --enable-languages=c \
    --enable-multilib \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --enable-softfloat \
    --with-float=soft \
    --with-newlib
    make all-gcc all-target-libgcc
    make DESTDIR=$pkgdir install-gcc install-target-libgcc
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/
    rm -rf $pkgdir/usr/libexec
    # strip it manually
    strip $pkgdir/usr/bin/* 2>/dev/null || true
    find $pkgdir/usr/lib -type f -exec arm-none-eabi-strip {} \; 2>/dev/null || true
    newlib
    pkgname=arm-unknown-eabi-newlib
    pkgver=1.19.0
    pkgrel=1
    pkgdesc="Newlib is a C library intended for use on embedded systems."
    arch=('i686' 'x86_64')
    groups=('devel')
    url="http://sourceware.org/newlib/"
    license=('GPL')
    depends=('arm-unknown-eabi-binutils' 'arm-unknown-eabi-gcc-base')
    source=(ftp://sources.redhat.com/pub/newlib/newlib-${pkgver}.tar.gz)
    md5sums=('0966e19f03217db9e9076894b47e6601')
    build() {
    cd ${srcdir}
    rm -rf build
    mkdir build
    cd build
    export CFLAGS="-O2"
    ../newlib-${pkgver}/configure \
    --target=${TARGET} \
    --prefix=${PREFIX} \
    --enable-interwork \
    --enable-multilib \
    --with-gnu-as \
    --with-gnu-ld \
    --with-float=soft \
    --disable-nls || return 1
    make || return 1
    make -j1 DESTDIR=${pkgdir} install || return 1
    rm -rf ${pkgdir}/usr/share/info
    return 0
    gcc:
    pkgname=arm-unknown-eabi-gcc
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection - Cross compiler for ARM target"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    #an installed libc/newlib is needed for libstdc++ compile
    depends=('arm-unknown-eabi-binutils>=2.18' 'cloog-ppl>=0.15.3' 'arm-unknown-eabi-newlib>=1.18.0')
    # cross-arm-none-eabi-gcc is an superset of cross-arm-none-eabi-gcc-base
    conflicts=('arm-unknown-eabi-gcc-base')
    provides=("arm-unknown-eabi-gcc-base=${pkgver}")
    options=(!libtool !emptydirs !strip zipman docs)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2)
    md5sums=('d6559145853fbaaa0fd7556ed93bce9a')
    build() {
    cd ${srcdir}/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    rm -rf build
    mkdir build
    cd build
    ../configure \
    --prefix=${PREFIX} \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST} \
    --disable-nls \
    --enable-multilib \
    --enable-languages=c,c++ \
    --enable-__cxa_atexit \
    --enable-interwork \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --with-newlib \
    --with-float=soft
    make all-gcc all-target-libgcc all-target-libstdc++-v3 || return 1
    make DESTDIR=${pkgdir} install-gcc install-target-libgcc install-target-libstdc++-v3 || return 1
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    rm -rf $pkgdir/usr/share/gcc-4.5.2
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/ && \
    rm -rf $pkgdir/usr/libexec
    I already read linux from scratch howto for building cross compilers, though partly it contradicts with AUR comments especially in regard to --with-sysroot and --with-build-sysroot
    If someone can please shed some light on this, the gcc doc is not very helpfull
    Note: I know that a bare metal arm elf cross compiler exisis in the archlinux repository but that is not sufficient as I need different targets with some special options (where can I get the PKGBUILD from packages within the ABS?)

    Current targets are armv7vfpv3 and armv5te softfloat, this compiler(s) (afaik softfloat and hardfloat can not be put into one compiler, correct me if I am wrong) will be used as basis for kernel compileing for these architectures plus the basic packages (afaik called bootstrapping).
    And I knew it was not really newby stuff, but .. well .. after searching like 5 mins for an appropriate subforum I gave up and posted it just here, sorry
    The point is this is the basis for a lot of core packages and I just want to do it right (and atm it ain't working at all )
    Last edited by drahnr (2011-04-05 22:36:11)

  • In depth Kernel Compilation

    Hello,
    I just wanted to give a little shameless self promotion on a new article that I just wrote up:
    http://fsk141.com/habari/kernel-compilation-arch-linux
    And the digg link:
    http://digg.com/linux_unix/Kernel_Compi … Arch_Linux
    Let me know what you think. Add comments if I'm missing anything that you would like to see. Also if you would like articles on anything in particular, send me an email at [email protected] and I would be happy to think about it

    ...[the kernel] can be split into two main types. The first being a monolithic kernel, and the second being a modular kernel. At one time the linux kernel was a monolith, and consisted of one large file. Today's implimentation of the kernel is modular..
    This is not technically accurate. It should read something more like, " The Linux kernel is monolithic in nature, but can make use of modularity, (if compiled to do so) or can be compiled as static. A kernel compiled for modularity  has the ability to load drivers (modules) on the fly, whereas a static kernel constantly maintains all drivers in memory. A static kernel may generally be advantageous for some who need a less versatile, lighter kernel compiled for a specific machine. A modular kernel is typically more versatile and able to be used on a wider range of hardware."
    EDIT: Moving this..
    Last edited by Misfit138 (2009-03-31 17:29:14)

  • Kcheck for kernel compilation?

    Just found this tool on sourceforcge, http://kcheck.sourceforge.net/ . Did anybody try this tool for a kernel compilation?

    definitely keep the stock kernel as a fallback.
    and here's another tip, with a story. I spent several hours yesterday compiling a kernel for my webserver, to squeeze a little more juice out of it. I can't found how many times i kept recompiling because i kept getting kernel panics. luckily i still had the stock kernel as a fallback. but what i messed up, and must have known somehow i messed up the whole time, because it eventually just dawned on me out of nowhere, was my messed up my grub menu.lst. what i did, was copy and paste the default arch kernel lines and just modified them for the new kernel, but what i forgot to do was add the -custom on the vmlinuz26 line, so i was still using the stock kernel, but with initrd disabled, thats why i was getting the kernel panics, god knows how much compile time i could have saved had i noticed that sooner.....but my ADD must have kicked into overdrive or something, i guess it comes with the territory
    bottom line is, pay attention,

  • Kernel config for Transcend IDE Flash Module

    I'm trying to build a minimal custom kernel for my set-top-box (very limited ressources), which I use as home server.
    From a recent Arch Live (USB-stick) the Transcend Flash SSD (4GB, 40pin IDE) gets detected as /dev/sda (by the "sd"-driver, I think). The Problem now is that I can't find the kernel settings and always get a kernel panic because it can't find the root device.
    Here's the data I have:
    lspci (Intel ICH chipset):
    00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 04)
    00:02.0 VGA compatible controller: Intel Corporation 82830 CGC [Chipset Graphics Controller] (rev 04)
    00:02.1 Display controller: Intel Corporation 82830 CGC [Chipset Graphics Controller]
    00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
    00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
    00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
    01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    dmesg output from the live stick:
    Linux version 2.6.30-ARCH (root@T-POWA-LX) (gcc version 4.4.1 (GCC) ) #1 SMP PREEMPT Fri Jul 31 18:10:38 UTC 2009
    SCSI subsystem initialized
    libata version 3.00 loaded.
    ata_piix 0000:00:1f.1: version 2.13
    ata_piix 0000:00:1f.1: enabling device (0005 -> 0007)
    ata_piix 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 9 (level, low) -> IRQ 9
    ata_piix 0000:00:1f.1: setting latency timer to 64
    scsi0 : ata_piix
    scsi1 : ata_piix
    ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
    ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
    ata1.00: CFA: TRANSCEND, 20071207, max UDMA/66
    ata1.00: 7831152 sectors, multi 0: LBA
    ata1.00: limited to UDMA/33 due to 40-wire cable
    ata1.00: configured for UDMA/33
    scsi 0:0:0:0: Direct-Access ATA TRANSCEND 2007 PQ: 0 ANSI: 5
    ata2: port disabled. ignoring.
    Driver 'sd' needs updating - please use bus_type methods
    sd 0:0:0:0: [sda] 7831152 512-byte hardware sectors: (4.00 GB/3.73 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    sda: sda1 sda2 sda3
    sd 0:0:0:0: [sda] Attached SCSI disk
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 2:0:0:0: Attached scsi generic sg1 type 0
    ls -lh /dev/disk/by-id (the "USB_2.0_Memory_Adapter" is the live stick):
    ata-TRANSCEND_20091118_500059E8 -> /dev/sda
    ata-TRANSCEND_20091118_500059E8-part1 -> /dev/sda1
    ata-TRANSCEND_20091118_500059E8-part2 -> /dev/sda2
    ata-TRANSCEND_20091118_500059E8-part3 -> /dev/sda3
    scsi-SATA_TRANSCEND_20091118_500059E8 -> /dev/sda
    scsi-SATA_TRANSCEND_20091118_500059E8-part1 -> /dev/sda1
    scsi-SATA_TRANSCEND_20091118_500059E8-part2 -> /dev/sda2
    scsi-SATA_TRANSCEND_20091118_500059E8-part3 -> /dev/sda3
    usb-USB_2.0_Memory_Adapter_AAAAA10062345-0:0 -> /dev/sdb
    usb-USB_2.0_Memory_Adapter_AAAAA10062345-0:0-part1 -> /dev/sdb1
    The kernel configuration I tried can be found here (from another box running Gentoo).
    Any suggestions how I could find the right driver?
    Thanks in advance,
    lynix

    Although I have compiled a custom kernel w/o any kind of automatic support, and it worked, I REALLY don' think that it is worth the effort.  In the wiki it recommends: zcat /proc/config.gz > .config  (from within the kernel directory), and I strongly recommend it as well.  All it does is copy some information from your existing kernel into your .config, which vastly improves your odds of having a working kernel right off the bat.  I would compile that, verify that it works, and from that point start taking out modules that you are confident have nothing to do with your system.  (don't forget to select your processor type, and deselect smp if you don't have smp)
    I know that it is dissappointing and you'd like to perfect your kernel in one go, but I really think that in the long run, this is your best option.  I don't think that you are going to find anyone who is willing to take the time to tell you what options you personally need to compile in or as modules for you, however, there will be plenty of people who are willing to help. 
    I know that there are even smarter solutions, including scripts that can supposedly configure a kernel based on the modules and options that are already loaded, but I think results are mixed.  Although, they might make a great starting point.  I think (but could be wrong) that gentoo's 'genkernel' worked like that.  Though I've used it years ago, I don't think that I fully understood how it worked at the time.
    If you are dead set on minimizing all of the options that you compile for your kernel manually, your tools are lspci, lsmod, cat /proc* etc.  You can save the output, figure out what options correspond with that output, and hope for the best!
    Good luck
    Last edited by Convergence (2009-03-13 11:51:01)

  • Oracle SQL Developer Release 1.5.5 "compile for debug"

    Using Oracle SQL Developer Release 1.5.5 on Windows XP pro machine connecting to 9.2.0.4 database on AIX machine.
    Trying to debug a procedure, in the navigator window, I rt-clk the procedure and select "Compile for Debug", then nothing happens. This happens for every procedure I've tried. I've been granted both DEBUG ANY PROCEDURE and DEBUG CONNECT SESSION. Any ideas?

    This is the first I've used SQL Developer, so I'll take the blame. I had not noticed that the Messages Log does in fact tell me that the proc compiled. However, the debug icon (little red bug) was nowhere to be found.
    I see now that I need to Edit, not Open, the proc in order to debug. If I had read the Help screens a little more closely, I would have seen that I needed to be in Edit mode. My bad. Thanx to all for your responses.

  • Kernel compile problem

    in arch 0.7, when i compile redhat hat kernel 2.4.21-27.0.1.EL, gcc 3.4.3 complains:
    gcc -D__KERNEL__ -I/data/linux-2.4.21-27.0.1.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common  -Wno-unused -funroll-loops -fomit-frame-pointer -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=pentium4   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
    In file included from /data/linux-2.4.21-27.0.1.EL/include/linux/sched.h:24,
                    from /data/linux-2.4.21-27.0.1.EL/include/linux/mm.h:22,
                    from /data/linux-2.4.21-27.0.1.EL/include/linux/slab.h:14,
                    from /data/linux-2.4.21-27.0.1.EL/include/linux/proc_fs.h:5,
                    from init/main.c:15:
    /data/linux-2.4.21-27.0.1.EL/include/linux/smp.h:31: error: conflicting types for 'smp_send_reschedule'
    /data/linux-2.4.21-27.0.1.EL/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
    /data/linux-2.4.21-27.0.1.EL/include/linux/smp.h:31: error: conflicting types for 'smp_send_reschedule'
    /data/linux-2.4.21-27.0.1.EL/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
    In file included from /data/linux-2.4.21-27.0.1.EL/include/linux/unistd.h:9,
                    from init/main.c:17:
    /data/linux-2.4.21-27.0.1.EL/include/asm/unistd.h:382: warning: conflicting types for built-in function '_exit'
    make: *** [init/main.o] Error 1
    gcc info:
    Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
    Configured with: ../gcc-3.4.3/configure --prefix=/usr --enable-shared --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit
    Thread model: posix
    gcc version 3.4.3
    but when i compile the kernel src in redhat as 3 with the same kernel config , compiling options and kernel compiling procedure, everything is ok. the gcc info:
    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
    what's the problem ? it's something between gcc 3.4 and kernel 2.4.21 (or redhat ?) ? how to resolve this problem ?

    jnengland77 wrote:
    hmmm if you need the patch Con Kolivas has a patch... idk if this is the exact need.
    1g lowmem?
    Many machines now have exactly 1Gb ram and the standard memory split on i386 does not allow you to use more than 896Mb ram without enabling high memory for at least 4Gb. The problem is that this incurs an overhead whereas we can simply change this split with this patch to allow i386 architectures to use up to 1Gb ram without enabling highmem. This is configurable if HIGHMEM is disabled.
    I also don't know if his old patches have the patch or if the current will work on the 2.4 kernel..
    Just looked around and found the 2.4 are now Ick patchset and i don't see that... CK does have a server patch... If anything just get the 2.6 CK server patchset...   2.6 is stable, but how am I to say I've only used 2.6... Go with 2.6 ck server.
    websites:  CK patchset 2.6
    ICK 2.4 patchset
    i really want a huge kernel space, and i can't find the 4G kernel space vm patch for 2.4 at these links
    thanks anyway

  • Adt compile for ipa-app-store never completes

    I'm trying to compile my project for the app store. It compiles without issue in about five minutes when compiled for ipa-test or ipa-debug. I'm compiling it for ipa-app-store right now but the process has been running for over two hours. I can see the java process running and the memory fluctuating, which tells me it's not frozen, but the temp files that are created aren't changing at all, which makes it seem like nothing is happening. Does anyone have any ideas what could be wrong? I'm using the latest version of the Flex framework with the latest AIR sdk on a machine running Windows 7.

    I did eventually figure it out. At the time I didn't know how to embed an XML file, so I was taking the file and converting it to a reallly long string. It was in the format of:
    xmlString += "<xmlTag>stuff</xmlTag>";
    xmlString += "<otherTag>stuff</otherTag>";
    There were three files, the shortest of which was over 1000 lines long. For some reason the compiler just choked on that. If I had even one of them in there it wouldn't compile for the app store. The moment I removed them, everything could compile just fine. That was when I figured out how to just embed the XML files and everything has worked since. Interestingly, my compile times for test and debug mode dropped by half once I did that; so it was clearly causing some issues for the compiler in general.
    If you don't have a file like the one I just described, I would recommend commenting out almost everything in your main file and compiling it. If you have an empty project, everything should compile correctly. Start adding things back in one at a time until you get the problem. That was how I ended up nailing down what was happening for us.

  • Issue after kernel compilation

    I've compiled my own kernel based on the arch linux default kernel its configuration file. I simply executed  make clean &&  make dep && make modules && make bzImage && make modules_install. Afther the depmod I've built a ramdisk with mkinitcpio.Unfortunately I'm not able to boot into my new self-compiled kernel. Here you can see my /boot/grub/menu.lst:
    # (0) Arch Linux Self-compiled kernel
    title Linux 2.6.30.5 [/boot/vmlinuz-2.6.30.5]
    root (hd0,0)
    kernel /vmlinuz-2.6.30.5 root=/dev/sda3 ro
    initrd /kerneltest.img
    # (0) Arch Linux
    title Arch Linux [/boot/vmlinuz26]
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26.img
    While booting into the new kernel the next error message about the root device shows up. I've noticed I'm able to boot the default arch kernel that's using the same root device (=/dev/sda3) on this desktop.
    Waiting 10 seconds for device /dev/sda3
    Root device /dev/sda3 doesnt exist, attempting to create it
    Error: Failed to parse block device ids for /dev/sda3
    Error: Unable to detect or create root devide /dev/sda3
    If you would like to see my partitions:
    /dev/sda1 /boot ext2 defaults 0 1
    /dev/sda2 swap swap defaults 0 0
    /dev/sda3 / ext4 defaults 0 1
    /dev/sda4 /home ext4 defaults 0 1
    Who can help me with this issue? Thanks.
    Last edited by Nando (2009-09-05 15:40:04)

    I've compiled a new kernel but the same issue remains. I executed some important changes in my kernel config: CONFIG_SCSI=y, CONFIG_ATA=y, CONFIG_EXT4_FS=y  (instead of being modular as in the default arch linux kernel). I also inserted the "aufs" lines, but they were gone in my .config file after the kernel compilation.(I think it was after make dep)
    A "diff" of both .config reveals that aufs is almost the only difference. (I've already mentioned the stuff that used to be modular and is now built-in.)
    3 root@archlinux $ diff /usr/src/linux-2.6.30.5/.config /usr/src/linux-2.6.30-ARCH/.config
    3,4c3,4
    < # Linux kernel version: 2.6.30.5
    < # Mon Sep 7 10:35:44 2009
    > # Linux kernel version: 2.6.30
    > # Mon Aug 17 16:49:59 2009
    1269c1269
    < CONFIG_SCSI=y
    > CONFIG_SCSI=m
    1418c1418
    < CONFIG_ATA=y
    > CONFIG_ATA=m
    3905c3905
    < CONFIG_EXT4_FS=y
    > CONFIG_EXT4_FS=m
    3912c3912
    < CONFIG_JBD2=y
    > CONFIG_JBD2=m
    3914c3914
    < CONFIG_FS_MBCACHE=y
    > CONFIG_FS_MBCACHE=m
    4041a4042,4052
    > CONFIG_AUFS_FS=m
    > CONFIG_AUFS_BRANCH_MAX_127=y
    > # CONFIG_AUFS_BRANCH_MAX_511 is not set
    > # CONFIG_AUFS_BRANCH_MAX_1023 is not set
    > # CONFIG_AUFS_BRANCH_MAX_32767 is not set
    > CONFIG_AUFS_HINOTIFY=y
    > CONFIG_AUFS_EXPORT=y
    > CONFIG_AUFS_SHWH=y
    > CONFIG_AUFS_BR_RAMFS=y
    > # CONFIG_AUFS_DEBUG is not set
    > CONFIG_AUFS_BDEV_LOOP=y
    4427c4438
    < CONFIG_CRC16=y
    > CONFIG_CRC16=m
    I've built an own ramdisk again with mkinitcpio, but I'm using the default kernel26.img
    /boot/grub/menu.lst:
    # (0) Arch Linux
    title Arch Linux [/boot/vmlinuz26]
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26.img
    # (0) Arch Linux
    title Arch Linux [/boot/vmlinuz2-6-30.5]
    root (hd0,0)
    kernel /vmlinuz-2.6.30.5-nando root=/dev/sda3 ro
    initrd /kernel26.img
    Last edited by Nando (2009-09-07 17:38:21)

  • Need Help with Oracleasm - a kernel module for the ASM library

    I am a beginner, trying to install Oracle RAC. I have a system with SuSE Linx 11 (64 bit) loaded. I need to get the correct ASMLib packages needed for installing ASM. I think I got the following packages that are needed for installing ASM
    1) oracleasmlib- the ASM libraries (oracleasmlib-2.0.4-1.SLE11.x86_64.rpm)
    2) oracleasm-support- utilities needed to administer ASMLib (oracleasm-support-2.1.3-1.SLE11.x86_64.rpm)
    I am unable to find the third package.
    3) Oracleasm - a kernel module for the ASM library
    I looked at my kernel version it says "2.6.27.19-5-default". I am not sure where I can get the above third package. If you have an answer/know ase share your thoughts.
    Thank You

    Hi!
    Don't use ASMLib, it will be no longer available, it will only came in Oracle Unbreakable Kernel for Linux 6.
    The easly way to set the permissions on your devices is with a /etc/init.d script that do the job.
    Here is an example:
    #! /bin/bash
    # chkconfig: 2345 25 19
    # description: Set ASM Permissions on to devices at boot.
    case "$1" in
    start)
    /bin/chown oracle:oinstall /dev/sdb1
    /bin/chmod 0660 /dev/sdb1
    stop)
    #do nothing
    status)
    ls -l /dev/sdb1
    echo "Usage: $0 {start|stop|status}"
    exit 1
    esac
    exit o
    You need to replace the /dev/sdb1 for your acctual partitions.
    Please check the Docs to be sure that you meet all pre-reqs.
    http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm
    http://docs.oracle.com/cd/E11882_01/install.112/e22489/toc.htm
    http://docs.oracle.com/cd/E11882_01/install.112/e24321/toc.htm
    Hope it's helps.
    Best Regards,
    Julio

  • Changing kernel options for Xorg.

    Hi, all!
    My video card (ATI Radeon) and monitor (Sun GDM-5410) combination cause problems with some kernels, ie, I get 'out of range' problems on my monitor. The default kernel on the Arch build is one of the distros that struggles with this.
    I did an install of Gentoo the other day and using the Gentoo installation guid [0], ensured that everything was correctly 'switched-on' in the kernel and X was fine. I want to get Arch installed with X running properly, and was wondering what the best way is to ensure the kernel options are 'switched-on' and the kernel compiled properly. I don't need anything special like proprietary drivers, so I should just be able to take the stock Arch kernel and make my changes. Does Arch do this in a special 'Arch' way, or is there anything else I need to know?
    I did Google this, but the article was talking about grabbing another kernel and compiling stuff in. I don't need another kernel :-)
    [0] Specifically Para 2 http://www.gentoo.org/doc/en/xorg-config.xml
    Any help appreciated.
    Cheers,
    Chris.
    Last edited by chris_debian (2011-01-25 16:49:25)

    karol wrote:The wiki has article(s) about compiling a kernel.
    https://wiki.archlinux.org/index.php/Kernel_Compilation
    https://wiki.archlinux.org/index.php/Ke … rom_Source
    Thank you. I guess the question is, if I compile an option into the kernel for my graphics card, will I have to do this every time the kernel is upgraded?
    I'll look at the links you provided and hopefully things will be a bit clearer.
    Ten years ago, I'd re-compile kernels without thinking about it. I guess that because the kernel now has such good hardware support, i'm a little out of practice. :-)
    Thanks,
    Chris.
    Last edited by chris_debian (2011-01-28 07:04:09)

  • Custom kernel compilation with abs..

    Been trying out custom kernel compilation with abs, since i only know the regular make menuconfig style, thought that this would be a good thing to learn.
    here is my kernel pkgbuild (showing only the part that i changed):
    # Contributor: dibblethewrecker <dibblethewrecker>
    pkgname=kernel26
    pkgver=2.6.17.13
    pkgrel=1
    pkgdesc="The Linux Kernel 2.6.x.y and modules (IDE support), built with ... patchset"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    install=kernel26.install
    ##### if you are using a single patch from a patchset you can add the name, without it's extention, below
    patch=2.6.18-rc6-mm2
    ##### add the names of any patches to this section, ensure you have the correct extentions!
    source=($patch.bz2 config ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 )
    I want to install the 2.6.18-rc6-mm2, so i downloaded that patch and put it in the same folder as PKGBUILD.
    I copied kernel26.install and put it in the same folder as the PKGBUILD.
    when running makepkg it asks for a config file.. So i copied the config file in /var/abs/kernels/kernel26/. But this will build with an old config file.. how can i as when doing the manual way, do a make menuconfig and enter the settings i want for this kernel??
    thanks

    I'd say it does too, and I think the problem is here:
    jinn wrote:I copied kernel26.install and put it in the same folder as the PKGBUILD.
    Did you just copy the install script, or did you edit it to create an image with a unique name? The script is hardcoded to create an image called kernel26.img i.e. the image name required by the stock kernel, so if you ran it as it is, you have overwritten the images for your stock kernel with images for your new kernel.
    You might still be able to boot your new kernel with kernel26-fallback.img, but if not you will have to boot your stock kernel using the initrd image, which will have been unaffected.
    Once your system is running again, you need to regenerate the kernel26 images using mkinitcpio, and then you can start debugging the problem with your new kernel.
    Of course, if you've already edited kernel26.install for your new kernel, ignore the above, and I'll start again.

  • Kernel Compile how not to do it !!!! [FXx]

    EDIT I would like to say kernel compile problem was my fault.... I should have moved it then compiled 2.6.5-3 (gcc3.4) I will in future use /usr/src (improve my CLI skills)
    I am sorry for posting but this old boy gets in muddle sometimes & I like to think out loud.
    After several mugs of tea & reading posts I now have kernel 2.6.5-3 Xfee4.4 & nvidia working again (well for a couple of hours till 2.6.6 !!!)
    pacman -Af
    Many thanks again for all your help
    Mr Green :oops:

    If I use pacman -U I get a load of errors :
    usr/src/linux-2.6.5/sound/isa/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/oss/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/oss/dmasound/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/parisc/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/pci/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/pcmcia/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/ppc/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/sparc/Kconfig: exists in filesystem
    /usr/src/linux-2.6.5/sound/usb/Kconfig: exists in filesystem
    Mr Green  :?

  • Ccache and kernel compilation -SOLVED

    I have installed ccache and am compiling the kernel from the commandline, but can't get ccache working. Compiling takes a while, and ccache -s says there are no cached files. Read the wiki and man ccache, am a bit confused, and thought I had done what they suggested, but obviously not.
    Can anyone help me set this up? Preferably I would like  all compiling to be done using ccache, not just using makepkg. I think I have to softlink ccache and gcc, not sure how to do this.
    Happily, my custom compiled kernel boots fine, sound is the only thing not working.
    Last edited by scooby (2009-11-26 00:05:29)

    I have discovered one of the cardinal rules for using Arch...if something doesn't work, check for typos.
    ccache is working now,  makes kernel compiling so much easier.
    I'm having a read finding out the pros/cons of using PKGBUILD for a custom kernel. Not too fussed, everything works and it boots ridiculously quickly.
    Last edited by scooby (2009-11-25 23:06:24)

Maybe you are looking for

  • DefaultServlet?

    I've figured out how to manipulate the welcome-file-list tag in web.xml for tomcat to bring up the desired web page if someone hits my site without specifying a page (e.g. www.mysite.com will take them to www.mysite.com/index.html). But, my index pag

  • Process as Interface ?

    Hi All, Can somebody tell me how to implement Process as Interface. I have a process called 'A' and in that process I have a process creation activity. I have another Process (Interface) called 'B' and also mapped that process B to Process A's proces

  • Not starting up, infinite loop?

    yesterday, mid working, all applications automatically quit. a black box appeared saying i need to restart. as i restart the iMac, i can hear the restart sound. but it stays with the infinite loop without turning over; i.e. it won't turn over to the

  • Custom HTTP error page

    How do I create custom HTTP error pages for WebLogic Server 6.1           

  • Where can I download the File 102_EWT_config_EN_IN.xls

    Hi, In the documentation DVD it has been asked to refer the file 102_EWT_config_EN_IN.xls. But I'm not able to find that file. Can it be downloaded from somewhere? Thanks in advance... Regards, Sriram