Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#7711 closed defect (fixed)

Building image with symbols for kernel lets make go in interactive mode

Reported by: mohnkhan Owned by: nico
Priority: normal Milestone: Backfire 10.03.1
Component: kernel Version: Backfire 10.03
Keywords: backfire x86 kernel make Cc:

Description

Well its kinda pain when you are using 3 machines and testing various types of builds on OpenWRT.

how to reproduce this

select x86 and try to compile with debug symbols enabled or with debugging info enabled for kernel.

The make system goes into interactive mode 2 times.
I am using latest SVN backfire OpenWrt Backfire (r22498)

make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/opkg'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/opkg_513-2_x86.ipk
Unpacking opkg...Done.
Configuring opkg...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/opkg'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/ppp'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/ppp_2.4.4-9_x86.ipk
Unpacking ppp...Done.
Configuring ppp...Done.
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/ppp-mod-pppoe_2.4.4-9_x86.ipk
Unpacking ppp-mod-pppoe...Done.
Configuring ppp-mod-pppoe...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/ppp'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/sipcalc'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/sipcalc_1.1.5-1_x86.ipk
Unpacking sipcalc...Done.
Configuring sipcalc...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/sipcalc'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/uci'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/uci_12012009.5-2_x86.ipk
Unpacking uci...Done.
Configuring uci...Done.
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/libuci_12012009.5-2_x86.ipk
Unpacking libuci...Done.
Configuring libuci...Done.
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/libuci-lua_12012009.5-2_x86.ipk
Unpacking libuci-lua...Done.
Configuring libuci-lua...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/uci'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/udevtrigger'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/udevtrigger_106-1_x86.ipk
Unpacking udevtrigger...Done.
Configuring udevtrigger...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/udevtrigger'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/uhttpd'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/uhttpd_11_x86.ipk
Unpacking uhttpd...Done.
Configuring uhttpd...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/uhttpd'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/package/wireless-tools'
IPKG_TMP=/home/mohnkhan/backfire/backfire/tmp/ipkg IPKG_INSTROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 IPKG_CONF_DIR=/home/mohnkhan/backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/etc IPKG_OFFLINE_ROOT=/home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86 /home/mohnkhan/backfire/backfire/scripts/ipkg -force-defaults -force-depends install /home/mohnkhan/backfire/backfire/bin/x86/packages/wireless-tools_29-4_x86.ipk
Unpacking wireless-tools...Done.
Configuring wireless-tools...Done.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire/package/wireless-tools'
make[2]: Leaving directory `/home/mohnkhan/backfire/backfire'
make[2]: Entering directory `/home/mohnkhan/backfire/backfire'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire'
make[3]: * No rule to make target `package/preconfig'. Stop.
make[3]: Leaving directory `/home/mohnkhan/backfire/backfire'
make[2]: [package/rootfs-prepare] Error 2 (ignored)
make[2]: Leaving directory `/home/mohnkhan/backfire/backfire'
make[2]: Entering directory `/home/mohnkhan/backfire/backfire'
make[3]: Entering directory `/home/mohnkhan/backfire/backfire/target/linux'
make[4]: Entering directory `/home/mohnkhan/backfire/backfire/target/linux/x86'
/home/mohnkhan/backfire/backfire/scripts/kconfig.pl + /home/mohnkhan/backfire/backfire/target/linux/generic-2.6/config-2.6.32 + /home/mohnkhan/backfire/backfire/target/linux/x86/config-default /home/mohnkhan/backfire/backfire/target/linux/x86/generic/config-default > /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
awk '/(#:space:?+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/mohnkhan/backfire/backfire/.config >> /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
echo "# CONFIG_KPROBES is not set" >> /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
/home/mohnkhan/backfire/backfire/staging_dir/host/bin/sed -i -e 's,.*CONFIG_AEABI.*,# CONFIG_AEABI is not set,' /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target
/home/mohnkhan/backfire/backfire/scripts/metadata.pl kconfig /home/mohnkhan/backfire/backfire/tmp/.packageinfo /home/mohnkhan/backfire/backfire/.config > /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.override
/home/mohnkhan/backfire/backfire/scripts/kconfig.pl 'm+' '+' /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.target /dev/null /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.override > /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config
mv /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.old
grep -v INITRAMFS /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config.old > /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.config
export MAKEFLAGS= ;make -C /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10 CROSS_COMPILE="i486-openwrt-linux-uclibc-" ARCH="x86" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="i486-openwrt-linux-uclibc-gcc" oldconfig prepare scripts
make[5]: Entering directory `/home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10'
scripts/kconfig/conf -o arch/x86/Kconfig
*

  • Restart config...

*
*

  • Kernel hacking

*
Show timing information on printks (PRINTK_TIME) [N/y/?] n
Enable deprecated logic (ENABLE_WARN_DEPRECATED) [Y/n/?] y
Enable
must_check logic (ENABLE_MUST_CHECK) [N/y/?] n
Warn for stack frames larger than (needs gcc 4.4) (FRAME_WARN) [1024] 1024
Magic SysRq key (MAGIC_SYSRQ) [N/y/?] n
Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [Y/n/?] y
Enable unused/obsolete exported symbols (UNUSED_SYMBOLS) [N/y/?] n
Debug Filesystem (DEBUG_FS) [Y/n/?] y
Run 'make headers_check' when building vmlinux (HEADERS_CHECK) [N/y/?] n
Kernel debugging (DEBUG_KERNEL) [Y/n/?] y

Debug shared IRQ handlers (DEBUG_SHIRQ) [N/y/?] n
Detect Soft Lockups (DETECT_SOFTLOCKUP) [N/y/?] n
Detect Hung Tasks (DETECT_HUNG_TASK) [N/y/?] n
Collect scheduler debugging info (SCHED_DEBUG) [N/y/?] n
Collect scheduler statistics (SCHEDSTATS) [N/y/?] n
Collect kernel timers statistics (TIMER_STATS) [N/y/?] n
Debug object operations (DEBUG_OBJECTS) [N/y/?] n

SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] n
Enable SLUB performance statistics (SLUB_STATS) [N/y/?] n
Kernel memory leak detector (DEBUG_KMEMLEAK) [N/y/?] n
RT Mutex debugging, deadlock detection (DEBUG_RT_MUTEXES) [N/y/?] n
Built-in scriptable tester for rt-mutexes (RT_MUTEX_TESTER) [N/y/?] n
Spinlock and rw-lock debugging: basic checks (DEBUG_SPINLOCK) [N/y/?] n
Mutex debugging: basic checks (DEBUG_MUTEXES) [N/y/?] n
Lock debugging: detect incorrect freeing of live locks (DEBUG_LOCK_ALLOC) [N/y/?] n
Lock debugging: prove locking correctness (PROVE_LOCKING) [N/y/?] n
Lock usage statistics (LOCK_STAT) [N/y/?] n
Spinlock debugging: sleep-inside-spinlock checking (DEBUG_SPINLOCK_SLEEP) [N/y/?] n
Locking API boot-time self-tests (DEBUG_LOCKING_API_SELFTESTS) [N/y/?] n
kobject debugging (DEBUG_KOBJECT) [N/y/?] n
Verbose BUG() reporting (adds 70K) (DEBUG_BUGVERBOSE) [N/y/?] n
Compile the kernel with debug info (DEBUG_INFO) [Y/n/?] y
Debug VM (DEBUG_VM) [N/y/?] n
Debug VM translations (DEBUG_VIRTUAL) [N/y/?] (NEW) Debug filesystem writers count (DEBUG_WRITECOUNT) [N/y/?] n
Debug memory initialisation (DEBUG_MEMORY_INIT) [Y/n/?] y
Debug linked list manipulation (DEBUG_LIST) [N/y/?] n
Debug SG table operations (DEBUG_SG) [N/y/?] n
Debug notifier call chains (DEBUG_NOTIFIERS) [N/y/?] n
Debug credential management (DEBUG_CREDENTIALS) [N/y/?] n
Compile the kernel with frame pointers (FRAME_POINTER) [N/y/?] n
Delay each boot printk message by N milliseconds (BOOT_PRINTK_DELAY) [N/y/?] n
torture tests for RCU (RCU_TORTURE_TEST) [N/m/y/?] n
Check for stalled CPUs delaying RCU grace periods (RCU_CPU_STALL_DETECTOR) [N/y/?] n
Self test for the backtrace code (BACKTRACE_SELF_TEST) [N/m/y/?] n
Force extended block device numbers and spread them (DEBUG_BLOCK_EXT_DEVT) [N/y/?] n
Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n
Fault-injection framework (FAULT_INJECTION) [N/y/?] n
Latency measuring infrastructure (LATENCYTOP) [N/y/?] n
Sysctl checks (SYSCTL_SYSCALL_CHECK) [Y/n/?] y
Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] (NEW) Remote debugging over FireWire early on boot (PROVIDE_OHCI1394_DMA_INIT) [N/y/?] n
Enable dynamic printk() support (DYNAMIC_DEBUG) [N/y/?] n
Enable debugging of DMA-API usage (DMA_API_DEBUG) [N/y/?] n
*

  • kmemcheck: trap use of uninitialized memory

*
kmemcheck: trap use of uninitialized memory (KMEMCHECK) [N/y/?] (NEW) Filter access to /dev/mem (STRICT_DEVMEM) [Y/n/?] y
Enable verbose x86 bootup info messages (X86_VERBOSE_BOOTUP) [Y/n/?] y
Early printk (EARLY_PRINTK) [Y/n/?] y

Early printk via EHCI debug port (EARLY_PRINTK_DBGP) [N/y/?] n

Check for stack overflows (DEBUG_STACKOVERFLOW) [N/y/?] (NEW)
Stack utilization instrumentation (DEBUG_STACK_USAGE) [N/y/?] n
Export kernel pagetable layout to userspace via debugfs (X86_PTDUMP) [N/y/?] (NEW)
Write protect kernel read-only data structures (DEBUG_RODATA) [Y/n/?] (NEW)

Testcase for the DEBUG_RODATA feature (DEBUG_RODATA_TEST) [Y/n/?] (NEW)

Testcase for the NX non-executable stack feature (DEBUG_NX_TEST) [N/m/?] (NEW)
Use 4Kb for kernel stacks instead of 8Kb (4KSTACKS) [Y/n/?] y
Enable doublefault exception handler (DOUBLEFAULT) [Y/n/?] y
Enable IOMMU stress-test mode (IOMMU_STRESS) [N/y/?] n
IO delay type

  1. port 0x80 based port-IO delay [recommended] (IO_DELAY_0X80)
  1. port 0xed based port-IO delay (IO_DELAY_0XED)
  2. udelay based port-IO delay (IO_DELAY_UDELAY)
  3. no port-IO delay (IO_DELAY_NONE)

choice[1-4]: 1
Debug boot parameters (DEBUG_BOOT_PARAMS) [N/y/?] (NEW)
CPA self-test code (CPA_DEBUG) [N/y/?] (NEW)
Allow gcc to uninline functions marked 'inline' (OPTIMIZE_INLINING) [N/y/?] n
#
# configuration written to .config
#

scripts/kconfig/conf -s arch/x86/Kconfig

CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh

make[5]: Leaving directory `/home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10'
rm -rf /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/modules
touch /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10/.configured
rm -f /home/mohnkhan/backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/root-x86/init
make -C /home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10 CROSS_COMPILE="i486-openwrt-linux-uclibc-" ARCH="x86" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="i486-openwrt-linux-uclibc-gcc" "bzImage"
make[5]: Entering directory `/home/mohnkhan/backfire/backfire/build_dir/linux-x86_generic/linux-2.6.32.10'

CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to accepted

comment:2 Changed 7 years ago by nico

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [22601], thanks !

comment:3 Changed 7 years ago by mohnkhan

a Big box of thanks for fixing

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.