[Milkymist-devel] Issue with Linux COmpilation for Milkymist

Gautam Kalyanasundaram gautamkalyan at gmail.com
Sun Nov 8 06:00:39 PST 2009


Hi Sebastien,
                             Sorry about the repeated emails. I figured out
that the last message was because of an existing edited config file lying
around. I did a make clean and then copied over the config file to the
.config and reran the make as you had suggested.

I still get a lot of options to be set during the make. Is there any way of
avoiding this?
I have included the full compile log inline below. Thanks once again for
your help in advance.

Regards,
Gautam

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/Kconfig
init/Kconfig:694:warning: 'select' used by config symbol 'XENOMAI' refers to
undefined symbol 'IPIPE'
.config:12:warning: trying to assign nonexistent symbol
GENERIC_FIND_NEXT_BIT
.config:24:warning: trying to assign nonexistent symbol
GENERIC_HARDIRQS_NO__DO_IRQ
.config:26:warning: trying to assign nonexistent symbol IPIPE_TRACE_MCOUNTS
.config:106:warning: trying to assign nonexistent symbol CPU_MICO32
.config:107:warning: trying to assign nonexistent symbol BOARD_XILINX_ML401
.config:108:warning: trying to assign nonexistent symbol BOARD_MILKYMIST_ONE
.config:109:warning: trying to assign nonexistent symbol CPU_CLOCK
.config:110:warning: trying to assign nonexistent symbol MEMORY_START
.config:111:warning: trying to assign nonexistent symbol MEMORY_SIZE
.config:112:warning: trying to assign nonexistent symbol TEXT_OFFSET
.config:113:warning: trying to assign nonexistent symbol LM32_HW_JTAG
.config:506:warning: trying to assign nonexistent symbol BOOTPARAM
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?]
y
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string
(LOCALVERSION_AUTO) [N/y/?] n
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] (NEW) n
System V IPC (SYSVIPC) [N/y/?] n
POSIX Message Queues (POSIX_MQUEUE) [N/y/?] n
BSD Process Accounting (BSD_PROCESS_ACCT) [N/y/?] n
Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS)
[N/y/?] n
User Namespaces (EXPERIMENTAL) (USER_NS) [N/y/?] n
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [N/m/y/?] n
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [12] 12
Create deprecated sysfs files (SYSFS_DEPRECATED) [N/y/?] n
Kernel->user space relay support (formerly relayfs) (RELAY) [N/y/?] n
Initial RAM filesystem and RAM disk (initramfs/initrd) support
(BLK_DEV_INITRD) [Y/n/?] y
  Initramfs source file(s) (INITRAMFS_SOURCE) []
Optimize for size (Look out for broken compilers!) (CC_OPTIMIZE_FOR_SIZE)
[N/y/?] n
*
* Configure standard kernel features (for small systems)
*
Configure standard kernel features (for small systems) (EMBEDDED) [Y/n/?] y
  Enable 16-bit UID system calls (UID16) [Y/n/?] (NEW)
  Sysctl syscall support (SYSCTL_SYSCALL) [N/y/?] n
  Load all symbols for debugging/ksymoops (KALLSYMS) [Y/n/?] y
    Include all symbols in kallsyms (KALLSYMS_ALL) [N/y/?] n
    Do an extra kallsyms pass (KALLSYMS_EXTRA_PASS) [Y/n/?] y
  Support for hot-pluggable devices (HOTPLUG) [N/y/?] n
  Enable support for printk (PRINTK) [Y/n/?] y
  BUG() support (BUG) [Y/n/?] y
  Enable ELF core dumps (ELF_CORE) [N/y/?] n
  Enable full-sized data structures for core (BASE_FULL) [N/y/?] n
  Enable futex support (FUTEX) [Y/n/?] y
Enable eventpoll support (EPOLL) [N/y/?] n
Enable signalfd() system call (SIGNALFD) [N/y/?] n
Enable eventfd() system call (EVENTFD) [N/y/?] n
Use full shmem filesystem (SHMEM) [Y/n/?] (NEW)
Enable VM event counters for /proc/vmstat (VM_EVENT_COUNTERS) [N/y/?] n
Choose SLAB allocator
> 1. SLAB (SLAB)
  2. SLUB (Unqueued Allocator) (SLUB)
  3. SLOB (Simple Allocator) (SLOB)
