ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] Re: LTIB of fc9


From: Vijay Nikam
Subject: [Ltib] Re: LTIB of fc9
Date: Sat, 23 Aug 2008 18:13:23 +0530

Hello Stuart,
 
Freescale told me the same that it looks like a problem with bison running on Fedora 9.
They suggessted me to build the bison with a lower optimization level ... to do this I edited the bison.spec and modified the 'make' to 
'make CFLAGS=-0O' (zero / captial_O)
 
then I build bison with the following command ...
./ltib -p bison
 
and then I run ltib again with following command ...
./ltib
the installation was successful and it started to build u-boot, kerenel and filesystem ...
 
At this time (after giving above command) the build was successful ... It was the default config file came with ltib bsp ...
please check the following log;
 
##################################### LOG Start ################################################################

Processing deployment operations
==================================
making filesystem image file
staging directory is /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/rootfs.tmp
removing the boot directory and files
removing man files and directories
removing info files
removing /usr/src directory
removing /usr/include directory
removing static libraries
stripping binaries and libraries
WARN: /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/rootfs.tmp/sbin/ldconfig statically linked

Filesystem stats, including padding:

    Total size            = 10120k
    Total number of files = 372

Your ramdisk exceeds the old default size of 4096k, you may need to
set the command line argument for ramdisk_size in your bootloader
allowing 10% free this gives 11132k .  For instance, for u-boot:


setenv bootargs root=/dev/ram rw ramdisk_size=11132

creating an ext2 compressed filesystem image: rootfs.ext2.gz
creating a uboot ramdisk image: rootfs.ext2.gz.uboot
Image Name:   uboot ext2 ramdisk rootfs
Created:      Sat Aug 23 15:59:50 2008
Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
Data Size:    2834728 Bytes = 2768.29 kB = 2.70 MB
Load Address: 0x00000000
Entry Point:  0x00000000

Started: Sat Aug 23 15:47:50 2008
Ended:   Sat Aug 23 15:59:50 2008
Elapsed: 720 seconds

Build Succeeded

address@hidden ltib-mpc8313erdb-20070824]$

######################################## LOG End #############################################################

Then I did only one change,
./ltib -c
 
selected the '[ ] Configure the kernel' option ... and in that selected the option for NAND drivers ...
but at this time the build was failed because of some not used variable ... I guess it is with ltib source ... please check the following log;
 
########################################## LOG Start #############################################################
 
# configuration written to .config
#
+ cp ./.config /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/config/platform/mpc8313erdb/mpc8313erdb.config.dev
+ '[' . '!=' . ']'
+ '[' '%{kernel_series}' = 2.4 ']'
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' uImage
scripts/kconfig/conf -s arch/powerpc/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
error: Bad exit status from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.16086 (%build)


RPM build errors:
    Bad exit status from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.16086 (%build)
Build time for kernel-2.6.20-mpc8313erdb: 4 seconds

Failed building kernel-2.6.20-mpc8313erdb


f_buildrpms() returned an error, exiting

Started: Sat Aug 23 16:53:12 2008
Ended:   Sat Aug 23 16:53:26 2008
Elapsed: 14 seconds

These packages failed to build:
kernel-2.6.20-mpc8313erdb
Build Failed

Exiting on error or interrupt

############################################# LOG End #########################################################

Could you please take a look at it and let me know what went wrong ... and suggesst some way to proceed ...
 
Kindly please acknowledge ... thank you ...
 
Kind Regards,
Vijay Nikam
 
 
On 8/22/08, Stuart Hughes <address@hidden> wrote:
Hi Vijay,

You'll need to contact Freescale support, it looks like your combination
of flex/bison etc are mismatched.

Regards, Stuart

