LTIB install failure using Debian/Ubuntu Edgy Eft

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

LTIB install failure using Debian/Ubuntu Edgy Eft

10,923 Views
iafg
Contributor IV
I'm still looking into this problem, but thought I'd report it in case someone can assist, or maybe it can help someone else in the future:

Refernce point
-New Ubuntu Edgy Eft install
-Installed build-essentials package
-Installed anything that related to rpm using Synaptic (apt-get)
-Tried both the rpm and CVS of LTIB

When I first run ./ltib to do the initial install I get the following:

Processing platform: host support
===================================
(see logfile: /home/test/dvl/ltib/host_config.log)
using

Processing: rpm-fs
====================
symlink /tmp/rpm-4.0.4.tar.gz, /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz: No such file or directory

Started: Wed Nov 22 11:48:32 2006
Ended: Wed Nov 22 11:48:32 2006
Elapsed: 0 seconds

Build Failed


The file /tmp/rpm-4.0.4.tar.gz exists, but /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz doesn't.
I'll continue trying a few things...

---ok, look at this...

test@iain-laptop:~/dvl/ltib$ ls -l /tmp/rpm-4.0.4.tar.gz
-rwxrwxrwx 1 iain iain 5886675 2006-01-26 11:09 /tmp/rpm-4.0.4.tar.gz

test@iain-laptop:~/dvl/ltib$ ls /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz
ls: /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz: No such file or directory

test@iain-laptop:~/dvl/ltib$ cp /tmp/rpm-4.0.4.tar.gz /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz
cp: cannot create regular file `/tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz': No such file or directory

test@iain-laptop:~/dvl/ltib$ mkdir /tmp/rpm-test/SOURCES

test@iain-laptop:~/dvl/ltib$ cp /tmp/rpm-4.0.4.tar.gz /tmp/rpm-test/SOURCES/rpm-4.0.4.tar.gz

----
So the "SOURCES" directory didn't appear to exist, although there is a directory with "{..}" in it. See Below...

iain@iain-laptop:~/dvl/uClinux-2.0.x/mm$ ls -l /tmp/rpm-test/
total 16
drwxr-xr-x 2 test test 4096 2006-11-22 12:08 {BUILD,RPMS,SOURCES,SPECS,SRPMS}
drwxr-xr-x 2 test test 4096 2006-11-22 11:12 rootfs
drwxr-xr-x 2 test test 4096 2006-11-22 11:12 rpmdb
drwxr-xr-x 2 test test 4096 2006-11-22 12:13 SOURCES

iain@iain-laptop:~/dvl/uClinux-2.0.x/mm$ ls -l /tmp/rpm-test/SPECS
ls: /tmp/rpm-test/SPECS: No such file or directory

---
But as you can see, I can't browse to the SPECS directory.
I'm not familiar with this {} naming convention...which I'm assuming is supposed to be a "set" of directories? and then again maybe this doesn't really exist, and it's just an error in ltib or a script?

(FYI - After manually adding the /tmp/rpm-test/SOURCES directory, the ltib install went past that point and failed again when referring to the /tmprpm-test/BUILD directory.
I'm just going to manually create these directories and go from there...)
Labels (1)
0 Kudos
9 Replies

837 Views
dg1sek
Contributor I

I have similar problems. LTIB build process fails under the latest UBUNTU version installed on a virgin machine, after having installed lots of missing packages manually, I am stuck with the rpm-fs and texinfo packages that are not compiled.

 

The configuration files, make process etc. are very opaque to me, so I am stuck. 

 

Is there a way to get a precompiled LTIB for Ubuntu somewhere?

 

 

0 Kudos

837 Views
cristians
NXP Employee
NXP Employee

Hi,

 

One of the reasons that ltib fails to install on Ubuntu is the rpm package. Ubuntu has a patched version of rpm with a different behavior than what you get in Fedora. Mainly it will refuse to install any package unless you give it "--force-debian" flag. Even then, you might get into other problems.

 

On a clean installation, the error message is:

mkdir: cannot create directory `/opt/freescale': Permission denied

 

