Tlib build for 8349 -MDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tlib build for 8349 -MDS

13,826 Views
Nabendu
Contributor III
I had downloaded MPC8349EA_MDS_K26_20061221-LTIB.iso for Freescale 8349 board.
 
After successful running of install script. I got failure when I ran ./ltib for first time . what may be the problem,
It is indicating error while building flex..First time ./ltib sript run fails  whether  flex is installed or not on host.
 
last few lines of log-----------------------------------------------------------------.>
cp ./initscan.c scan.c
touch .bootstrap
gcc -c -I. -I. -g -O ccl.c
gcc -c -I. -I. -g -O dfa.c
gcc -c -I. -I. -g -O ecs.c
gcc -c -I. -I. -g -O gen.c
gcc -c -I. -I. -g -O main.c
gcc -c -I. -I. -g -O misc.c
gcc -c -I. -I. -g -O nfa.c
bison -y -d ./parse.y
make: *** [parse.c] Segmentation fault
error: Bad exit status from /home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.81449 (%build)

RPM build errors:
    Bad exit status from /home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.81449 (%build)
Build time for flex: 13 seconds
Failed building flex
Died at ./ltib line 1395.
Started: Fri May 16 00:56:58 2008
Ended:   Fri May 16 01:29:53 2008
Elapsed: 1975 seconds
These packages failed to build:
flex
Build Failed
-------------------------------------------------------------------------------------------------------------->
 
 
full hostlog file attached.
My host platform : x86, Suse 10.3
 
If anyone can help, it will be very helpful
 
Thanks,
Nabendu



Message Edited by Nabendu on 2008-05-16 12:21 PM

 

host_log.txt

Message Edited by t.dowe on 2009-10-15 01:16 PM
Labels (1)
0 Kudos
Reply
10 Replies

1,616 Views
fsl_linux_spt
Contributor III
This is actually a problem with bison running on SuSE 10.3.
A work around is to build the bison package with a lower optimization level.
 
To do this you can edit the ltib_install_dir/dist/lfs-5.1/bison/bison.spec and change the %Build section.
You need to change the "make" command to "make CFLAGS=-O0"
(That is -zero/captital_O)
 
Then build bison
./ltib -p bison
 
Then run ltib again:
./ltib
 
 
0 Kudos
Reply

1,616 Views
Nabendu
Contributor III

Thanks for your reply.
I changed make to make CFLAGS=-O0       ........  optimization 0..
and then ./ltib -p bison
but the build also giving error..

---------------tail log from host.log-------------------------->
Executing(%clean): /bin/sh -e /home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.47296
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd bison-1.875
+ rm -rf /home/nabendu/ltib-mpc8349emds-20061221/tmp/bison
+ exit 0
Executing(--clean): /bin/sh -e /home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.47296
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf bison-1.875
+ exit 0
Build time for bison: 97 seconds

sudo /opt/freescale/ltib/usr/bin/rpm --dbpath /opt/freescale/ltib/var/lib/rpm -e --allmatches --nodeps bison 2>/dev/null
sudo /opt/freescale/ltib/usr/bin/rpm --dbpath /opt/freescale/ltib/var/lib/rpm --prefix / --ignorearch -ivh --force --nodeps --excludedocs /opt/freescale/ltib/usr/src/rpm/RPMS/i686/bison-1.875-1.i686.rpm
Preparing...                ##################################################
bison                       ##################################################
-------------------------------------------------------------------------------------------------------------------------->
in shell------------------------------------------------------------------------------------------------------->
sudo -u nabendu ./ltib -p bison nbm123

Installing host support packages.

This only needs to be done once per host, but may take up to
an hour to complete ...

If an error occurs, a log file with the full output may be found in:
/home/nabendu/ltib-mpc8349emds-20061221/host_config.log

spoofing is not set up at ./ltib line 2283.

Started: Sat May 17 19:39:06 2008
Ended:   Sat May 17 19:55:55 2008
Elapsed: 1009 seconds

Build Failed

Exiting on error or interrupt                  
------------------------------------------------------------------------------------------------->
my current host side packages are
perl        5.8.8
glibc         2.6.18
glibc-header    none
glibc-devel -    2.6.18
binutils    2.17.50
libstdc        4.2.1
libstdc-devel    4.2
gcc        4.2.1
gcc++        4.2.1
sudo        working
zlib        working
zlib-devel    working
rpm        4.4.2
rpm-build    4.4.2
patch        2.5.9       
wget        1.10.2
ncurses        5.6-41
ncurses-devel    5.6-41
m4        1.4.10
bison        2.3
flex        2.5.33
texinfo        4.9-15
gettext        0.16-47
autoconf    2.61-47
libtool        1.5.24
--------------------------------------------------------------------
I also tried with bison v1.875. which also giving the same error.

