ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Building ltib fails on Ubuntu 09.10 and 10.04 Beta 1 (because


From: Stuart Hughes
Subject: Re: [Ltib] Building ltib fails on Ubuntu 09.10 and 10.04 Beta 1 (because of texinfo)
Date: Thu, 01 Apr 2010 09:35:28 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Franz,

Thanks for keeping me us in the loop.  If you look at your build log
LTIB installs ccache for you so I'm not sure why they're telling you
that you need to do this.

Regards, Stuart

Franz Trierweiler wrote:
> Stuart,
> 
> Thanks for the patch. Meanwhile, I contacted Freescale technical support
> and they sent me a patched ltib file. I tried it and it works fine on
> Ubuntu 10.04 Beta 1 (I only tested with min_profile). They also advised
> me to install ccache but I did not do it. Thus, I suppose that the patch
> is similar to yours. Freescale says that the ultimate PDK (dated
> December 9th) is tested only on Ubuntu 09.04. Maybe this fix will be on
> next Freescale LTIB release.
> 
> If this answer can be of interest to other LTIB users, I (you) can cc it
> to address@hidden <mailto:address@hidden>.
> 
> Regards,
> Franz
> 
> Le 30 mars 2010 à 12:18, Stuart Hughes a écrit :
> 
>> Hi Franz,
>>
>> If you look at your build log it seems that rpm-fs is not actually
>> installed:
>>> Build time for rpm-fs: 561 seconds
>>>
>>> error: cannot open Name index using db3 - No such file or directory (2)
>>> error: cannot open Name index using db3 - No such file or directory (2)
>>> sudo rpm --root / --dbpath /tmp/rpm-franz/rpmdb -e --allmatches --nodeps 
>>> --define '_tmppath /home/franz/ltib/tmp' rpm-fs 2>/dev/null
>>> sudo rpm --root / --dbpath /tmp/rpm-franz/rpmdb --ignorearch -ivh --force 
>>> --nodeps --excludedocs --define '_tmppath /home/franz/ltib/tmp' 
>>> /tmp/rpm-franz/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
>>> 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.
>>> sudo /opt/freescale/ltib/usr/bin/rpm --root / --dbpath 
>>> /opt/freescale/ltib/var/lib/rpm -Uv --justdb --notriggers --noscripts 
>>> --nodeps /tmp/rpm-franz/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm
>>> sudo: /opt/freescale/ltib/usr/bin/rpm: command not found
>>>   
>> The Savannah CVS version is okay and has a fix for this.   You should
>> be able to fix your Freescale BSP by making sure you have this patch
>> (or equivalent) applied:
>> Index: ltib
>> ===================================================================
>> RCS file: /sources/ltib/ltib/ltib,v
>> retrieving revision 1.56
>> retrieving revision 1.57
>> diff -u -b -r1.56 -r1.57
>> --- ltib     11 Nov 2009 16:58:50 -0000      1.56
>> +++ ltib     1 Dec 2009 10:47:58 -0000       1.57
>> @@ -2419,8 +2419,10 @@
>>      $cf->{dodrop}        = 'no';
>>      $cf->{prefix}        = "$cf->{defpfx}/usr";
>>      $cf->{sysconfdir}    = "$cf->{defpfx}/etc";
>> -    chomp($cf->{rpmbuild} = `which rpmbuild 2>/dev/null` || "rpm\n");
>> -    $cf->{rpm}           = "rpm";
>> +    $hrpm                = system('rpm --force-debian 2>/dev/null') == 0 ? 
>> +                                                  'rpm --force-debian' : 
>> 'rpm';
>> +    chomp($cf->{rpmbuild} = `which rpmbuild 2>/dev/null` || "$hrpm\n");
>> +    $cf->{rpm}           = $hrpm;
>>      $cf->{tmppath}       = $cf->{projtmp};
>>      $cf->{enrootn}       = 0;
>> Once you've applied this (or similar).  You need to clean up the
>> failed build and re-install:
>>
>> $ sudo rm -rf /tmp/rpm*
>> $ sudo rm -rf /opt/freescale
>>
>> and then try the install from scratch (e.g re-run ./ltib)
>>
>> If that works, please contact Freescale and let them know about this
>> issue and ask them to include a fix (point them at this list if you like).
>>
>> Regards, Stuart
>>
>> Franz Trierweiler wrote:
>>> Hi Stuart,
>>>
>>> Here is the full log, this time.
>>>
>>> I am going to try the latest CVS and keep you informed.
>>>
>>> Regards,
>>> Franz 
>>>   
>>> ------------------------------------------------------------------------
>>>
>>>
>>> Le 29 mars 2010 à 19:38, Stuart Hughes a écrit :
>>>
>>>> Hi Franz,
>>>>
>>>> Unfortunately I can't tell without the full log (please don't post this
>>>> to the list though, or me just now).  I suspect the "real" failure is
>>>> earlier in the log.
>>>>
>>>> Before you do anything else would you mind downloading the latest CVS
>>>> from here: http://ltib.org/resources-download
>>>>
>>>> Once you've done that try to build a platform (e.g imx27ads).  That
>>>> should work, I have installs running on Ubuntu 9.10.  After you try, can
>>>> you let me know the outcome.
>>>>
>>>> Regards, Stuart
>>>>
>>>> Franz Trierweiler wrote:
>>>>> Hi,
>>>>>
>>>>> Last year, I reported issues about building ltib on Ubuntu 09.10 (it 
>>>>> works fine on 09.04 hopefully) because of texinfo. Since I had to go on 
>>>>> the project, I delayed the investigation on this and went on with my 
>>>>> 09.04 host. In december, Freescale issued a new PDK for the i.MX25 
>>>>> (L2.6.31_09.12.00_SDK_source.tar.gz). I naively thought that this new PDK 
>>>>> would build fine on the newest Ubuntu versions.
>>>>>
>>>>> I know that this mailing list is not for Freescale-specific PDKs but I 
>>>>> would like to get your opinion (In //, I posted the issue on Freescale 
>>>>> official support and I am waiting for an answert). I dug more deeply into 
>>>>> the host_config.log file and found out that texinfo build fails as 
>>>>> follows:
>>>>>
>>>>> + make
>>>>> make  all-recursive
>>>>> make[1]: Entering directory 
>>>>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8'
>>>>> Making all in tools
>>>>> make[2]: Entering directory 
>>>>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8/tools'
>>>>> make[2]: *** No rule to make target `all'.  Stop.
>>>>> make[2]: Leaving directory 
>>>>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8/tools'
>>>>> make[1]: *** [all-recursive] Error 1
>>>>> make[1]: Leaving directory 
>>>>> `/opt/freescale/ltib/usr/src/rpm/BUILD/texinfo-4.8'
>>>>> make: *** [all] Error 2
>>>>> error: Bad exit status from /home/franz/ltib/tmp/rpm-tmp.t1JvcU (%build)
>>>>>
>>>>>
>>>>> RPM build errors:
>>>>>    Bad exit status from /home/franz/ltib/tmp/rpm-tmp.t1JvcU (%build)
>>>>> Build time for texinfo: 66 seconds
>>>>>
>>>>> Failed building texinfo
>>>>> Died at ./ltib line 1380.
>>>>> traceback:
>>>>> main::build_host_rpms:1380
>>>>>  main::host_checks:1435
>>>>>   main:542
>>>>>
>>>>> Well, I tried to search in texinfo Makefile what's wrong but I must admit 
>>>>> that the all-recursive is really obscure to me:
>>>>>
>>>>> all: config.h
>>>>>        $(MAKE) $(AM_MAKEFLAGS) all-recursive
>>>>>
>>>>> Thus make implicitly call make all and then calls all-recursive...
>>>>>
>>>>> In the Makefile, all-recursive appears only in:
>>>>> RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
>>>>>   html-recursive info-recursive install-data-recursive \
>>>>>   install-exec-recursive install-info-recursive \
>>>>>   install-recursive installcheck-recursive installdirs-recursive \
>>>>>   pdf-recursive ps-recursive uninstall-info-recursive \
>>>>>   uninstall-recursive
>>>>>
>>>>> Thus, I believe to understand that make cannot run since it does not find 
>>>>> any "all-recursive:" entry???
>>>>>
>>>>> Does anyone understand this issue (or has already faced this issue)?
>>>>>
>>>>> Regards,
>>>>> Franz
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> LTIB home page: http://ltib.org
>>>>>
>>>>> Ltib mailing list
>>>>> address@hidden
>>>>> http://lists.nongnu.org/mailman/listinfo/ltib
>>>>>
>>>
> 




reply via email to

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