LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-16-2012, 02:08 AM   #1
jvilla1983
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Rep: Reputation: 0
Issues compiling GCC v4.7.1 while building LFS for ARM (Raspberry Pi)


Hi,

I'm trying to build the 7.2 stable branch of Linux from Scratch for the Raspberry Pi. I'm having issues with GCC compiling.

After many hours of compiling, I'm left with an error and a message..

checking whether decimal floating point is supported... no
checking whether fixed-point is supported... yes
checking whether to use setjmp/longjmp exceptions... unknown
configure: error: unable to detect exception model
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/7.2/gcc-4.7.1'
make: *** [all] Error 2


Can anyone tell me what's happening? How do I get around this?
 
Old 12-16-2012, 02:43 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You told us this is LFS 7.2, what you did not tell us:

- Is this gcc pass 1 or pass 2 (assuming this is chapter 5....)?
- Is your host made compliant? (post output of the version-check.sh script)
- Did you have other issues before reaching this point?
- Any clues in the log files?
 
Old 12-16-2012, 12:31 PM   #3
jvilla1983
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your reply..


- Is this gcc pass 1 or pass 2 (assuming this is chapter 5....)?

This is pass 1 from chapter 5.

- Is your host made compliant? (post output of the version-check.sh script)

lfs:/mnt/lfs/sources/7.2$ bash version-check.sh
bash, version 4.2.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.23.1
bison (GNU Bison) 2.6.5
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.19
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.7.2
(GNU libc) 2.16
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #285 PREEMPT Tue Nov 20 17:49:40 GMT 2012
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.4
gcc compilation OK


- Did you have other issues before reaching this point?

No, binutils installed perfectly and GCC ran for hours (at least 5) before getting to this point.

- Any clues in the log files?

Not seeing anything unless there are log files that I'm missing. Is there anywhere else I should be looking?
 
Old 12-16-2012, 01:07 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by jvilla1983 View Post
- Is this gcc pass 1 or pass 2 (assuming this is chapter 5....)?

This is pass 1 from chapter 5.

- Is your host made compliant? (post output of the version-check.sh script)

lfs:/mnt/lfs/sources/7.2$ bash version-check.sh
bash, version 4.2.39(1)-release
/bin/sh -> /bin/bash
.
.
.
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.0.4
gcc compilation OK


- Did you have other issues before reaching this point?

No, binutils installed perfectly and GCC ran for hours (at least 5) before getting to this point.

- Any clues in the log files?

Not seeing anything unless there are log files that I'm missing. Is there anywhere else I should be looking?
Some of the host versions are larger then mentioned in the Host System Requirements. I don't know if that could be problematic.

You do not mention which log files you did check, I would start with gcc's config.log

Are you sure you didn't make a typo in this chapter? Easy to find out: Do this chapter from scratch (including removal of gcc and build directory).
 
Old 12-16-2012, 02:12 PM   #5
jvilla1983
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
So, I'm going to back up a bit and let you know what I'm doing.

There is a version of LFS for the Raspberry Pi, it's based on the developer build of 7.3. I'm using that to compile a stable version of LFS.

Being that it's a developer version, I'd really like to use a version from the stable tree. This is why I'm going backwards in what version I have vs the one I'm trying to compile. I didn't think it would matter much because they're the same major release version, 4.7.x. Am I wrong to assume that?
 
Old 12-16-2012, 02:19 PM   #6
jvilla1983
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Some of the host versions are larger then mentioned in the Host System Requirements. I don't know if that could be problematic.

You do not mention which log files you did check, I would start with gcc's config.log

Are you sure you didn't make a typo in this chapter? Easy to find out: Do this chapter from scratch (including removal of gcc and build directory).
You know, I was thinking that might be a problem. What would be a better way of building LFS then?


I did look at the config.log file, this showed some data, not anything out of the ordinary. Unfortunately, I managed to remove the old GCC directory after I did a 'make clean' to start from scratch on GCC. I'll let it run again and bomb out so that I can show you.

Also, I'm positive that I didn't make a mistake in my typing.

I'll be writing back after it bombs again.
 
Old 12-16-2012, 02:32 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by jvilla1983
I did a 'make clean' to start from scratch on GCC.
A lot of actions are done while inside the gcc directory, I'm not 100% sure that make clean is sufficient when starting from the top of that chapter. I would completely remove the gcc-x.y.z and build-gcc dir, untar again and start from there (which is also the method mentioned in the book).
 
Old 12-25-2012, 02:03 PM   #8
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
I have just ordered a pi are you compiling on the pi or on a desktop?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling and installing e17 on Slackware ARM 14 on Raspberry pi, hung on Lua Henesy Slackware 0 11-20-2012 12:28 AM
Building GCC for LFS dbbolton Linux - Software 9 11-27-2009 03:35 AM
using gcc built for arm for building a .c file raphtor Linux - Software 3 11-11-2009 05:51 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration