Hello,
I had to reinstall Ubuntu 9.10 on my development machine. I reinstalled the Freescale ltib directories from a backup I made while the machine was running Ubuntu 9.04.
I am working with the iPX27 PDK system.
The ltib build worked OK before, but now I get a segmentation fault while processing flex. From the host_config.log file:
Processing: flex==================rpmbuild --dbpath /opt/freescale/ltib/var/lib/rpm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu i686' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /opt/Freescale/ltib/tmp' --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource /opt/Freescale/ltib/dist/lfs-5.1/flex/flex.specExecuting(%prep): /bin/sh -e /opt/Freescale/ltib/tmp/rpm-tmp.lbkm20+ umask 022+ cd /opt/freescale/ltib/usr/src/rpm/BUILD+ cd /opt/freescale/ltib/usr/src/rpm/BUILD+ rm -rf flex-2.5.4+ /bin/tar -xvvf -+ /bin/gzip -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/flex-2.5.4a.tar.gzdrwxr-xr-x kwzh/staff 0 1997-07-26 21:57 flex-2.5.4/-r--r--r-- kwzh/staff 2042 1995-03-28 12:29 flex-2.5.4/README-r--r--r-- kwzh/staff 46346 1996-09-10 19:10 flex-2.5.4/NEWS-r--r--r-- kwzh/staff 1829 1997-07-26 21:39 flex-2.5.4/COPYING-r--r--r-- kwzh/staff 5723 1993-11-26 18:43 flex-2.5.4/INSTALL-r--r--r-- kwzh/staff 5749 1997-07-26 21:41 flex-2.5.4/FlexLexer.h-r--r--r-- kwzh/staff 419 1995-04-20 15:09 flex-2.5.4/configure.in-r--r--r-- kwzh/staff 729 1995-01-09 14:11 flex-2.5.4/conf.in-rw-r--r-- kwzh/staff 7648 1996-09-10 18:59 flex-2.5.4/Makefile.in-r-xr-xr-x kwzh/staff 192 1995-01-09 14:11 flex-2.5.4/mkskel.sh-r--r--r-- kwzh/staff 33954 1996-09-10 18:58 flex-2.5.4/flex.skl-r--r--r-- kwzh/staff 36162 1997-07-26 21:42 flex-2.5.4/flexdef.h-r--r--r-- kwzh/staff 29 1996-09-10 18:58 flex-2.5.4/version.h-r--r--r-- kwzh/staff 3734 1997-07-26 21:32 flex-2.5.4/ccl.c-r--r--r-- kwzh/staff 25961 1997-07-26 21:32 flex-2.5.4/dfa.c-r--r--r-- kwzh/staff 5679 1997-07-26 21:32 flex-2.5.4/ecs.c-r--r--r-- kwzh/staff 37157 1997-07-26 21:32 flex-2.5.4/gen.c-r--r--r-- kwzh/staff 28785 1997-07-26 21:32 flex-2.5.4/main.c-r--r--r-- kwzh/staff 16308 1997-07-26 21:32 flex-2.5.4/misc.c-r--r--r-- kwzh/staff 17313 1997-07-26 21:32 flex-2.5.4/nfa.c-r--r--r-- kwzh/staff 17808 1997-07-26 21:43 flex-2.5.4/parse.y-r--r--r-- kwzh/staff 15164 1997-07-26 21:44 flex-2.5.4/scan.l-rw-r--r-- kwzh/staff 41864 1996-09-10 19:00 flex-2.5.4/skel.c-r--r--r-- kwzh/staff 6265 1997-07-26 21:32 flex-2.5.4/sym.c-r--r--r-- kwzh/staff 23572 1997-07-26 21:32 flex-2.5.4/tblcmp.c-r--r--r-- kwzh/staff 4306 1997-07-26 21:32 flex-2.5.4/yylex.c-r--r--r-- kwzh/staff 267 1995-09-27 14:48 flex-2.5.4/libmain.c-r--r--r-- kwzh/staff 189 1993-10-02 17:23 flex-2.5.4/libyywrap.cdrwxr-xr-x kwzh/staff 0 1997-07-26 21:57 flex-2.5.4/MISC/-rw-r--r-- kwzh/staff 845 1994-12-03 22:30 flex-2.5.4/MISC/testxxLexer.ldrwxr-xr-x kwzh/staff 0 1993-09-22 00:26 flex-2.5.4/MISC/Atari/-rw-r--r-- kwzh/staff 29474 1990-01-10 11:53 flex-2.5.4/MISC/Atari/Atari.patches-rw-r--r-- kwzh/staff 2688 1995-04-20 15:47 flex-2.5.4/MISC/READMEdrwxr-xr-x kwzh/staff 0 1997-07-26 21:57 flex-2.5.4/MISC/texinfo/-rw-r--r-- kwzh/staff 113286 1997-07-26 21:47 flex-2.5.4/MISC/texinfo/flex.texi-rw-r--r-- kwzh/staff 111995 1997-07-26 21:45 flex-2.5.4/MISC/texinfo/flex.infodrwxr-xr-x kwzh/staff 0 1995-04-03 12:56 flex-2.5.4/MISC/Amiga/-rw------- kwzh/staff 738 1995-04-03 12:49 flex-2.5.4/MISC/Amiga/config.h-rw------- kwzh/staff 2840 1995-04-03 12:49 flex-2.5.4/MISC/Amiga/README.amiga-rw------- kwzh/staff 5503 1995-04-03 12:45 flex-2.5.4/MISC/Amiga/SMakefile-rw------- kwzh/staff 169 1995-04-03 12:33 flex-2.5.4/MISC/Amiga/libmain.ch-rw------- kwzh/staff 159 1995-04-03 12:33 flex-2.5.4/MISC/Amiga/libyywrap.ch-rw------- kwzh/staff 167 1995-04-03 12:33 flex-2.5.4/MISC/Amiga/parse.ych-r--r--r-- kwzh/staff 14043 1993-11-30 13:59 flex-2.5.4/MISC/alloca.cdrwxr-xr-x kwzh/staff 0 1995-03-28 12:25 flex-2.5.4/MISC/Borland/-rw-r--r-- kwzh/staff 3559 1995-03-28 12:25 flex-2.5.4/MISC/Borland/Makefile-rw-r--r-- kwzh/staff 961 1995-03-28 12:25 flex-2.5.4/MISC/Borland/config.h-rw------- kwzh/staff 2127 1995-03-28 12:26 flex-2.5.4/MISC/Borland/NOTESdrwxr-xr-x kwzh/staff 0 1997-07-26 21:57 flex-2.5.4/MISC/MVS/-rw-r--r-- kwzh/staff 815 1990-07-18 13:20 flex-2.5.4/MISC/MVS/MVS.todo-rw-r--r-- kwzh/staff 2253 1990-07-18 13:32 flex-2.5.4/MISC/MVS/MVS.mail-rw-r--r-- kwzh/staff 9997 1990-07-19 08:20 flex-2.5.4/MISC/MVS/MVS.uudecode-rw-r--r-- kwzh/staff 1630 1990-07-17 13:33 flex-2.5.4/MISC/MVS/README-rw-r--r-- kwzh/staff 20861 1990-07-17 12:41 flex-2.5.4/MISC/MVS/diffs-rw-r--r-- kwzh/staff 5022 1990-07-17 13:00 flex-2.5.4/MISC/MVS/fixit.l-rw-r--r-- kwzh/staff 4898 1990-07-17 13:08 flex-2.5.4/MISC/MVS/unfixit.l-rw-r--r-- kwzh/staff 97676 1997-07-26 21:35 flex-2.5.4/MISC/MVS/initscan-mvs.c-rw-r--r-- kwzh/staff 2800 1994-12-04 13:19 flex-2.5.4/MISC/debflex.awkdrwxr-xr-x kwzh/staff 0 1993-09-18 18:30 flex-2.5.4/MISC/fastwc/-rw-r--r-- kwzh/staff 506 1993-07-22 23:36 flex-2.5.4/MISC/fastwc/wc5.l-rw-r--r-- kwzh/staff 418 1993-07-22 23:33 flex-2.5.4/MISC/fastwc/mywc.c-rw-r--r-- kwzh/staff 247 1993-07-22 23:01 flex-2.5.4/MISC/fastwc/wc1.l-rw-r--r-- kwzh/staff 348 1993-07-22 23:01 flex-2.5.4/MISC/fastwc/wc2.l-rw-r--r-- kwzh/staff 514 1993-07-22 23:01 flex-2.5.4/MISC/fastwc/wc3.l-rw-r--r-- kwzh/staff 658 1993-07-22 23:03 flex-2.5.4/MISC/fastwc/wc4.l-rw-r--r-- kwzh/staff 1883 1993-09-16 22:23 flex-2.5.4/MISC/fastwc/READMEdrwxr-xr-x kwzh/staff 0 1995-03-04 18:21 flex-2.5.4/MISC/VMS/-rw-r--r-- kwzh/staff 5243 1995-03-04 18:16 flex-2.5.4/MISC/VMS/build.com-rw-r--r-- kwzh/staff 9756 1995-04-21 13:45 flex-2.5.4/MISC/VMS/descrip.mms-rw-r--r-- kwzh/staff 2078 1995-01-09 16:51 flex-2.5.4/MISC/VMS/mkskel.tpu-rw-r--r-- kwzh/staff 3865 1995-03-04 18:16 flex-2.5.4/MISC/VMS/README.VMS-rw-r--r-- kwzh/staff 4364 1995-03-04 18:21 flex-2.5.4/MISC/VMS/vms-code.c-rw-r--r-- kwzh/staff 789 1995-03-04 18:16 flex-2.5.4/MISC/VMS/vms-conf.hdrwxr-xr-x kwzh/staff 0 1995-01-09 23:10 flex-2.5.4/MISC/Borland.old/-rw-r--r-- kwzh/staff 3808 1994-04-18 18:53 flex-2.5.4/MISC/Borland.old/Turbo-C-rw-r--r-- kwzh/staff 10624 1994-09-29 10:36 flex-2.5.4/MISC/Borland.old/Borland-2.4drwxr-xr-x kwzh/staff 0 1994-12-29 17:43 flex-2.5.4/MISC/MSDOS/-rw-r--r-- kwzh/staff 2109 1993-09-19 18:18 flex-2.5.4/MISC/MSDOS/MSC70.make-rw-r--r-- kwzh/staff 166 1994-11-09 23:01 flex-2.5.4/MISC/MSDOS/configur.bat-rw-r--r-- kwzh/staff 222 1994-11-09 23:01 flex-2.5.4/MISC/MSDOS/djgpp.seddrwxr-xr-x kwzh/staff 0 1995-04-20 15:04 flex-2.5.4/MISC/OS2/-rw-r--r-- kwzh/staff 1764 1995-04-20 15:01 flex-2.5.4/MISC/OS2/Makefile.os2-rw------- kwzh/staff 886 1995-04-20 15:04 flex-2.5.4/MISC/OS2/config.hdrwxr-xr-x kwzh/staff 0 1994-07-25 17:16 flex-2.5.4/MISC/Macintosh/-rw-r--r-- kwzh/staff 5328 1994-07-26 11:59 flex-2.5.4/MISC/Macintosh/alloca.c-rw-r--r-- kwzh/staff 132 1994-07-25 17:16 flex-2.5.4/MISC/Macintosh/alloca.h-rw-r--r-- kwzh/staff 4796 1994-07-26 11:50 flex-2.5.4/MISC/Macintosh/THINK_C_notes-rw-r--r-- kwzh/staff 1722 1994-07-25 17:16 flex-2.5.4/MISC/Macintosh/xmalloc.cdrwxr-xr-x kwzh/staff 0 1995-08-16 14:19 flex-2.5.4/MISC/NT/-rw-r--r-- kwzh/staff 2074 1995-08-16 14:05 flex-2.5.4/MISC/NT/Makefile-rw-r--r-- kwzh/staff 945 1995-03-28 12:22 flex-2.5.4/MISC/NT/config.h-rw------- kwzh/staff 1215 1995-03-06 00:11 flex-2.5.4/MISC/NeXT-rw-r--r-- kwzh/staff 2249 1995-04-20 15:06 flex-2.5.4/MISC/EBCDIC-rw-r--r-- kwzh/staff 35887 1997-07-26 21:32 flex-2.5.4/MISC/parse.c-rw-r--r-- kwzh/staff 509 1996-09-10 19:10 flex-2.5.4/MISC/parse.h-rw-r--r-- kwzh/staff 126310 1996-09-10 19:10 flex-2.5.4/MISC/flex.man-r--r--r-- kwzh/staff 104809 1995-04-24 15:26 flex-2.5.4/flex.1-rwxr-xr-x kwzh/staff 2186 1993-11-28 17:51 flex-2.5.4/install.sh-rwxr-xr-x kwzh/staff 619 1993-11-28 17:51 flex-2.5.4/mkinstalldirs-rwxr-xr-x kwzh/staff 45375 1995-04-20 15:10 flex-2.5.4/configure-r--r--r-- kwzh/staff 110897 1997-07-26 21:32 flex-2.5.4/initscan.c+ STATUS=0+ [ 0 -ne 0 ]+ cd flex-2.5.4+ echo Patch #1 (flex-2.5.4-mandir.patch):Patch #1 (flex-2.5.4-mandir.patch):+ /bin/cat /opt/freescale/ltib/usr/src/rpm/SOURCES/flex-2.5.4-mandir.patch+ /usr/bin/patch -s -p1 --fuzz=0+ exit 0Executing(%build): /bin/sh -e /opt/Freescale/ltib/tmp/rpm-tmp.4cTRRP+ umask 022+ cd /opt/freescale/ltib/usr/src/rpm/BUILD+ cd flex-2.5.4+ ./configure --prefix=/opt/freescale/ltib/usrcreating cache ./config.cachechecking whether ln -s works... yeschecking for bison... bison -ychecking for gcc... gccchecking whether we are using GNU C... yeschecking whether gcc accepts -g... yeschecking for ranlib... ranlibchecking for a BSD compatible install... /usr/bin/install -cchecking whether make sets $MAKE... yeschecking for working const... yeschecking how to run the C preprocessor... gcc -Echecking whether cross-compiling... nochecking for ANSI C header files... yeschecking for size_t... yeschecking for ANSI C header files... (cached) yeschecking for string.h... yeschecking for malloc.h... yeschecking for sys/types.h... yeschecking for working alloca.h... yeschecking for alloca... yesupdating cache ./config.cachecreating ./config.statuscreating Makefilecreating config.h+ makecp ./initscan.c scan.ctouch .bootstrapgcc -c -I. -I. -g -O ccl.cgcc -c -I. -I. -g -O dfa.cgcc -c -I. -I. -g -O ecs.cgcc -c -I. -I. -g -O gen.cgcc -c -I. -I. -g -O main.cgcc -c -I. -I. -g -O misc.cgcc -c -I. -I. -g -O nfa.cbison -y -d ./parse.ymake: *** [parse.c] Segmentation faulterror: Bad exit status from /opt/Freescale/ltib/tmp/rpm-tmp.4cTRRP (%build)RPM build errors: Bad exit status from /opt/Freescale/ltib/tmp/rpm-tmp.4cTRRP (%build)Build time for flex: 8 secondsFailed building flexDied at ./ltib line 1196.Started: Fri Feb 5 19:06:34 2010Ended: Fri Feb 5 19:06:44 2010Elapsed: 10 secondsThese packages failed to build:flex Build Failed
I remember seeing this kind of failure earlier, but the fellow who fixed the problem is no longer available. Anyone know what to do to fix this?
Chuck Kuecker
I found my copy. Seems to have come from LPDK_iMX27_R1/pkgs/linux-2.6.22-pdk27-rel1.patch
which was contained in the freescale.com downloaded file LPDK_IMX27_R1_1.tar.gz
from the LPDK_IMX27_R1_1 download. I think it gets installed when doing the "sh ./install"
step or something like that. Not sure what step it finds its way where, but it ended up
in (LTIB)/rpm/SOURCES/linux-2.6.22-pdk27-rel1.patch which may have been copied from
/opt/freescale/pkgs/linux-2.6.22-pdk27-rel1.patch
Thanks You dear
I need some quick check with the PDK source i tried to do copy ltib.tar.gz file only then
./ltib.
but beacuase of i didnot installed the packges etc it needed some patches from the net but some were not available.
After getting this post i remembered that we can directly paste the required patches to
"/opt/freescale/pkgs " -> So did I and i were able to get what i want.
A quick search and Quick Solution made a Million $ Smile over few faces
--
HTH
Ashish Agarwal
I like to write for myself, some times my writings make Others happy too.
I had to download the pdk package again from Freescale, but i found the missing file. It's building the kernel now.
Thanks for the help!
Chuck Kuecker
There is a fix discussed on http://www.imxdev.org/wiki/index.php?title=All_Boards_LTIB
Search for bison on the page.
I remember doing this, but to copy and paste the fix does not work. As I recall you
have to remove the spaces in that make line for the CFLAGS=-O0 part. There
may have been some other slight tweaking to do too, like if you copy/paste the
dash isn't a real dash to you have to retype it.
Thanks for that link. I am past the bison failure now, and past the sudo password request.
I remember seeing the "Never use <bits/byteswap.h> directly; include <byteswap.h> instead." error mentioned in that thread - if it happens again, now I have a fix for that, too.
My next task after I get a clean build will be to integrate the latest Freescale camera drivers for the PDK.
Well, that relief was short-lived. Now I get a missing file error.
linux-2.6.22-pdk27-rel1.patch is not found at any of the URLs that ltib knows to try, and I can't find it on the web under that filename. Got an email in to Freescale, but if anyone here knows where this can be uploaded, it would speed things up for me.
Chuck Kuecker