OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 1:50 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Cross-Building binutils 2.18
PostPosted: Mon Jul 14, 2008 5:10 pm 
Offline

Joined: Sun Jul 13, 2008 8:33 pm
Posts: 4
Location: Amparo, SP, Brazil
Hi,

I'm trying to cross-build binutils but I'm getting the error shown below. I have no idea about bfd but I think it's something related. I'm following "GCC Cross-Compiler".

Thank you.

Code:
$ make all

(...)

make[3]: Entering directory `/home/internet/learning/testx/build-binutils/bfd/doc'
restore=: && backupdir=".am$$" && \
        rm -rf $backupdir && mkdir $backupdir && \
        if (/home/internet/learning/testx/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \
          for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9] bfd.i[0-9][0-9]; do \
            if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
        if /home/internet/learning/testx/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000   -I ../../../binutils-2.18/bfd/doc \
         -o bfd.info `test -f 'bfd.texinfo' || echo '../../../binutils-2.18/bfd/doc/'`bfd.texinfo; \
        then \
          rc=0; \
        else \
          rc=$?; \
          $restore $backupdir/* `echo "./bfd.info" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory `/home/internet/learning/testx/build-binutils/bfd/doc'
Making info in po
make[3]: Entering directory `/home/internet/learning/testx/build-binutils/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/home/internet/learning/testx/build-binutils/bfd/po'
make[3]: Entering directory `/home/internet/learning/testx/build-binutils/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/home/internet/learning/testx/build-binutils/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/home/internet/learning/testx/build-binutils/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/home/internet/learning/testx/build-binutils'
make: *** [all] Error 2
$


Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Mon Jul 14, 2008 5:21 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
dbolgheroni wrote:
WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site.

It would appear that you need to install.. Texinfo.

_________________
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.


Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Mon Jul 14, 2008 5:27 pm 
Offline

Joined: Sun Jul 13, 2008 8:33 pm
Posts: 4
Location: Amparo, SP, Brazil
I thought that too. But it's already installed.

Thank you for your attention.


Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Mon Jul 14, 2008 8:39 pm 
Offline
Member
Member

Joined: Wed Oct 18, 2006 10:43 pm
Posts: 490
Location: Kansas City, KS, USA
dbolgheroni wrote:
I thought that too. But it's already installed.

Thank you for your attention.


I've run into this myself a couple of times. I've never bothered to actually figure out what's going on, I've just always bypassed it.

After you run configure, in your binutils-build directory, run this:

Code:
echo "MAKEINFO = :" >> Makefile


That should fix your problem, but you won't have any of your .info files. Then again, who cares about that? :)


Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Tue Jul 15, 2008 1:38 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
Just to be sure, what does "make -v" give you? It should read something about "GNU Make 3.81"...

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Tue Jul 15, 2008 2:45 am 
Offline
Member
Member

Joined: Tue Oct 17, 2006 10:21 pm
Posts: 38
Location: Hampshire, UK
This is a known binutils bug, it misdetects newer makeinfo versions. Attached patch fixes it, not sure where I got it from, I think it was backported from a development version.


Attachments:
binutils-2.18-makeinfo.diff [1.19 KiB]
Downloaded 151 times
Top
 Profile  
 
 Post subject: Re: Cross-Building binutils 2.18
PostPosted: Tue Jul 15, 2008 11:09 am 
Offline

Joined: Sun Jul 13, 2008 8:33 pm
Posts: 4
Location: Amparo, SP, Brazil
Patched, but now I'm using the snapshot version.

Thank you very much.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 193 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group