what is this spoofing?how does it set up?

Any suggesion...

Regards,
Nabendu

 

host_config.txt

Message Edited by t.dowe on 2009-10-15 01:14 PM
0 Kudos
Reply

1,616 Views
SteveJoiner
Contributor I
I am also having this same problem with the MCF547x/8x BSP on Fedora 9.  Has anyone made any progress on a fix?
0 Kudos
Reply

1,616 Views
AutumnCowboy
Contributor I
Hi All,
Ran into this problem when installing the MX27 LTIB on Fedora 9 (fully updated to 28-NOV-2008) and mannaged to fix it by:
 
  - DELETING the LTIB install (rm - rf /home/ltib-blah-blah)
  - reInstalling LTIB using the "./install" script
  - BEFORE running "./ltib" for the first time, altering "dist/lfs-5.1/bison/bison.spec" (as above = thx)
  - i.e. Change "make" to "make CFLAGS=-O0" (that Ohhhh and Zero btw) in the %Build section of the makefile
  - NOW run "./ltib" for the first time
  - Success!
 
Please note that if you don't reinstall ltib first but instead try to only rebuild bison with "./ltib -p bison" (as above) then it will look like it all worked but "./ltib -m config" will fail.
 
--Leon


Message Edited by AutumnCowboy on 2008-11-28 02:55 PM
0 Kudos
Reply

1,616 Views
admin
Specialist II

Hi:

I use OpenSUSE 11.1 and I'm trying install the LTIB for my board Freescale Lite5200b.

I had the same problem, I followed the instructions that you give us:

  1º- DELETING the LTIB install (rm - rf /home/ltib-blah-blah)

  2º-  reInstalling LTIB using the "./install" script

  3º-  BEFORE running "./ltib" for the first time, altering "dist/lfs-5.1/bison/bison.spec" (as above = thx) i.e. Change "make" to "make CFLAGS=-O0" (that Ohhhh and Zero btw) in the %Build section

  4º- NOW run "./ltib" for the first time

 

But I have another problem:

  NOTE: If I type ./ltib -p bison instead of ./ltib. I get the same errors that Nabendu:

 

           spoofing is not set up at ./ltib line 2283.

           Started: Sat May 17 19:39:06 2008
           Ended:   Sat May 17 19:55:55 2008
           Elapsed: 1009 seconds

           Build Failed

           Exiting on error or interrupt      
        

 

So I followed the solution above.
In this case I get the following error....this is the tail of host_config.log file:
 
+ make CFLAGS=O0
make  all-recursive
make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875'
Making all in config
make[2]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/config'
Making all in po
make[2]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/po'
Making all in lib
make[2]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/lib'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../lib    O0 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
          -c -o main.o `test -f 'main.c' || echo './'`main.c; \
        then mv ".deps/main.Tpo" ".deps/main.Po"; \
        else rm -f ".deps/main.Tpo"; exit 1; \
        fi
gcc: O0: No such file or directory
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/bison-1.875'
make: *** [all] Error 2
error: Bad exit status from /home/tito/LTIB/ltib-mpc5200-20070203/tmp/rpm-tmp.74920 (%build)


RPM build errors:
    Bad exit status from /home/tito/LTIB/ltib-mpc5200-20070203/tmp/rpm-tmp.74920 (%build)
Build time for bison: 14 seconds

Failed building bison
Died at ./ltib line 1396.

Started: Fri May  8 17:25:45 2009
Ended:   Fri May  8 17:30:33 2009
Elapsed: 288 seconds

These packages failed to build:
bison
Build Failed

 
NOTE 2: I modified the  dist/lfs-5.1/bison/bison.spec file:
         "make CFLAGS=-O0" (-capital O/zero)It's rigth???
 
Please a need help :smileyhappy:
Thanks
 
 
 
0 Kudos
Reply

1,616 Views
admin
Specialist II

Hi again, I found the error, was a stupid mistake, I wrote CFLAGS=O0 instead CFLAGS=-O0.

 

But the problem now is that I get an error in building mtd-utils package, this is the host_config.log tail:

 

....

....

-rw-r--r-- seh/users       247 2003-10-13 22:56 mtd/include/linux/suspend.h
-rw-r--r-- seh/users      8281 2001-09-19 00:00 mtd/include/linux/jffs.h
-rw-r--r-- seh/users      2822 2005-11-08 02:02 mtd/include/linux/rslib.h
-rw-r--r-- seh/users      5803 2005-11-30 02:02 mtd/include/linux/jffs2_fs_sb.h
-rw-r--r-- seh/users     30981 2005-11-08 02:02 mtd/include/linux/zlib.h
-rw-r--r-- seh/users      1485 2005-11-08 02:02 mtd/include/linux/jffs2_fs_i.h
-rw-r--r-- seh/users      3626 2005-11-08 02:02 mtd/include/linux/rbtree-24.h
-rw-r--r-- seh/users      3244 2002-03-03 21:12 mtd/include/linux/zutil.h
-rw-r--r-- seh/users       662 2005-11-08 02:02 mtd/Makefile

 + STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mtd
+ echo 'Patch #1 (mtd-utils-20060302-cf-byteswap_h-1.patch):'
Patch #1 (mtd-utils-20060302-cf-byteswap_h-1.patch):
+ patch -p1 -s
+ echo 'Patch #2 (mtd-utils-20060302-find_fs_entry.patch):'
Patch #2 (mtd-utils-20060302-find_fs_entry.patch):
+ patch -p1 -s
+ echo 'Patch #3 (mtd-utils-20060302-eraseall.patch):'
Patch #3 (mtd-utils-20060302-eraseall.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /home/tito/LTIB/ltib-mpc5200-20070203/tmp/rpm-tmp.89903
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd mtd
+ make -C util
make: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/mtd/util'
gcc -I../include -O2 -Wall -g -c -o ftl_format.o ftl_format.c -g -Wp,-MD,.ftl_format.c.dep

 In file included from /usr/include/endian.h:61,
                 from /usr/include/sys/types.h:217,
                 from ftl_format.c:38:
../include/bits/byteswap.h:21:3: error: #error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
make: *** [ftl_format.o] Error 1
make: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/mtd/util'
error: Bad exit status from /home/tito/LTIB/ltib-mpc5200-20070203/tmp/rpm-tmp.89903 (%build)


RPM build errors:
    Bad exit status from /home/tito/LTIB/ltib-mpc5200-20070203/tmp/rpm-tmp.89903 (%build)
Build time for mtd-utils: 0 seconds

Failed building mtd-utils
Died at ./ltib line 1396.

Started: Mon May 11 09:38:33 2009
Ended:   Mon May 11 09:46:26 2009
Elapsed: 473 seconds

These packages failed to build:
mtd-utils
Build Failed

0 Kudos
Reply

1,616 Views
admin
Specialist II

Hi, I fix the problem and I already have the LTIB for my Lite5220b installed on my OpenSUSE 11.1.

 

I simply edit the file

../include/bits/byteswap.h:21:3: error: #error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

 

and I did this. :smileyhappy:

 

regards
0 Kudos
Reply

1,616 Views
Val_rqt
Contributor II

Hi,

I had the same problem under Ubuntu 9.04. I solved it by modifying the lines 46, 47 and 48 of the "/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch"  file.

 

+#if !defined _BYTESWAP_H && !defined _NETINET_IN_H

+# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

+#endif

 

by

 

+//#if !defined _BYTESWAP_H && !defined _NETINET_IN_H

+//# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

+//#endif

 

I do this after the install (sh ./install) and before the first LTIB launch (./ltib)

 

(very cheap solution, but ... it works :smileyhappy: )

Message Edited by _Val_ on 2009-05-19 09:09 AM
0 Kudos
Reply

1,616 Views
Val_rqt
Contributor II
I made a mistake, I do this after the fist LTIB launch (and ... bug:/).
And before the second LTIB lauch, I delete the  "/opt/freescale/ltib/usr/src/rpm/BUILD/mtd" directory too.
 
Summary
  1. I launch LTIB
  2. Bug
  3. I change the "/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch" file
  4. I delete the "/opt/freescale/ltib/usr/src/rpm/BUILD/mtd" directory
  5. I re-launch LTIB
  6. It works :smileyhappy:
 
 
0 Kudos
Reply

1,616 Views
Markus_MSC
Contributor I
Hi all,

I have the same problem as Nabendo, but I want to install the ltib for mpc8360. I also use Susu10.3.

I tried the changes (optimization level). I could do ./ltib -p bison without errors. But when trying to configure ./ltib --configure, the same error occurs.
Is there another possibility to fix this problem?

Is it CFLAGS -[capital o][zero] or the other way?

See my actual file:

%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : A GNU general-purpose parser generator
Name            : bison
Version         : 1.875
Release         : 1
License         : GPL
Vendor          : Freescale
Packager        : Stuart Hughes
Group           : Development/Tools
Source          : bison-1.875.tar.bz2
Patch0          : bison-1.875-attribute.patch
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup
%patch0 -p1

%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --mandir=%{_mandir}
make CFLAGS=-O0

%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean
rm -rf $RPM_BUILD_ROOT


%Files
%defattr(-,root,root)
%{pfx}/*

Markus


Message Edited by Markus_MSC on 2008-07-04 11:31 AM
0 Kudos
Reply