[#7301] trunk head toolchain build uclinux-dist fails at ftp for error: ‘ARG_MAX’ undeclared
Submitted By: Mingquan Pan
Open Date
2012-08-31 03:33:26 Close Date
2012-09-04 05:57:36
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
STAMP
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
trunk head
App binary format:
N/A
Summary: trunk head toolchain build uclinux-dist fails at ftp for error: ‘ARG_MAX’ undeclared
Details:
trunk head toolchain build uclinux-dist fails at ftp for error: ‘ARG_MAX’ undeclared.
make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/ftp'^M
for i in ftp ; do make -C $i all ; done^M
make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/ftp/ftp'^M
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o cmds.o cmds.c^M
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o cmdtab.o cmdtab.c^M
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o domacro.o domacro.c^M
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o ftp.o ftp.c^M
ftp.c: In function ‘sendrequest’:^M
ftp.c:475: warning: unused variable ‘st’^M
ftp.c: In function ‘ptransfer’:^M
ftp.c:1258: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’^M
ftp.c:1258: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’^M
bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o glob.o glob.c^M
glob.c: In function ‘ginit’:^M
glob.c:163: error: ‘ARG_MAX’ undeclared (first use in this function)^M
glob.c:163: error: (Each undeclared identifier is reported only once^M
glob.c:163: error: for each function it appears in.)^M
make[4]: *** [glob.o] Error 1^M
make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/ftp/ftp'^M
make[3]: *** [all] Error 2^M
make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/ftp'^M
make[2]: *** [ftp] Error 2^M
make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M
make[1]: *** [all] Error 2^M
make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M
make: *** [subdirs] Error 1^M
Follow-ups
--- Sonic Zhang 2012-09-04 00:07:00
Try ftp in busybox
--- Mingquan Pan 2012-09-04 06:19:41
After disable this ftp with inetutils/ftp instead, the building process can go
to end now. But the built kernel image is also failing at init.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf537-0.2-3.5.0-ADI-2012R1-pre-0
Created: 2012-09-04 8:34:15 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3886586 Bytes = 3.7 MiB
Load Address: 00001000
Entry Point: 001cdd0c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001cdd0c
Linux version 3.5.0-ADI-2012R1-pre-00831-g3fee378 (test@40-bf537-toolchain)
(gcc version 4.3.5 (ADI-trunk/svn-5865) ) #28 Tue Sep 4 16:34:10 CST 2012
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00139dc8
rodata = 0x00139dc8-0x0019be74
bss = 0x0019c000-0x001ac58c
data = 0x001ac5a0-0x001c6000
stack = 0x001c4000-0x001c6000
init = 0x001c6000-0x0072b000
available = 0x0072b000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
panic=3 ip=10.100.4.50 console=tty0 console=ttyBF0,57600
ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:of
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 49396k/65536k RAM, (5524k init code, 1251k kernel code, 561k
data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (34 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs@ffc00500, dma channel@7
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 96
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY]
(mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-14 19:25:01 UTC (1193101)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf537-stamp, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x02768000 - 256 pages at 0x03f00000�Freeing
unused kernel memory: 5524k freed
inKt: ernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
Hxec rc failed
ardware Trace:
0 Target : <0x00139b40> { _dump_stack + 0x0 }
Source : <0x00139be0> { _panic + 0x68 } CALL pcrel
1 Target : <0x00139bce> { _panic + 0x56 }
Source : <0x0000c39e> { _test_taint + 0x22 } RTS
2 Target : <0x0000c37c> { _test_taint + 0x0 }
Source : <0x00139bca> { _panic + 0x52 } CALL pcrel
3 Target : <0x00139bc8> { _panic + 0x50 }
Source : <0x00139d8e> { _printk + 0x26 } RTS
4 Target : <0x00139d8a> { _printk + 0x22 }
Source : <0x0000e414> { _vprintk_emit + 0x12c } RTS
5 Target : <0x0000e40a> { _vprintk_emit + 0x122 }
Source : <0xffa00d06> { __common_int_entry + 0xda } RTI
6 Target : <0xffa00ca4> { __common_int_entry + 0x78 }
Source : <0xffa00adc> { _return_from_int + 0x58 } RTS
7 Target : <0xffa00adc> { _return_from_int + 0x58 }
Source : <0xffa00ab2> { _return_from_int + 0x2e } IF !CC JUMP pcrel
8 Target : <0xffa00a84> { _return_from_int + 0x0 }
Source : <0xffa00ca0> { __common_int_entry + 0x74 } JUMP.L
9 Target : <0xffa00c9e> { __common_int_entry + 0x72 }
Source : <0xffa00386> { _asm_do_IRQ + 0x6a } RTS
10 Target : <0xffa0037e> { _asm_do_IRQ + 0x62 }
Source : <0x0003c4e4> { _rcu_irq_exit + 0x54 } RTS
11 Target : <0x0003c4de> { _rcu_irq_exit + 0x4e }
Source : <0x0003c4d0> { _rcu_irq_exit + 0x40 } IF CC JUMP pcrel
(BP)
12 Target : <0x0003c4ca> { _rcu_irq_exit + 0x3a }
Source : <0x0003c436> { _rcu_idle_enter_common + 0x3e } RTS
13 Target : <0x0003c430> { _rcu_idle_enter_common + 0x38 }
Source : <0x0003c40e> { _rcu_idle_enter_common + 0x16 } IF !CC JUMP
pcrel
14 Target : <0x0003c3f8> { _rcu_idle_enter_common + 0x0 }
Source : <0x0003c4c6> { _rcu_irq_exit + 0x36 } CALL pcrel
15 Target : <0x0003c490> { _rcu_irq_exit + 0x0 }
Source : <0x00012640> { _irq_exit + 0x44 } CALL pcrel
Stack info:
SP: [0x0201fe6c] <0x0201fe6c> /* kernel dynamic memory (maybe
user-space) */
FP: (0x0201ff04)
Memory from 0x0201fe60 to 02020000
0201fe60: 00000000 0201fe6c 0201cd60 [00000000] 00139be4 0201fed4 0016ebc0
001a1370
0201fe80: 001a1370 001a1370 0201feb4 0201cd60 00010c34 0201fed4 00000001
0201cd60
0201fea0: 00000200 ffffe000 00000002 0201fed4 0201cd60 00000200 00000002
00000002
0201fec0: 0201fecc 001b3bac 00000001 0201fecc 0201fecc 0201ce80 02799e8c
00010e1c
0201fee0: 00010e10 00000001 00000001 00000000 ffffe000 00000002 02785c84
<ffa00942>
0201ff00: 00051864 (00000000)<ffa00942> 00000000 00000000 00000000
027866a4 02785c84
0201ff20: 00000002 02782588 00008000 00002000 00000000 02020000 02782588
02782588
0201ff40: 02780c58 ffa010e8 02000022 00000001 02783859 00000000 02783856
00000000
0201ff60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
0201ff80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
0201ffa0: 00000000 00000000 00000000 00000001 02799ea1 02799e80 02799e8c
02786aa8
0201ffc0: 02786a80 00000001 02786ab4 027866b4 00000001 00000000 00000001
00000002
0201ffe0: 02785c84 027866a4 00000002 02799e88 00000002 00000002 00000001
00000006
Return addresses in stack:
address : <0xffa00942> { _system_call + 0x6a }
frame 1 : <0xffa00942> { _system_call + 0x6a }
Rebooting in 3 seconds..
U-Boot 2010.09-svn2491 (ADI-2011R1-pre) (Nov 28 2010 - 20:15:16)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MiB
Flash: 4 MiB
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: bfin_mac
--- Mingquan Pan 2012-09-04 06:55:39
duplicate with [7300]. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found