[#5404] build kernel with 0x2000 as BOOT_LOAD address sometimes would fails at build-busybox-1.13.4

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5404] build kernel with 0x2000 as BOOT_LOAD address sometimes would fails at build-busybox-1.13.4

Submitted By: Mingquan Pan

Open Date

2009-07-29 02:32:12    

Priority:

Low     Assignee:

Mingquan Pan

Status:

Open     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

09r1

App binary format:

N/A     

Summary: build kernel with 0x2000 as BOOT_LOAD address sometimes would fails at build-busybox-1.13.4

Details:

 

build kernel with 0x2000 as BOOT_LOAD address sometimes would fails at build-busybox-1.13.4.

 

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs\'^M

  GEN     include/bbconfigopts.h^M

  HOSTCC  applets/usage^M

  HOSTCC  applets/applet_tables^M

  GEN     include/usage_compressed.h^M

  AR      miscutils/lib.a^M

  GEN     include/applet_tables.h^M

  CC      applets/applets.o^M

  LD      applets/built-in.o^M

  LINK    busybox_unstripped^M

Trying libraries: crypt m^M

Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group^M

Output of:^M

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf548-0.2 -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -Wl,-elf2flt -mcpu=bf548-0.2 -o busybox_unstripped -Wl,--sort-common -Wl,--gc-sections -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group^M

==========^M

/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: Warning: gc-sections option ignored^M

libbb/lib.a(appletlib.o):(.rodata.applet_main+0x160): undefined reference to `_taskset_main\'^M

collect2: ld returned 1 exit status^M

make[6]: *** [busybox_unstripped] Error 1^M

make[5]: *** [_all] Error 2^M

make[4]: *** [all] Error 2^M

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/busybox/build-busybox-1.13.4\'^M

make[3]: *** [all] Error 2^M

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/busybox\'^M

make[2]: *** [busybox] 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

 

Follow-ups

 

--- Mike Frysinger                                           2009-08-03 23:19:58

are you sure you didnt (1) do a `make clean` and (2) change busybox options ?

 

--- Mingquan Pan                                             2009-08-04 01:57:17

I make kernel with default config at the begining of every round of testing and

then make specific config for bootaddr, so there is no make clean before making

for bootaddr and I only select BOOT_LOAD and give 0x2000, there should be no

config related to busybox.

 

--- Mingquan Pan                                             2009-08-04 05:22:05

find that the previous case dmacpoy has used taskset and be set to N in

boot_addr case, without making clean in between make this issue happen.

 

--- Graf Yang                                                2009-08-04 06:14:31

When testing dmacopy, the taskset is enabled, libbb/appletlib.o and libbb/lib.a

which has the symbol "_taskset_main" is created,

  GEN     include/bbconfigopts.h

  HOSTCC  applets/usage

  HOSTCC  applets/applet_tables

  GEN     include/usage_compressed.h

  GEN     include/applet_tables.h

  CC      applets/applets.o

  CC      libbb/appletlib.o

  CC      miscutils/taskset.o

  AR      miscutils/lib.a

  LD      applets/built-in.o

  AR      libbb/lib.a

  LINK    busybox_unstripped

 

When testing boot_addr, taskset is disabled, while libbb/appletlib.o and

libbb/lib.a is not recreated,

  GEN     include/bbconfigopts.h

  HOSTCC  applets/usage

  HOSTCC  applets/applet_tables

  GEN     include/usage_compressed.h

  AR      miscutils/lib.a

  GEN     include/applet_tables.h

  CC      applets/applets.o

  LD      applets/built-in.o

  LINK    busybox_unstripped

so error message occured.

 

--- Mike Frysinger                                           2009-08-04 20:47:50

the busybox build system is known to not regen all objects properly all the time

after a config change, but previous use cases have been fixed.

 

please post the *exact* steps you're running and the exact configs you're using

so i can reproduce and debug the busybox build system.

 

--- Graf Yang                                                2009-08-04 23:26:48

1. cd uclinux-dist

2. make menuconfig, enable Miscellaneous Utilities ---> taskset

3. rm -rf romfs/ images/;make

4. edit config/.config to disable tasket, what the script do is to copy a

previously saved config which without taskset.

5. rm -rf romfs/ images/;make

 

then you will see this error.

 

--- Mike Frysinger                                           2009-08-12 13:26:11

i tried that with trunk and busybox-1.14.3 and it seemed to work for me.  does

it only fail for you with the 2009R1 branch and busybox-1.13.4 ?  if so, i dont

think this is worth fixing.  if it fails in trunk (i.e. latest upstream busybox

sources), then i can certainly look at fixing it.

 

--- Graf Yang                                                2009-08-13 00:17:17

I tried the trunk code according my steps, it really have not this bug.

 

For the branch, it just have this bug, if type 'make' again,

 

...

  Using /opt/bfin/09R1bf533/user/busybox/busybox-1.13.4 as source for busybox

  CC      libbb/appletlib.o

  AR      libbb/lib.a

  LINK    busybox_unstripped

Trying libraries: crypt m

...

 

all the things go smooth.

 

--- Mike Frysinger                                           2009-08-13 00:34:56

ok, thanks for testing.  every release so far has had busybox make problems like

this, so this wont be a regression with previous releases ;).

 

--- Mingquan Pan                                             2009-09-04 00:41:16

However I still see this issue happening with trunk head kernel on some machine

from time to time. Still need to find out the problem.

 

--- Mike Frysinger                                           2009-09-04 00:45:09

you'll have to provide reproducible steps then as the last set work for both

Graf and myself

 

--- Mingquan Pan                                             2009-09-27 23:59:24

I also tried with the steps Graf given above on trunk kernel, and I can see this

bug reproduced.

 

make[4]: Nothing to be done for `post-build'.

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'

