LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   pass2 build of binutils fails (https://www.linuxquestions.org/questions/linux-from-scratch-13/pass2-build-of-binutils-fails-896302/)

che123 08-09-2011 02:56 AM

pass2 build of binutils fails
 
hi,

the build of binutils-2.21 (chapter 5.9 "Binutils Pass 2") fails
with an error, here is an excerpt from the file bfd/config.log:

...
configure:13252: result: 0
configure:13263: checking for type equivalent to int8_t
configure:13267: error: no 8-bit type, please report a bug
...

my host system: i'm running ubuntu 11.04 (32bit) on a virtual machine.

any ideas?

thanks in advance,
christian

weibullguy 08-09-2011 06:27 AM

When you Googled this on your own, did you run across this mailing list post --> http://www.mail-archive.com/lfs-supp.../msg12056.html which shows the same error in section 5.9 and a good example of how to ask for help? And did you read the thread far enough to get to this post --> http://www.mail-archive.com/lfs-supp...msg12068.html? Did you try that and what were the results?

che123 08-10-2011 01:31 AM

thanks,

since i could not find a real answer and after several unsuccessful attempts with different distributions (suse, natty, etc) i decided to start over with the lfs live cd...
and up to the gettext module it built, but:

lfs:/mnt/lfs/sources/gettext-0.18.1.1$ make -C gnulib-lib
make: *** gnulib-lib: No such file or directory. Stop.

there is only a gnulib-local dir, so i built this, the output is

lfs:/mnt/lfs/sources/gettext-0.18.1.1$ make -C gnulib-local
make: Entering directory `/mnt/lfs/sources/gettext-0.18.1.1/gnulib-local'
make: Nothing to be done for `all'.
make: Leaving directory `/mnt/lfs/sources/gettext-0.18.1.1/gnulib-local'

however, make src msgfmt doesnt work either, there is neither a src nor a msgfmt directory, hmm...
i downloaded again but the files look the same

OLD:
lfs:/mnt/lfs/sources$ l gettext-0.18.1.1.tar.gz
-rw-r--r-- 1 lfs lfs 15139737 Jun 6 2010 gettext-0.18.1.1.tar.gz
lfs:/mnt/lfs/sources$ rm gettext-0.18.1.1.tar.gz
wget http://ftp.gnu.org/pub/gnu/gettext/g....18.1.1.tar.gz

NEW:
lfs:/mnt/lfs/sources$ l gettext-0.18.1.1.tar.gz
-rw-r--r-- 1 lfs lfs 15139737 Jun 6 2010 gettext-0.18.1.1.tar.gz

so i skipped that module, next (grep) built successfully, does it make sense to keep on building?

druuna 08-10-2011 06:39 AM

Hi,

I'm assuming you are trying to build stable LFS 6.8 and are building chapter 5 (please provide this information).

Quote:

Originally Posted by che123
so i skipped that module, next (grep) built successfully, does it make sense to keep on building?

Chapter 5 is done to build a temporary environment that is needed to do chapter 6. This means that all of chapter 5 must be done. If you don't you end up with an environment that is not suitable to build chapter 6.

If I look at the output you posted I do miss a directory you should be standing in: gettext-tools

Code:

lfs:/mnt/lfs/sources/gettext-0.18.1.1$ make -C gnulib-lib
vs
lfs:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ make -C gnulib-lib

Did you forget this step??:
Code:

cd gettext-tools
Hope this helps.

che123 08-10-2011 06:55 AM

hi Druuna,

correct, i'm building stable LFS 6.8 and i'm building chapter 5.

and i am quite embarrassed... yes, I forgot this step, and after
performing this step, it works fine!

thanks a lot!

druuna 08-10-2011 06:57 AM

You're welcome :)


All times are GMT -5. The time now is 01:41 AM.