choice[1-3?]: 1
*
* Processor type and features
*
Tickless System (Dynamic Ticks) (NO_HZ) [N/y/?] (NEW) y
High Resolution Timer Support (HIGH_RES_TIMERS) [N/y/?] (NEW) N
Symmetric multi-processing support (SMP) [N/y/?] (NEW)
Subarchitecture Type
> 1. PC-compatible (X86_PC) (NEW)
  2. AMD Elan (X86_ELAN) (NEW)
  3. Voyager (NCR) (X86_VOYAGER) (NEW)
  4. NUMAQ (IBM/Sequent) (X86_NUMAQ) (NEW)
  5. SGI 320/540 (Visual Workstation) (X86_VISWS) (NEW)
  6. Generic architecture (Summit, bigsmp, ES7000, default)
(X86_GENERICARCH) (NEW)
choice[1-6]: 6
Paravirtualization support (EXPERIMENTAL) (PARAVIRT) [N/y/?] (NEW)
Processor family
  1. 386 (M386) (NEW)
  2. 486 (M486) (NEW)
  3. 586/K5/5x86/6x86/6x86MX (M586) (NEW)
  4. Pentium-Classic (M586TSC) (NEW)
  5. Pentium-MMX (M586MMX) (NEW)
> 6. Pentium-Pro (M686) (NEW)
  7. Pentium-II/Celeron(pre-Coppermine) (MPENTIUMII) (NEW)
  8. Pentium-III/Celeron(Coppermine)/Pentium-III Xeon (MPENTIUMIII) (NEW)
  9. Pentium M (MPENTIUMM) (NEW)
  10. Core 2/newer Xeon (MCORE2) (NEW)
  11. Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon (MPENTIUM4) (NEW)
  12. K6/K6-II/K6-III (MK6) (NEW)
  13. Athlon/Duron/K7 (MK7) (NEW)
  14. Opteron/Athlon64/Hammer/K8 (MK8) (NEW)
  15. Crusoe (MCRUSOE) (NEW)
  16. Efficeon (MEFFICEON) (NEW)
  17. Winchip-C6 (MWINCHIPC6) (NEW)
  18. Winchip-2 (MWINCHIP2) (NEW)
  19. Winchip-2A/Winchip-3 (MWINCHIP3D) (NEW)
  20. GeodeGX1 (MGEODEGX1) (NEW)
  21. Geode GX/LX (MGEODE_LX) (NEW)
  22. CyrixIII/VIA-C3 (MCYRIXIII) (NEW)
  23. VIA C3-2 (Nehemiah) (MVIAC3_2) (NEW)
  24. VIA C7 (MVIAC7) (NEW)
choice[1-24]:
Generic x86 support (X86_GENERIC) [N/y/?] (NEW)
HPET Timer Support (HPET_TIMER) [N/y/?] (NEW)
Preemption Model
> 1. No Forced Preemption (Server) (PREEMPT_NONE) (NEW)
  2. Voluntary Kernel Preemption (Desktop) (PREEMPT_VOLUNTARY) (NEW)
  3. Preemptible Kernel (Low-Latency Desktop) (PREEMPT) (NEW)
choice[1-3]:
Machine Check Exception (X86_MCE) [N/y/?] (NEW)
Enable VM86 support (VM86) [Y/n/?] (NEW)
Toshiba Laptop support (TOSHIBA) [N/m/y/?] (NEW)
Dell laptop support (I8K) [N/m/y/?] (NEW)
Enable X86 board specific fixups for reboot (X86_REBOOTFIXUPS) [N/y/?]
(NEW)
/dev/cpu/microcode - Intel IA32 CPU microcode support (MICROCODE) [N/m/y/?]
(NEW)
/dev/cpu/*/msr - Model-specific register support (X86_MSR) [N/m/y/?] (NEW)
/dev/cpu/*/cpuid - CPU information support (X86_CPUID) [N/m/y/?] (NEW)
*
* Firmware Drivers
*
BIOS Enhanced Disk Drive calls determine boot disk (EDD) [N/m/y/?] (NEW)
BIOS update support for DELL systems via sysfs (DELL_RBU) [N/m/y/?] (NEW)
Dell Systems Management Base Driver (DCDBAS) [N/m/y/?] (NEW)
Export DMI identification via sysfs to userspace (DMIID) [Y/n/?] (NEW)
High Memory Support
  1. off (NOHIGHMEM) (NEW)
> 2. 4GB (HIGHMEM4G) (NEW)
  3. 64GB (HIGHMEM64G) (NEW)
choice[1-3]:
Memory split
> 1. 3G/1G user/kernel split (VMSPLIT_3G) (NEW)
  2. 3G/1G user/kernel split (for full 1G low memory) (VMSPLIT_3G_OPT) (NEW)
  3. 2G/2G user/kernel split (VMSPLIT_2G) (NEW)
  4. 2G/2G user/kernel split (for full 2G low memory) (VMSPLIT_2G_OPT) (NEW)
  5. 1G/3G user/kernel split (VMSPLIT_1G) (NEW)
choice[1-5?]:
Memory model
> 1. Flat Memory (FLATMEM_MANUAL)
choice[1]: 1
64 bit Memory and IO resources (EXPERIMENTAL) (RESOURCES_64BIT) [N/y/?]
(NEW)
Allocate 3rd-level pagetables from highmem (HIGHPTE) [N/y/?] (NEW)
Math emulation (MATH_EMULATION) [N/y/?] (NEW)
MTRR (Memory Type Range Register) support (MTRR) [N/y/?] (NEW)
Enable seccomp to safely compute untrusted bytecode (SECCOMP) [Y/n/?] (NEW)
Timer frequency
  1. 100 HZ (HZ_100) (NEW)
> 2. 250 HZ (HZ_250) (NEW)
  3. 300 HZ (HZ_300) (NEW)
  4. 1000 HZ (HZ_1000) (NEW)
choice[1-4?]:
kexec system call (KEXEC) [N/y/?] (NEW)
kernel crash dumps (EXPERIMENTAL) (CRASH_DUMP) [N/y/?] (NEW)
Physical address where the kernel is loaded (PHYSICAL_START) [0x100000]
(NEW)
Build a relocatable kernel(EXPERIMENTAL) (RELOCATABLE) [N/y/?] (NEW)
Alignment value to which kernel should be aligned (PHYSICAL_ALIGN)
[0x100000] (NEW)
Compat VDSO support (COMPAT_VDSO) [Y/n/?] (NEW)
*
* CPU Frequency scaling
*
CPU Frequency scaling (CPU_FREQ) [N/y/?] (NEW)
*
* Bus options (PCI, PCMCIA, EISA, MCA, ISA)
*
PCI support (PCI) [N/y/?] (NEW)
ISA support (ISA) [N/y/?] (NEW)
MCA support (MCA) [N/y/?] (NEW)
NatSemi SCx200 support (SCx200) [N/m/y/?] (NEW)
*
* Executable file formats
*
Kernel support for ELF binaries (BINFMT_ELF) [Y/n/?] (NEW)
Kernel support for a.out and ECOFF binaries (BINFMT_AOUT) [N/m/y/?] (NEW)
Kernel support for MISC binaries (BINFMT_MISC) [N/m/y/?] n
*
* Block devices
*
Block devices (BLK_DEV) [Y/n/?] y
  Normal floppy disk support (BLK_DEV_FD) [N/m/y/?] (NEW)
  Loopback device support (BLK_DEV_LOOP) [Y/n/m/?] y
    Cryptoloop Support (BLK_DEV_CRYPTOLOOP) [N/m/y/?] n
  Network block device support (BLK_DEV_NBD) [N/m/y/?] n
  RAM disk support (BLK_DEV_RAM) [Y/n/m/?] y
    Default number of RAM disks (BLK_DEV_RAM_COUNT) [1] 1
    Default RAM disk size (kbytes) (BLK_DEV_RAM_SIZE) [8192] 8192
    Default RAM disk block size (bytes) (BLK_DEV_RAM_BLOCKSIZE) [1024] 1024
  Packet writing on CD/DVD media (CDROM_PKTCDVD) [N/m/y/?] n
  ATA over Ethernet support (ATA_OVER_ETH) [N/m/y/?] n
*
* Macintosh device drivers
*
Macintosh device drivers (MACINTOSH_DRIVERS) [N/y/?] (NEW)
*
* Character devices
*
Virtual terminal (VT) [Y/n/?] y
  Support for console on virtual terminal (VT_CONSOLE) [Y/n/?] y
  Support for binding and unbinding console drivers (VT_HW_CONSOLE_BINDING)
[N/y/?] n
Non-standard serial port support (SERIAL_NONSTANDARD) [N/y/?] n
Unix98 PTY support (UNIX98_PTYS) [Y/n/?] y
Legacy (BSD) PTY support (LEGACY_PTYS) [Y/n/?] y
  Maximum number of legacy PTY in use (LEGACY_PTY_COUNT) [256] 256
Hardware Random Number Generator Core support (HW_RANDOM) [N/m/y/?] n
/dev/nvram support (NVRAM) [N/m/y/?] (NEW)
Enhanced Real Time Clock Support (RTC) [N/m/y/?] n
Generic /dev/rtc emulation (GEN_RTC) [N/m/y/?] n
Siemens R3964 line discipline (R3964) [N/m/y/?] n
ACP Modem (Mwave) support (MWAVE) [N/m/y/?] (NEW)
NatSemi PC8736x GPIO Support (PC8736x_GPIO) [N/m/y/?] (NEW)
NatSemi Base GPIO Support (NSC_GPIO) [N/m/y/?] (NEW)
AMD CS5535/CS5536 GPIO (Geode Companion Device) (CS5535_GPIO) [N/m/y/?]
(NEW)
RAW driver (/dev/raw/rawN) (RAW_DRIVER) [N/m/y/?] n
Hangcheck timer (HANGCHECK_TIMER) [N/m/y/?] (NEW)
Telecom clock driver for ATCA SBC (TELCLOCK) [N/m/y/?] (NEW)
*
* EDAC - error detection and reporting (EXPERIMENTAL)
*
EDAC - error detection and reporting (EXPERIMENTAL) (EDAC) [N/y/?] (NEW)
*
* Virtualization
*
Virtualization (VIRTUALIZATION) [Y/n/?] (NEW)
  Kernel-based Virtual Machine (KVM) support (KVM) [N/m/y/?] (NEW)
*
* File systems
*
Second extended fs support (EXT2_FS) [Y/n/m/?] y
  Ext2 extended attributes (EXT2_FS_XATTR) [N/y/?] n
  Ext2 execute in place support (EXT2_FS_XIP) [N/y/?] (NEW)
Ext3 journalling file system support (EXT3_FS) [N/m/y/?] n
Ext4dev/ext4 extended fs support development (EXPERIMENTAL) (EXT4DEV_FS)
[N/m/y/?] n
Reiserfs support (REISERFS_FS) [N/m/y/?] n
JFS filesystem support (JFS_FS) [N/m/y/?] n
XFS filesystem support (XFS_FS) [N/m/y/?] n
GFS2 file system support (GFS2_FS) [N/m/y/?] n
OCFS2 file system support (OCFS2_FS) [N/m/y/?] n
Minix fs support (MINIX_FS) [N/m/y/?] n
ROM file system support (ROMFS_FS) [Y/n/m/?] y
Inotify file change notification support (INOTIFY) [N/y/?] n
Quota support (QUOTA) [N/y/?] n
Dnotify support (DNOTIFY) [Y/n/?] y
Kernel automounter support (AUTOFS_FS) [N/m/y/?] n
Kernel automounter version 4 support (also supports v3) (AUTOFS4_FS)
[N/m/y/?] n
Filesystem in Userspace support (FUSE_FS) [N/m/y/?] n
*
* Pseudo filesystems
*
/proc file system support (PROC_FS) [Y/n/?] y
  /proc/kcore support (PROC_KCORE) [N/y] (NEW)
  Sysctl support (/proc/sys) (PROC_SYSCTL) [Y/n/?] y
sysfs file system support (SYSFS) [Y/n/?] y
Virtual memory file system support (former shm fs) (TMPFS) [N/y/?] n
HugeTLB file system support (HUGETLBFS) [N/y/?] (NEW)
Userspace-driven configuration filesystem (EXPERIMENTAL) (CONFIGFS_FS)
[N/m/y/?] n
*
* Instrumentation Support
*
Instrumentation Support (INSTRUMENTATION) [Y/n/?] (NEW)
  Profiling support (EXPERIMENTAL) (PROFILING) [N/y/?] (NEW)
  Kprobes (KPROBES) [N/y/?] (NEW)