/home/test/work/cruise/checkouts/uclinux-dist/tools/cross-fix-root

make[3]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'

  HOSTCC  applets/usage

  HOSTCC  applets/applet_tables

  GEN     include/usage_compressed.h

5030+1 records in

5030+1 records out

10061 bytes (10 kB) copied, 0.00381897 s, 2.6 MB/s

  AR      miscutils/lib.a

  GEN     include/applet_tables.h

  CC      applets/applets.o

  LD      applets/built-in.o

  LINK    busybox_unstripped

Trying libraries: crypt m

Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group

Output of:

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wall -Wshadow

-Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter

-Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations

-Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen

-finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections

-fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1

-falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -Wl,-elf2flt

-mcpu=bf537-0.2 -o busybox_unstripped -Wl,--sort-common -Wl,--start-group

applets/built-in.o archival/lib.a archival/libunarchive/lib.a

console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a

debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a

libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a

modutils/lib.a networking/lib.a networking/libiproute/lib.a

networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a

shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a

archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o

coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o

e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o

libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o

miscutils/built-in.o modutils/built-in.o networking/built-in.o

networking/libiproute/built-in.o networking/udhcp/built-in.o

printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o

shell/built-in.o sysklogd/built-in.o util-linux/built-in.o

util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm

-Wl,--end-group

==========

libbb/lib.a(appletlib.o):(.rodata.applet_main+0x164): undefined reference to

`_taskset_main'

collect2: ld returned 1 exit status

make[6]: *** [busybox_unstripped] Error 1

make[5]: *** [_all] Error 2

make[4]: *** [all] Error 2

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/busybox/build-busybox-1.15.1'

make[3]: *** [all] Error 2

make[3]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/busybox'

make[2]: *** [busybox] Error 2

make[2]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'

make: *** [subdirs] Error 1

 

--- Mingquan Pan                                             2009-09-28 00:13:19

It doesn't show up every time following this step. I see it for the first time I

tried , the second time, it also builds ok.

 

--- Mingquan Pan                                             2009-10-09 00:34:08

I remove and copy over the whole busybox again after compiling taskset each

time. So lower the priority.

 

--- Mike Frysinger                                           2009-10-22 04:09:00

i still cant reproduce.  someone in china will have to look at the machine in

question.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.boot_addr    application/octet-stream    40684    Mingquan Pan

Attachments

Outcomes