[#5186] build kernel with popt fails

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

[#5186] build kernel with popt fails

Submitted By: Vivi Li

Open Date

2009-06-01 06:29:26     Close Date

2009-08-19 21:24:08

Priority:

Medium     Assignee:

Vivi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1_rc6

App binary format:

N/A     

Summary: build kernel with popt fails

Details:

 

Build kernel with lib pam fails for both flat and fdpic.

 

Bellow is the log:

--

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../popt-1.13 -I. -I../popt-1.13  -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist  -mcpu=bf537-0.2  -pipe -Wall -g -O2      -mcpu=bf537-0.2 -c ../popt-1.13/test1.c

/bin/sh ./libtool --tag=CC   --mode=link bfin-uclinux-gcc  -pipe -Wall -g -O2      -mcpu=bf537-0.2  -Wl,-elf2flt    -mcpu=bf537-0.2 -o test1 test1.o libpopt.la

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -Wl,-elf2flt -mcpu=bf537-0.2 -o test1 test1.o  ./.libs/libpopt.a

./.libs/libpopt.a(poptint.o): In function `strdup_locale_from_utf8':

../popt-1.13/poptint.c:23: undefined reference to `_libiconv_open'

../popt-1.13/poptint.c:35: undefined reference to `_libiconv'

../popt-1.13/poptint.c:43: undefined reference to `_libiconv'

../popt-1.13/poptint.c:78: undefined reference to `_libiconv_close'

collect2: ld returned 1 exit status

make[5]: *** [test1] Error 1

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/popt/build-popt-1.13'

--

 

Follow-ups

 

--- Robin Getz                                               2009-06-01 14:24:17

Vivi:

 

popt works fine for me.

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> make lib/popt_only

make[1]: Entering directory `/home/rgetz/blackfin/trunk/uClinux-dist/lib'

touch popt/.sgbuilt_lib && make -C popt -j4

make[2]: Entering directory `/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt'

make -C build-popt-1.13 install

DESTDIR=/home/rgetz/blackfin/trunk/uClinux-dist/staging

make[3]: Entering directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

Making install in po

make[4]: Entering directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13/po'

Makefile:214: target `../../popt-1.13/po/nb.po' given more than once in the

same rule.

if test "popt" = "gettext-tools"; then \

          /bin/mkdir -p

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/share/gettext/po; \

          for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed

en@quot.header en@boldquot.header insert-header.sin Rules-quot 

Makevars.template; do \

            /usr/bin/install -c -m 644 ../../popt-1.13/po/$file \

                          

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/share/gettext/po/$file; \

          done; \

          for file in Makevars; do \

            rm -f

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/share/gettext/po/$file; \

          done; \

        else \

          : ; \

        fi

make[4]: Leaving directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13/po'

make[4]: Entering directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

make[5]: Entering directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

make[5]: Nothing to be done for `install-exec-am'.

test -z "/usr/include" || /bin/mkdir -p

"/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/include"

test -z "/usr/share/man/man3" || /bin/mkdir -p

"/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/share/man/man3"

/usr/bin/install -c -m 644 '../popt-1.13/popt.h'

'/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/include/popt.h'

test -z "/usr/lib" || /bin/mkdir -p

"/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib"

/usr/bin/install -c -m 644 '../popt-1.13/popt.3'

'/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/share/man/man3/popt.3'

/bin/sh ./libtool --mode=install /usr/bin/install -c  'libpopt.la'

'/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libpopt.la'

/usr/bin/install -c .libs/libpopt.lai

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libpopt.la

/usr/bin/install -c .libs/libpopt.a

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libpopt.a

chmod 644 /home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libpopt.a

bfin-uclinux-ranlib

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libpopt.a

libtool: install: warning: remember to run `libtool --finish /usr/lib'

make[5]: Leaving directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

make[4]: Leaving directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

make[3]: Leaving directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt/build-popt-1.13'

make[2]: Leaving directory `/home/rgetz/blackfin/trunk/uClinux-dist/lib/popt'

make[1]: Leaving directory `/home/rgetz/blackfin/trunk/uClinux-dist/lib'

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> find ./staging/ -name

"*pop*.a"

./staging/usr/lib/libpopt.a

 

 

--- Sonic Zhang                                              2009-06-03 04:46:15

I also can't replicate.

 

--- Vivi Li                                                  2009-08-20 02:24:42

Yeah, no such bug now, so close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.user.popt    application/octet-stream    45519    Vivi Li

Attachments

Outcomes