Linux version 3.18.0 (landley@halfbrick) (gcc version 4.2.1) #1 Sun Mar 8 23:25:46 CDT 2015
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x0000000007fdffff] usable
BIOS-e820: [mem 0x0000000007fe0000-0x0000000007ffffff] reserved
BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
Notice: NX (Execute Disable) protection missing in CPU!
SMBIOS 2.8 present.
e820: last_pfn = 0x7fe0 max_arch_pfn = 0x100000
PAT not supported by CPU.
init_memory_mapping: [mem 0x00000000-0x000fffff]
init_memory_mapping: [mem 0x07800000-0x07bfffff]
init_memory_mapping: [mem 0x00100000-0x077fffff]
init_memory_mapping: [mem 0x07c00000-0x07fdffff]
RAMDISK: [mem 0x07f86000-0x07fdffff]
ACPI: Early table checksum verification disabled
ACPI: RSDP 0x000F0CA0 000014 (v00 BOCHS )
ACPI: RSDT 0x07FE1853 000034 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 0x07FE0E48 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 0x07FE0040 000E08 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
ACPI: FACS 0x07FE0000 000040
ACPI: SSDT 0x07FE0EBC 0008E7 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 0x07FE17A3 000078 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: HPET 0x07FE181B 000038 (v01 BOCHS  BXPCHPET 00000001 BXPC 00000001)
0MB HIGHMEM available.
127MB LOWMEM available.
  mapped low ram: 0 - 07fe0000
  low ram: 0 - 07fe0000
Zone ranges:
  DMA      [mem 0x00001000-0x00ffffff]
  Normal   [mem 0x01000000-0x07fdffff]
  HighMem  empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00001000-0x0009efff]
  node   0: [mem 0x00100000-0x07fdffff]
Initmem setup node 0 [mem 0x00001000-0x07fdffff]
ACPI: PM-Timer IO Port: 0x608
e820: [mem 0x08000000-0xfffbffff] available for PCI devices
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32382
Kernel command line: panic=1 console=ttyS0 HOST=i686 
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Initializing CPU#0
Initializing HighMem for node 0 (00000000:00000000)
Memory: 125348K/130552K available (2193K kernel code, 199K rwdata, 672K rodata, 224K init, 252K bss, 5204K reserved, 0K highmem)
virtual kernel memory layout:
    fixmap  : 0xfffe4000 - 0xfffff000   ( 108 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xc87e0000 - 0xff7fe000   ( 880 MB)
    lowmem  : 0xc0000000 - 0xc7fe0000   ( 127 MB)
      .init : 0xc1301000 - 0xc1339000   ( 224 kB)
      .data : 0xc1224b18 - 0xc12fffc0   ( 877 kB)
      .text : 0xc1000000 - 0xc1224b18   (2194 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
Console: colour VGA+ 80x25
console [ttyS0] enabled
tsc: Fast TSC calibration using PIT
tsc: Detected 2394.549 MHz processor
Calibrating delay loop (skipped), value calculated using timer frequency.. 4789.09 BogoMIPS (lpj=9578196)
pid_max: default: 32768 minimum: 301
ACPI: Core revision 20140926
ACPI: All ACPI Tables successfully acquired
ACPI: setting ELCR to 0200 (from 0c00)
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
CPU: Intel Pentium III (Katmai) (fam: 06, model: 07, stepping: 03)
Performance Events: Broken PMU hardware detected, using software events only.
Failed to access perfctr msr (MSR c1 is 0)
devtmpfs: initialized
NET: Registered protocol family 16
ACPI: bus type PCI registered
PCI: PCI BIOS revision 2.10 entry at 0xfd456, last bus=0
PCI: Using configuration type 1 for base access
ACPI: Added _OSI(Module Device)
ACPI: Added _OSI(Processor Device)
ACPI: Added _OSI(3.0 _SCP Extensions)
ACPI: Added _OSI(Processor Aggregator Device)
ACPI: Interpreter enabled
ACPI: (supports S0 S5)
ACPI: Using PIC for interrupt routing
PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
acpi PNP0A03:00: _OSC: OS supports [Segments]
acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [bus 00-ff]
pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
pci_bus 0000:00: root bus resource [io  0x0d00-0xadff]
pci_bus 0000:00: root bus resource [io  0xae0f-0xaeff]
pci_bus 0000:00: root bus resource [io  0xaf20-0xafdf]
pci_bus 0000:00: root bus resource [io  0xafe4-0xffff]
pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
pci_bus 0000:00: root bus resource [mem 0x08000000-0xfebfffff]
pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
ACPI: Enabled 16 GPEs in block 00 to 0F
vgaarb: setting as boot device: PCI:0000:00:02.0
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
vgaarb: bridge control possible 0000:00:02.0
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
Switched to clocksource pit
pnp: PnP ACPI init
pnp: PnP ACPI: found 6 devices
Switched to clocksource acpi_pm
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
Unpacking initramfs...
Freeing initrd memory: 360K (c7f86000 - c7fe0000)
futex hash table entries: 256 (order: -1, 3072 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
9p: Installing v9fs 9p2000 file system support
msgmni has been set to 245
io scheduler noop registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
loop: module loaded
Uniform Multi-Platform E-IDE driver
piix 0000:00:01.1: IDE controller (0x8086:0x7010 rev 0x00)
piix 0000:00:01.1: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xc040-0xc047
    ide1: BM-DMA at 0xc048-0xc04f
tsc: Refined TSC clocksource calibration: 2394.560 MHz
hdc: QEMU DVD-ROM, ATAPI CD/DVD-ROM drive
Switched to clocksource tsc
hdc: MWDMA2 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
ide-cd driver 5.00
ide-cd: hdc: ATAPI 4X DVD-ROM drive, 512kB Cache
cdrom: Uniform CD-ROM driver Revision: 3.20
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
TCP: cubic registered
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
Freeing unused kernel memory: 224K (c1301000 - c1339000)
mount: '/dev/hdc'->'/mnt': No medium found
Type exit when done.
(i686:1) / # 
(i686:1) / # gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
/bin/ash: gcc: not found
(i686:1) / # /tmp/hello
/bin/ash: /tmp/hello: not found
(i686:1) / # exit
reboot: Restarting system
reboot: machine restart