On Fri, 2008-08-22 at 12:39 +0530, Vijay Nikam wrote:
> Hello,
>
> Thanks ... I fixed it ... but now again stuck up again at lkc ...
>
> Is there any update available for it ... I check at gpp but it has the
> same version of lkc-1.4
>
> Following is the Log ... during processing lkc ...
>
> ##################################### LOG Start
> #########################################################
>
> Processing: lkc
> =================
> 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 /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp'
> --define '_mandir /opt/freescale/ltib/usr/share/man' --define
> '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var'
> -bb  --clean
> --rmsource  /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/dist/lfs-5.1/lkc/lkc.spec
> Executing(%prep): /bin/sh
> -e /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.40399
> + umask 022
> + cd /opt/freescale/ltib/usr/src/rpm/BUILD
> + cd /opt/freescale/ltib/usr/src/rpm/BUILD
> + rm -rf lkc-1.4
> + /bin/gzip -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/lkc-1.4.tar.gz
> + tar -xvvf -
> drwxr-sr-x roman/users       0 2003-06-15 22:51 lkc-1.4/
> -rw-r--r-- roman/users    5167 2003-06-01 03:43 lkc-1.4/Makefile
> -rw-r--r-- roman/users    3805 2003-03-15 22:35
> lkc-1.4/Makefile.kernel
> -rw-r--r-- roman/users     734 2002-10-21 00:31 lkc-1.4/README
> -rw-r--r-- roman/users   10369 2003-06-07 03:30 lkc-1.4/conf.c
> -rw-r--r-- roman/users    8878 2003-06-04 05:42 lkc-1.4/confdata.c
> drwxr-sr-x roman/users       0 2002-10-21 00:35 lkc-1.4/example/
> -rw-r--r-- roman/users     536 2002-10-21 00:15
> lkc-1.4/example/miniconf.rb
> -rw-r--r-- roman/users     804 2002-10-21 00:15
> lkc-1.4/example/query.rb
> -rw-r--r-- roman/users   25007 2003-05-13 00:19 lkc-1.4/expr.c
> -rw-r--r-- roman/users    4890 2003-05-16 23:35 lkc-1.4/expr.h
> -rw-r--r-- roman/users     103 2002-10-20 20:11 lkc-1.4/extconf.rb
> -rw-r--r-- roman/users   40325 2003-06-02 02:15 lkc-1.4/gconf.c
> -rw-r--r-- roman/users   20978 2003-03-15 19:30 lkc-1.4/gconf.glade
> -rw-r--r-- roman/users    6565 2003-03-15 19:30 lkc-1.4/images.c
> -rw-r--r-- roman/users    2770 2002-12-08 21:42 lkc-1.4/kconfig.i
> -rw-r--r-- roman/users     644 2002-10-28 01:52 lkc-1.4/kconfig_load.c
> -rw-r--r-- roman/users    9438 2003-06-01 03:39
> lkc-1.4/lkc-language.txt
> -rw-r--r-- roman/users    2739 2003-05-25 07:48 lkc-1.4/lkc.h
> -rw-r--r-- roman/users    1619 2003-05-26 04:53 lkc-1.4/lkc_proto.h
> -rw-r--r-- roman/users   17302 2003-05-29 02:32 lkc-1.4/mconf.c
> -rw-r--r-- roman/users   10243 2003-06-05 03:17 lkc-1.4/menu.c
> -rw-r--r-- roman/users   30879 2003-06-15 22:51 lkc-1.4/qconf.cc
> -rw-r--r-- roman/users    5218 2003-04-21 05:23 lkc-1.4/qconf.h
> -rw-r--r-- roman/users   15613 2003-06-07 03:30 lkc-1.4/symbol.c
> -rw-r--r-- roman/users    7173 2003-05-26 23:51 lkc-1.4/zconf.l
> -rw-r--r-- roman/users   14637 2003-05-26 23:51 lkc-1.4/zconf.y
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd lkc-1.4
> + echo 'Patch #0 (lkc-1.4-lxdialog.patch):'
> Patch #0 (lkc-1.4-lxdialog.patch):
> + patch -p1 -s
> + echo 'Patch #1 (lkc-1.4-1.patch):'
> Patch #1 (lkc-1.4-1.patch):
> + patch -p1 -s
> + echo 'Patch #2 (lkc-1.4-ncurses.patch):'
> Patch #2 (lkc-1.4-ncurses.patch):
> + patch -p1 -s
> + echo 'Patch #3 (lkc-1.4-help.patch):'
> Patch #3 (lkc-1.4-help.patch):
> + patch -p1 -s
> + echo 'Patch #4 (lkc-1.4-defaults-4.patch):'
> Patch #4 (lkc-1.4-defaults-4.patch):
> + patch -p1 -s
> + echo 'Patch #5 (lkc-1.4-search-5.patch):'
> Patch #5 (lkc-1.4-search-5.patch):
> + patch -p1 -s
> + echo 'Patch #6 (lkc-1.4-datestamp.patch):'
> Patch #6 (lkc-1.4-datestamp.patch):
> + patch -p1 -s
> + exit 0
> Executing(%build): /bin/sh
> -e /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.40399
> + umask 022
> + cd /opt/freescale/ltib/usr/src/rpm/BUILD
> + cd lkc-1.4
> + make -j1 conf mconf
> gcc -O0 -Wall -g -fPIC -c conf.c -o conf.o
> bison -l -b zconf -p zconf zconf.y
> make: *** [zconf.tab.c] Segmentation fault
> error: Bad exit status
> from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.40399 (%build)
>
>
> RPM build errors:
>     Bad exit status
> from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.40399 (%build)
> Build time for lkc: 1 seconds
>
> Failed building lkc
> Died at ./ltib line 1192.
>
> Started: Fri Aug 22 11:35:41 2008
> Ended:   Fri Aug 22 11:38:13 2008
> Elapsed: 152 seconds
>
> These packages failed to build:
> lkc
> Build Failed
> ############################################# LOG End
> #########################################################
>
> Please suggest some way to proceed ...
>
> Kindly please acknowledge ... thank you ...
>
> Kind Regards,
> Vijay Nikam
>
>
> On 8/20/08, Stuart Hughes <address@hidden> wrote:
>         Hi Vijay,
>
>         You need to contact Freescale for support on ISO
>         versions.  However, it
>         looks to me like you need an update to your flex spec file
>         (2.5.4).
>
>         There's a later version in Savannah CVS.
>
>         Regards, Stuart
>
>
>         On Wed, 2008-08-20 at 17:34 +0530, Vijay Nikam wrote:
>         > Hello,
>         >
>         > I am installing LTIB on Fedore Core 9 (fc9) ... the inital
>         > installation was successful ...
>         >
>         > then to complete the installation I need to run './ltib'
>         command but
>         > it fails at the following place;
>         >
>         > ############################### Start
>         > #################################################
>         > make: *** [parse.c] Segmentation fault
>         > error: Bad exit status
>         >
>         from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.93818 (%build)
>         >
>         >
>         > RPM build errors:
>         >     Bad exit status
>         >
>         from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.93818 (%build)
>         > Build time for flex: 1 seconds
>         >
>         > Failed building flex
>         > Died at ./ltib line 1192.
>         >
>         > ############################# End
>         > #####################################################
>         >
>         > following is the complete log
>         >
>         > ############################### LOG Start
>         > ###############################################
>         >
>         > Updating lpp from local packages
>         >
>         > Processing platform: Host support packages
>         > ============================================
>         >
>         using /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/config/platform/host/ltib.preconfig
>         >
>         > Processing: fake-provides
>         > ===========================
>         >
>         > Processing: mkspooflinks
>         > ==========================
>         >
>         > Processing: bison
>         > ===================
>         >
>         > Processing: flex
>         > ==================
>         >
>         > Cowardly refusing to clobber existing directory:
>         >      /opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.4
>         > Remove this by hand if you really want to rebuild this
>         package from
>         > scratch
>         >
>         > scbuild/scdeploy already unpacked package
>         >
>         > 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 /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp'
>         > --define '_mandir /opt/freescale/ltib/usr/share/man'
>         --define
>         > '_sysconfdir /opt/freescale/ltib/etc' --define
>         '_localstatedir /var'
>         > -bc
>         >
>         --short-circuit  /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/dist/lfs-5.1/flex/flex.spec
>         > Executing(%build): /bin/sh
>         >
>         -e /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.93818
>         > + umask 022
>         > + cd /opt/freescale/ltib/usr/src/rpm/BUILD
>         > + cd flex-2.5.4
>         > + ./configure --prefix=/opt/freescale/ltib/usr
>         > loading cache ./config.cache
>         > checking whether ln -s works... (cached) yes
>         > checking for bison... (cached) bison -y
>         > checking for gcc... (cached) gcc
>         > checking whether we are using GNU C... (cached) yes
>         > checking whether gcc accepts -g... (cached) yes
>         > checking for ranlib... (cached) ranlib
>         > checking for a BSD compatible install...
>         (cached) /usr/bin/install -c
>         > checking whether make sets $MAKE... (cached) yes
>         > checking for working const... (cached) yes
>         > checking how to run the C preprocessor... (cached) gcc -E
>         > checking whether cross-compiling... (cached) no
>         > checking for ANSI C header files... (cached) yes
>         > checking for size_t... (cached) yes
>         > checking for ANSI C header files... (cached) yes
>         > checking for string.h... (cached) yes
>         > checking for malloc.h... (cached) yes
>         > checking for sys/types.h... (cached) yes
>         > checking for working alloca.h... (cached) yes
>         > checking for alloca... (cached) yes
>         > updating cache ./config.cache
>         > creating ./config.status
>         > creating Makefile
>         > creating config.h
>         > config.h is unchanged
>         > + make
>         > bison -y -d ./parse.y
>         > make: *** [parse.c] Segmentation fault
>         > error: Bad exit status
>         >
>         from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.93818 (%build)
>         >
>         >
>         > RPM build errors:
>         >     Bad exit status
>         >
>         from /home/messung/ltib_iso/ltib-mpc8313erdb-20070824/tmp/rpm-tmp.93818 (%build)
>         > Build time for flex: 1 seconds
>         >
>         > Failed building flex
>         > Died at ./ltib line 1192.
>         >
>         > Started: Wed Aug 20 17:24:19 2008
>         > Ended:   Wed Aug 20 17:24:24 2008
>         > Elapsed: 5 seconds
>         >
>         > These packages failed to build:
>         > flex
>         > Build Failed
>         >
>         > ############################### LOG End
>         > ###############################################
>         >
>         > Anyone please suggest some way to proceed ... Kindly please
>         > acknowledge ... thank you ...
>         >
>         > Kind Regards,
>         >
>         > Vijay Nikam
>         >
>         >
>         >
>         >
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]