However, before that is another message that hints to the problem:

rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.

 

The solution is to remove Ubuntu's rpm package together with rpm-dev and install it from source. Follow instructions from the rpm INSTALL file and then run:

 

$ ./ltib

 

as instructed in the ltib documentation

 

For example:

$ ./configure CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss" --with-external-db --without-lua

$ make

$ make install

 

$ ldconfig       #to update the include paths

 

rpm will be installed in /usr/local/bin so you must update also the sudoers file.

 

Best regards

0 Kudos

837 Views
xulioc
Contributor I

Thank you very much for the hint!

 

Regards,

 

Xulio.

0 Kudos

837 Views
cristians
NXP Employee
NXP Employee

There is one more thing to do, as noted above bytachikoma:

Replace sh with bash. Ubuntu uses for some time dash as the default shell and it doesn't work with ltib.

 

Just do:

$ sudo ln -sf /bin/bash /bin/sh

 

and everything should be OK.

If you still have compilation problems, remove everything installed by ltib and start over.

 

Best regards

 

 

 
0 Kudos

837 Views
iafg
Contributor IV
Ok - Well I guess it's the same problem as before.
For some reason the items in curly braces {} aren't expanding...
This is the output of the end of build_info.

---------

make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8'
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8'
+ mkdir -p /home/iain/dvl/ltib/tmp/texinfo//opt/freescale/rootfs/i686//opt/freescale/ltib/sbin
+ mv /home/iain/dvl/ltib/tmp/texinfo//opt/freescale/rootfs/i686/{/opt/freescale/ltib/usr/bin,/opt/freescale/l
tib/sbin}/install-info
mv: missing destination file operand after `/home/iain/dvl/ltib/tmp/texinfo//opt/freescale/rootfs/i686/{/opt/
freescale/ltib/usr/bin,/opt/freescale/ltib/sbin}/install-info'
Try `mv --help' for more information.
error: Bad exit status from /home/iain/dvl/ltib/tmp/rpm-tmp.5054 (%install)


RPM build errors:
created %_tmppath directory /home/iain/dvl/ltib/tmp
Bad exit status from /home/iain/dvl/ltib/tmp/rpm-tmp.5054 (%install)
Failed building texinfo
Died at ./ltib line 1308.

Started: Thu Nov 23 19:08:50 2006
Ended: Thu Nov 23 19:10:00 2006
Elapsed: 70 seconds
0 Kudos

837 Views
tachikoma
Contributor I
Just remove /bin/sh.

and ln -s /bin/bash /bin/sh

It should be ok.
0 Kudos

837 Views
soulbuzz
Contributor I
I followed the suggested path of removing /bin/sh and creating a symlink
then installing gawk
I get this error after a while, even though libc.so.6 exists in /lib

but /opt/freescale/ltib does not exists

Patch #1 (rpm-4.0.4-python-configure.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /tmp/rpm-tmp.24648
+ umask 022
+ cd /tmp/rpm-soulbuzz/BUILD
+ cd rpm-4.0.4
++ uname -m
+ '[' i686 '!=' x86_64 ']'
+ export LD_ASSUME_KERNEL=2.2.5
+ LD_ASSUME_KERNEL=2.2.5
++ echo /opt/freescale/ltib/usr
++ sed -e 's,/usr$,,'
sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
+ var=/var
error: Bad exit status from /tmp/rpm-tmp.24648 (%build)
0 Kudos

837 Views
xulioc
Contributor I

Commenting

 

#if [ "`uname -m`" != "x86_64" ]
#then
#    export LD_ASSUME_KERNEL=2.2.5
#fi

 

in  dist/lfs-5.1/rpm/rpm-fs.spec

 

worked for me using ubuntu 9.04

 

Good luck!

0 Kudos

837 Views
iafg
Contributor IV
Ltib eventually fails again at a similar command.
At the function f_buildrpms().
There's not much more description than that..

I thought it might have been awk.
The awk that's installed by default with ubuntu is mawk.
I installed gawk using apt-get, but no difference....
0 Kudos