Message Edited by Nabendu on 2008-05-16 12:21 PM
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
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
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
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.
regards
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: )