*
* Kernel hacking
*
Show timing information on printks (PRINTK_TIME) [N/y/?] n
Enable __must_check logic (ENABLE_MUST_CHECK) [Y/n/?] y
Magic SysRq key (MAGIC_SYSRQ) [N/y/?] n
Enable unused/obsolete exported symbols (UNUSED_SYMBOLS) [N/y/?] n
Debug Filesystem (DEBUG_FS) [N/y/?] n
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
  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 slab memory allocations (DEBUG_SLAB) [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/?] (NEW)
Lock debugging: prove locking correctness (PROVE_LOCKING) [N/y/?] (NEW)
Lock usage statistics (LOCK_STAT) [N/y/?] (NEW)
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
Highmem debugging (DEBUG_HIGHMEM) [N/y/?] (NEW)
Verbose BUG() reporting (adds 70K) (DEBUG_BUGVERBOSE) [Y/n/?] y
Compile the kernel with debug info (DEBUG_INFO) [Y/n/?] y
Debug VM (DEBUG_VM) [N/y/?] n
Debug linked list manipulation (DEBUG_LIST) [N/y/?] n
Compile the kernel with frame pointers (FRAME_POINTER) [N/y/?] (NEW)
Force gcc to inline functions marked 'inline' (FORCED_INLINING) [Y/n/?] y
torture tests for RCU (RCU_TORTURE_TEST) [N/m/?] n
Fault-injection framework (FAULT_INJECTION) [N/y/?] n
Early printk (EARLY_PRINTK) [N/y/?] n
Check for stack overflows (DEBUG_STACKOVERFLOW) [N/y/?] (NEW)
Stack utilization instrumentation (DEBUG_STACK_USAGE) [N/y/?] (NEW)
Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] (NEW)
Write protect kernel read-only data structures (DEBUG_RODATA) [N/y/?] (NEW)
Use 4Kb for kernel stacks instead of 8Kb (4KSTACKS) [N/y/?] (NEW)
Enable doublefault exception handler (DOUBLEFAULT) [Y/n/?] (NEW)
#
# configuration written to .config
#







  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-i386
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  CC      arch/i386/kernel/asm-offsets.s
cc1: error: unrecognized command line option "-msoft-float"
cc1: error: unrecognized command line option "-mregparm=3"
cc1: error: unrecognized command line option "-march=i686"
cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1


On Sun, Nov 8, 2009 at 7:17 PM, Gautam Kalyanasundaram <
gautamkalyan at gmail.com> wrote:

> Hi Sebastien,
>                          Thanks. I did that and I get this error:
>  CHK     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/docproc
>   CC      arch/i386/kernel/asm-offsets.s
> cc1: error: unrecognized command line option "-msoft-float"
> cc1: error: unrecognized command line option "-mregparm=3"
> cc1: error: unrecognized command line option "-march=i686"
> cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
> make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2
>
> Any ideas on this? Thank you for your help!
> Thanks.
>
> Regards,
> Gautam
>
> On Sun, Nov 8, 2009 at 5:20 PM, Sébastien Bourdeauducq <
> sebastien.bourdeauducq at lekernel.net> wrote:
>
>> Hi,
>>
>> On Sunday 08 November 2009 03:31:38 Gautam Kalyanasundaram wrote:
>> > 1. The toolchain from Thoeborma Systems for Windows
>>
>> Do not use this one, it produces corrupted kernels that will crash during
>> boot. Use GCC >= 4.4. You may need to compile it yourself for Windows.
>> You should use the "lm32-elf" target in the "configure" scripts; no other
>> special option should be passed. You can have a look at the "debian/rules"
>> scripts in the "milkymist-packaging" repository to get an idea of the
>> complete
>> "configure" command line.
>>
>> > a. make mrproper
>> > b. make
>> > ( this gave me a bunch of options - left all of them to default
>> including
>> > the procesor type - as there was no lm32 type listed )
>>
>> Instead of just "make", the correct command is:
>> ARCH=lm32 CROSS_COMPILE=lm32-elf- make
>>
>> Sébastien
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.milkymist.org/pipermail/devel-milkymist.org/attachments/20091108/4a315551/attachment.htm>


More information about the Devel mailing list