2009-04-03 16:11:26 Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72138
First time the build did finish, but noticed some errors. Turned on a script log and built it again. The result is attached.
Any ideas on the best way to get a clean build?
Thanks.
build.log
QuoteReplyEditDelete
2009-04-03 16:25:42 Re: Unexplained uclinux build errors
Mike Frysinger (UNITED STATES)
Message: 72139
compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory
you need to install development packages (lzo in this case) as documented in the wiki
QuoteReplyEditDelete
2009-04-03 16:29:54 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72140
OK, cool. I'm just following this:
https://docs.blackfin.uclinux.org/doku.php?id=developing_with_blackfin_live_sources
Guess there's more to the process that isn't covered there.
Thanks.
QuoteReplyEditDelete
2009-04-03 16:38:39 Re: Unexplained uclinux build errors
Mike Frysinger (UNITED STATES)
Message: 72141
that isnt an introductory document. we dont cover every single thing you need to do from top to bottom in every document as that would be massive useless duplication.
https://docs.blackfin.uclinux.org/doku.php?id=installing_linux
QuoteReplyEditDelete
2009-04-03 16:49:57 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72142
Yeah. That makes perfect sense.
Went ot the document you referenced. Typed: ':~$ sudo apt-get upgrade'
it asked for a password. Guessed 'blackfin" It worked!
Then typed in:
:~$ sudo apt-get install autoconf automake bash binutils bison bzip2 \
coreutils flex gawk gcc gettext grep iputils-ping libtool libz-dev \
linux-libc-dev liblzo1 liblzo-dev liblzo2-dev liblzo2-2 libncurses5 \
libncurses5-dev m4 make pkg-config rpm texinfo zlib1g zlib1g-dev
All looked OK except these things, which look fishy:
Note, selecting zlib1g-dev instead of libz-dev
and
E:Couldn't find package linux-libc-dev
I want to continue down the line of this document and install the rest of the stuff. Do I need to resolve these issues first, or can I continue? And if these issues are important, how best do I resolve them?
Thanks again.
QuoteReplyEditDelete
2009-04-03 18:18:33 Re: Unexplained uclinux build errors
Mike Frysinger (UNITED STATES)
Message: 72143
not every distro is exactly the same, plus they change over time, so it's kind of impossible to have exact instructions
you can just ignore the linux-libc-dev afaik
QuoteReplyEditDelete
2009-04-06 10:18:00 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72255
OK. I tried another build after installing the development pkgs, and still get the errors shown on the attached log.
Did something go wrong with the development pkg build, other than the error msg I identified earlier?
Thanks.
build2.log
QuoteReplyEditDelete
2009-04-06 10:24:07 Re: Unexplained uclinux build errors
Mike Frysinger (UNITED STATES)
Message: 72256
you still dont have the lzo devel package installed. different distros name it differently, so you'll have to do a search. or disable jffs2 in your build.
QuoteReplyEditDelete
2009-04-06 13:59:31 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72272
Was able to get the liblzo stuff (not sure why it didn't install when lumped with the other stuff, but whatever...)
Build goes much further, now. It errors when it can't find the `/home/uclinux/blackfin-sources/uclinux-dist/romfs/usr/bin/' directory.
Searched around on uclinux.org for TIFF_EXAMPLES, and tiff library, etc. Found a tiff library. Not sure if it applies here, or if it's important, or what exactly to do with it or how to get it, etc.
Below is snippet of the end of the build.
Attached is the build log.
thanks.
make[2]: Entering directory `/home/uclinux/blackfin-sources/uclinux-dist/lib/libtiff'
romfs-inst.sh -d -e CONFIG_FMT_USE_FDPIC_ELF /home/uclinux/blackfin-sources/uclinux-dist/staging/usr/lib/libtiff.so.5 /usr/lib/
romfs-inst.sh -d -e CONFIG_FMT_USE_FDPIC_ELF /home/uclinux/blackfin-sources/uclinux-dist/staging/usr/lib/libtiffxx.so.5 /usr/lib/
romfs-inst.sh -d -e CONFIG_LIB_TIFF_EXAMPLES /home/uclinux/blackfin-sources/uclinux-dist/staging/usr/bin/tiffcp /usr/bin/
cp: target `/home/uclinux/blackfin-sources/uclinux-dist/romfs/usr/bin/' is not a directory: No such file or directory
make[2]: *** [romfs] Error 1
make[2]: Leaving directory `/home/uclinux/blackfin-sources/uclinux-dist/lib/libtiff'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory `/home/uclinux/blackfin-sources/uclinux-dist/lib'
make: *** [romfs.subdirs] Error 1
build3.log
QuoteReplyEditDelete
2009-04-06 14:03:19 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72273
One more thing. I have confirmed that uclinux-dist/romfs/usr does exist but there is no 'bin' directory under that.
thx
QuoteReplyEditDelete
2009-04-06 14:39:42 Re: Unexplained uclinux build errors
Robin Getz (UNITED STATES)
Message: 72274
Jim:
My fault - when I added libtiff - I did it wrong. Just "svn up lib/libtiff", and try again.
-Robin
QuoteReplyEditDelete
2009-04-06 15:53:45 Re: Unexplained uclinux build errors
Jim Carstensen (UNITED STATES)
Message: 72275
Thanks Robin & Mike. Successful build!
Now moving into download territory.
This thread is done.