LTIB instalation failed

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

LTIB instalation failed

4,541 Views
davidmartinez
Contributor II

hi.

after run ./ltib this is the message  I read in the host_config.log. can anybory help me with this?

thanks !

------------------------------------------------------------------

Processing platform: Host support packages

============================================

using /home/david/ltib/config/platform/host/ltib.preconfig

Processing: fake-provides

===========================

Processing: mkspooflinks

==========================

Processing: distcc

====================

Processing: ccache

====================

Processing: bison

===================

Processing: flex

==================

Processing: texinfo

=====================

Processing: autoconf

======================

Processing: libtool

=====================

Processing: lkc

=================

Processing: patch

===================

Processing: wget-ssl

======================

Build path taken because: directory build, no prebuilt rpm,

Cowardly refusing to clobber existing directory:

/opt/ltib/usr/src/rpm/BUILD/wget-1.14

Remove this by hand if you really want to rebuild this package from scratch

Died at ./ltib line 1492.

traceback:

main::build_host_rpms:1492

  main::host_checks:1554

   main:562

Labels (3)
Tags (3)
19 Replies

2,707 Views
SergioSolis
NXP Employee
NXP Employee

Have you tried removing /opt/ltib/usr/src/rpm/BUILD/wget-1.14 ??

0 Kudos

2,707 Views
davidmartinez
Contributor II

yes, but I obtain teh same message after I run ./ltib an check the file host_config.log

I'm usign ubuntu 14.04.

0 Kudos

2,707 Views
RodBorras
NXP Employee
NXP Employee

Please try this:

a) go to dist/lfs-5.1/wget and edit wget.spec: add --without-ssl to the end of the ./configure line

b) delete /opt/ltib/usr/src/rpm/BUILD/wget-1.14

c) run ./ltib again

0 Kudos

2,707 Views
davidmartinez
Contributor II

I check teh line you said me, but was added (--without-ssl) . en I run again and the same message appear  :smileysad:.

I working with the HHH (Home health hub) this platform use a imx283, is there another diferent tool to the LTIB to create the projects embbeded in the processor?

Thanks

0 Kudos

2,707 Views
RodBorras
NXP Employee
NXP Employee

The "Cowardly refusing to clobber existing directory: /opt/ltib/usr/src/rpm/BUILD/wget-1.14" error will disappear once you have successfully deleted that folder (sudo rm -rf /opt/ltib/usr/src/rpm/BUILD/wget-1.14).

Please post the error you get, after deleting the folder and running LTIB again.

I have recently built the full MX28 LTIB BSP (L2.6.35_1.1.0_130130_source.tar.gz) from scratch, using Ubuntu 14.04.

0 Kudos

2,707 Views
davidmartinez
Contributor II

Captura de pantalla de 2014-05-30 15_03_34.png

this is that I obtain when remove the file and run again the ./ltib , and wait for a long time then is showing the message in the left terminal.

0 Kudos

2,707 Views
RodBorras
NXP Employee
NXP Employee

The log says you used"--with-ssl" instead of "--without-ssl".

Please:

- double check that you actually did put without instead of with, and try it again

- if that does not work, please revert back to the original wget.spec and try this again.

Thanks.

2,707 Views
davidmartinez
Contributor II

hi!

these are the files that I changed (wget.spec) and checked (host_config.log) after run ./ltib. I added the comand you said me but the same issue appear.

wget.spec.pnghost_config.png

0 Kudos

2,707 Views
RodBorras
NXP Employee
NXP Employee

David,

I am sorry that you are struggling with this. One option is to use an older, officially-supported version of Ubuntu.

That said, it worked for me on Ubuntu 14.04 64-bit. But please make sure you have all these packages installed on your host:

# from "Setting_Up_LTIB_host.pdf" included in BSP Docs

echo "Loading Min Packages for LTIB"

echo "LTIB 1/3: needed by LTIB"

  sudo apt-get -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev

  sudo apt-get -y install libdbus-glib-1-dev liborbit2-dev intltool

  sudo apt-get -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool

  sudo apt-get -y install uuid-dev liblzo2-dev

  sudo apt-get -y install tcl dpkg

  sudo apt-get -y install asciidoc texlive-latex-base dblatex xutils-dev

echo "LTIB 2/3: for 64b Ubuntu"

  sudo apt-get -y install ia32-libs libc6-dev-i386 lib32z1

  sudo apt-get -y install

  sudo apt-get -y install

echo "LTIB 3/3: recommended"

  sudo apt-get -y install gparted emacs22-nox openssh-server

  sudo apt-get -y install nfs-common nfs-kernel-server lintian

  sudo apt-get -y install git-core git-doc git-email git-gui gitk

  sudo apt-get -y install diffstat indent tofrodos fakeroot doxygen uboot-mkimage

  sudo apt-get -y install sendmail mailutils meld atftpd sharutils

  sudo apt-get -y install manpages-dev manpages-posix manpages-posix-dev linux-doc

  sudo apt-get -y install vnc4server xvnc4viewer

