[#5614] With latest toolchain in trunk, fail to build some apps and libs at fork

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

[#5614] With latest toolchain in trunk, fail to build some apps and libs at fork

Submitted By: Vivi Li

Open Date

2009-10-15 02:19:43     Close Date

2009-11-08 23:14:51

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-trunk-svn3655

App binary format:

N/A     

Summary: With latest toolchain in trunk, fail to build some apps and libs at fork

Details:

 

With latest toolchain in trunk, as warning of fork has become error, we fail to build following apps and libs: bluez-utils/lmbench/mpd/openobex/alsa.

 

App bluez-utils (From build_bluetooth_kernel_log):

--

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -D_FORTIFY_SOURCE=2 -Wl,-elf2flt -mcpu=bf537-0.2 -o pand main.o bnep.o sdp.o  -L/home/test/work/cruise/checkouts/uclinux-dist/staging/lib -lbluetooth^M

main.o: In function `do_listen':^M

../../bluez-utils-2.25/pand/main.c:191: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [pand] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/bluez-utils/build-bluez-utils-2.25/pand'^M

--

 

Lib openobex (From build_irda_kernel_log):

--

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wl,-elf2flt -mcpu=bf537-0.2 -o docproc docproc.o   ^M

docproc.o: In function `main':^M

../../openobex-1.3.0/doc/docproc.c:101: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [docproc] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/openobex/build-openobex-1.3.0/doc'^M

make[4]: *** [install-recursive] Error 1^M

--

 

Lib alsa (From build_linphone_ad1836_kernel_log):

--

../src/.libs/libasound.so: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [aserver] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/alsa-lib/build-alsa-lib-1.0.18/aserver'^M

--

 

App lmbench (From build_lmbench_kernel_log):

--

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/lmbench3/src/lat_sem.c:84: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[6]: *** [../bin/blackfin-Linux/lat_sem] Error 1^M

make[6]: *** Waiting for unfinished jobs....^M

make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/lmbench3/src'^M

--

 

App mpd (from build_netaudio_kernel_log):

--

../../mpd-0.13.2/src/decode.c:409: undefined reference to `_fork'^M

mpd-directory.o: In function `updateInit':^M

../.^M

./mpd-0.13.2/src/directory.c:175: undefined reference to `_fork'^M

mpd-main.o: In function `daemonize':^M

../../mpd-0.13.2/src/main.c:322: undefined reference to checking for suffix of object files... `_fork'^M

../../mpd-0.13.2/src/main.c:338: undefined reference to `_fork^M

'^M

mpd-player.o: In function `playerInit':^M

../../mpd-0.13.2/src/player.c:118: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

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

make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mpd/build-mpd-0.13.2/src'^M

--

 

Follow-ups

 

--- Vivi Li                                                  2009-10-19 05:47:46

App samba:

--

modules/vfs_default.o: In function `vfswrap_ntimes':

../modules/vfs_default.c:631: warning: the use of LEGACY `utimes' is

discouraged, use `utime'

lib/system.o: In function `sys_fork':

../lib/system.c:1325: undefined reference to `_fork'

lib/sock_exec.o: In function `sock_exec':

../lib/sock_exec.c:105: undefined reference to `_fork'

collect2: ld returned 1 exit status

make[4]: *** [bin/smbd] Error 1

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build'

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

--

 

--- Robin Getz                                               2009-10-29 09:52:55

I think this is a dup of 5214 - where we have been keeping track of all the

missing forks...

 

http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=5214

 

-Robin

 

--- Graf Yang                                                2009-11-04 02:56:14

Fixed the compile error. But some of them may can not work proper.

Other "fork" issues please add to bug #5214.

 

--- Vivi Li                                                  2009-11-08 23:14:51

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes