2009-03-22 20:03:03 tslib woes
Gregory Hassett (UNITED STATES)
Message: 71353
Hello,
I have been struggling for a few days now to get a version of uClinux to build for the blackfin that includes Qt. In an ideal world, I would build Qt as shared libraries.
Currently I am battling tslib. I am using the toolchain and the distribution directly from the subversion trunks (because Qt is not integrated into any released version of uClinux/Blackfin yet).
To get to a clean start state, I use "make menuconfig" to restore all defaults. Then I check to make sure that I am building for the BF 533, and I do "make clean" followed by "make".
This builds the kernel successfully!
I then go back into "make menuconfig" and enable one additional option -- the "build tslib" option in the Library Configuration. At this point, "make" fails while building ncurses (which I assume is included in the default settings). I then go back into "make menuconfig" and de-select the ncurses library, leaving tslib selected. Now, when I make, it fails during the build of tslib, with the errors attached at the end of this post.
Any suggestions or pointers would be HUGELY appreciated --
Thanks,
Greg
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/tslib-1.0/etc'
Making all in src
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/tslib-1.0/src'
if /bin/sh ../libtool --tag=CC --mode=compile bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPLUGIN_DIR=\"/usr/bfin/lib/ts/\" -DTS_CONF=\"/usr/bfin/etc/ts.conf\" -DTSLIB_INTERNAL -fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT ts_load_module.lo -MD -MP -MF ".deps/ts_load_module.Tpo" -c -o ts_load_module.lo ts_load_module.c; \
then mv -f ".deps/ts_load_module.Tpo" ".deps/ts_load_module.Plo"; else rm -f ".deps/ts_load_module.Tpo"; exit 1; fi
Making install in lzo
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include/lzo'
make[7]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include/lzo'
make[7]: Nothing to be done for `install-exec-am'.
test -z "/usr/include/lzo" || mkdir -p -- "/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo"
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzoconf.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzoconf.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzodefs.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzodefs.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzoutil.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzoutil.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo_asm.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo_asm.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1a.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1a.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1b.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1b.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1c.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1c.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1f.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1f.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1x.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1x.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1y.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1y.h'
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo1z.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo1z.h'
bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPLUGIN_DIR=\"/usr/bfin/lib/ts/\" -DTS_CONF=\"/usr/bfin/etc/ts.conf\" -DTSLIB_INTERNAL -fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT ts_load_module.lo -MD -MP -MF .deps/ts_load_module.Tpo -c ts_load_module.c -fPIC -DPIC -o .libs/ts_load_module.o
ts_load_module.c:20:19: error: dlfcn.h: No such file or directory
ts_load_module.c: In function '__ts_load_module':
ts_load_module.c:48: warning: implicit declaration of function 'dlopen'
ts_load_module.c:48: error: 'RTLD_NOW' undeclared (first use in this function)
ts_load_module.c:48: error: (Each undeclared identifier is reported only once
ts_load_module.c:48: error: for each function it appears in.)
ts_load_module.c:48: warning: assignment makes pointer from integer without a cast
ts_load_module.c:52: warning: implicit declaration of function 'dlsym'
ts_load_module.c:52: warning: assignment makes pointer from integer without a cast
ts_load_module.c:54: warning: implicit declaration of function 'dlclose'
make[5]: *** [ts_load_module.lo] Error 1
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/tslib-1.0/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/tslib-1.0'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/tslib-1.0'
make[2]: *** [tslib-1.0] Error 2
make[2]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 '../../../lzo-2.02/include/lzo/lzo2a.h' '/home/ghassett/bfin/uclinux-dist/staging/usr/include/lzo/lzo2a.h'
make[7]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include/lzo'
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include/lzo'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include'
make[7]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include'
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/include'
Making install in src
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/src'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/src'
test -z "/usr/lib" || mkdir -p -- "/home/ghassett/bfin/uclinux-dist/staging/usr/lib"
make[6]: Nothing to be done for `install-data-am'.
/bin/sh ../libtool --mode=install /usr/bin/install -c 'liblzo2.la' '/home/ghassett/bfin/uclinux-dist/staging/usr/lib/liblzo2.la'
/usr/bin/install -c .libs/liblzo2.lai /home/ghassett/bfin/uclinux-dist/staging/usr/lib/liblzo2.la
/usr/bin/install -c .libs/liblzo2.a /home/ghassett/bfin/uclinux-dist/staging/usr/lib/liblzo2.a
bfin-uclinux-ranlib /home/ghassett/bfin/uclinux-dist/staging/usr/lib/liblzo2.a
chmod 644 /home/ghassett/bfin/uclinux-dist/staging/usr/lib/liblzo2.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/src'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/src'
Making install in lzotest
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/lzotest'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/lzotest'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/lzotest'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/lzotest'
Making install in examples
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/examples'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/examples'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/examples'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/examples'
Making install in tests
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/tests'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/tests'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/tests'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/tests'
Making install in minilzo
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/minilzo'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/minilzo'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/minilzo'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02/minilzo'
make[5]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02'
make[6]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02'
make[5]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02'
make[4]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo/build-lzo-2.02'
make post-build
make[4]: Entering directory `/home/ghassett/bfin/uclinux-dist/lib/lzo'
make[4]: Nothing to be done for `post-build'.
make[4]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo'
/home/ghassett/bfin/uclinux-dist/tools/cross-fix-root
make[3]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib/lzo'
make[2]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ghassett/bfin/uclinux-dist/lib'
make: *** [subdirs] Error 1
[ghassett@localhost uclinux-dist]$
QuoteReplyEditDelete
2009-03-23 03:59:47 Re: tslib woes
Mike Frysinger (UNITED STATES)
Message: 71361
tslib will only work when built as FDPIC
QuoteReplyEditDelete
2009-03-23 09:11:16 Re: tslib woes
Gregory Hassett (UNITED STATES)
Message: 71368
Hi Mike...
Does this mean that I need to use "make makeconfig" to change "Blackfin build options --> Binary Format" to FDPIC and rebuild the entire kernel this way, or is is possible to build tslib in FDPIC format while leaving the rest of the build in the default (FLAT) format?
Thanks
Greg
QuoteReplyEditDelete
2009-03-23 14:05:04 Re: tslib woes
Mike Frysinger (UNITED STATES)
Message: 71381
you can mix FLAT and FDPIC applications, but the dist doesnt support that kind of granularity. you'll have to build the whole dist as FDPIC.