Regards,

Rod.

0 Kudos

2,707 Views
davidmartinez
Contributor II

hi!

I install all the packages, and run it again, but I got the same error.

:smileysad:

0 Kudos

2,707 Views
admax
Contributor I

Hi!

Neither Installing additional packages, nor removing wget-source won't help. This happens because wget can't compile it's manpage with perl5.18. So you can either install perl5.17, or patch wget sources. I haven't tried downgrading to perl5.17, but tried patching, and it worked for me, so sharing it with you as tiny Bash script for convenience (it fixes wget-ssl.spec along with wget.texi).

Copy-paste command for lazies:

wget -qO- https://gist.github.com/the-admax/684d56db33f2f0792b69/raw/be70219025a11c97037b0e423f961b776cd3d418/... | bash


After it's done its work just run

ltib --hostcf

2,707 Views
markbonneaux
Contributor I

I ran the patch (copy-pated into terminal) and came up with this error:

bash: line 17: pushd: /opt/ltib/pkgs: No such file or directory

bash: line 109: popd: directory stack empty

can't find file to patch at input line 3

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|--- a/dist/lfs-5.1/wget/wget-ssl.spec    2014-07-04 02:49:10.338387548 +0400

|+++ b/dist/lfs-5.1/wget/wget-ssl.spec    2014-07-04 02:48:31.836591528 +0400

--------------------------

File to patch:

Any info?

0 Kudos

2,707 Views
admax
Contributor I

Hello! You must have noticed # some config. Adapt to your env code on line 3: it warns about adaptation of script to your particular environment. It's my bad I neither done any config-confirmation, nor command-line argument acquision, nor input protection...

So you need to fetch the script to some file, change those paths to conform your actual LTIB-installation dir, and then run the modified script.You could also set LTIB_ROOT to relative path (i.e. . and run script from within lrib root directly).

These errors you see are all caused by wrong path to LTIB. Fix it inside script header, and problem should be resolved then.

0 Kudos

2,707 Views
jixbo
Contributor I

I used your patch, but still not compiling;

checking for compress in -lz... (cached) yes

checking for gpg_err_init in -lgpg-error... no

checking for gcry_control in -lgcrypt... no

checking for libgnutls... no

configure: error: --with-ssl was given, but GNUTLS is not available.

error: Bad exit status from /home/jixbo/ltib/tmp/rpm-tmp.5458 (%build)

RPM build errors:

    Bad exit status from /home/jixbo/ltib/tmp/rpm-tmp.5458 (%build)

Build time for wget-ssl: 21 seconds

Failed building wget-ssl

Died at ./ltib line 1492.

traceback:

main::build_host_rpms:1492

  main::host_checks:1554

   main:562

Started: Thu Sep  4 18:19:56 2014

Ended:   Thu Sep  4 18:20:17 2014

Elapsed: 21 seconds

VERSION          : 13.2.1

CVS_VERSION      : $Revision: 1.93 $ (Savannah)

PLATFORM         : host

GNUTARCH         : x86_64

TOOLCHAIN        :

TOOLCHAIN_CFLAGS :

These packages failed to build:

wget-ssl

Build Failed

Any ideas?

It says "--with-ssl was given" but it's not true.ven--with-ssl was given

0 Kudos

2,707 Views
RodBorras
NXP Employee
NXP Employee

Could you please post the full contents of the following file: dist/lfs-5.1/wget/wget.spec

0 Kudos

2,707 Views
jixbo
Contributor I

Sure.

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

Summary         : The GNU utility for retrieving files across the internet

Name            : wget

Version         : 1.9.1

Release         : 1

License         : GPL

Vendor          : Freescale

Packager        : Stuart Hughes

Group           : Applications/Internet

Source          : wget-1.9.1.tar.gz

BuildRoot       : %{_tmppath}/%{name}

Prefix          : %{pfx}

%Description

%{summary}

%Prep

%setup

%Build

./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --host=$CFGHOST --mandir=%{_mandir} --without-ssl

make

%Install

rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean

rm -rf $RPM_BUILD_ROOT

%Files

%defattr(-,root,root)

%{pfx}/*

Thank you in advance.

0 Kudos

2,707 Views
pt
Senior Contributor I

Hi

Please check this link

HalfaGeek

Regards

Pt

0 Kudos

2,707 Views
markbonneaux
Contributor I

totally fine following along until this:

After adding this you need to manually remove the wgest file from BUILD (/opt/freescale/ltib/usr/src/rpm/BUILD) directory then again compile

  • /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-12.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory



inside my BUILD folder I don't have a wgest file, just a wget-1.9.1 folder.  i'm officially lost at this point.

0 Kudos

2,707 Views
pt
Senior Contributor I

spelling mistake.You have to remove wget. I found this blog very useful.That is why I suggested this.

0 Kudos