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 03-01-2010, 10:44 PM   #1
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Problem with tzselect in step 6.9.1


I compiled glibc with optimization -march=athlon-xp, and it bombed out. So, I tried it with the written compiler flags and everything SEEMED to go OK, but, when I ran tzselect, I get this:

/usr/bin/tzselect: command substitution: line 66: syntax error near unexpected token `)'
/usr/bin/tzselect: command substitution: line 66: `echo 1 | (select x in x; do break; done) 2>/dev/null)'
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#? 11
/usr/bin/tzselect: command substitution: line 103: syntax error near unexpected token `)'
/usr/bin/tzselect: command substitution: line 103: `expr "$continent" : '\([^ ]*\)')'

You can make this change permanent for yourself by appending the line
TZ=''; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:


Can anyone point me in the right direction on this? TIA
 
Old 03-02-2010, 04:23 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
After the first failed compilation, did you start over with a fresh untarred source? Did you recreate the build-directory? And which LFS-version are you using?
Which host are you using?

Last edited by crts; 03-02-2010 at 04:25 AM.
 
Old 03-02-2010, 08:04 AM   #3
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
I emptied the build directory, didn't even think about fresh sources. I'll try that tonight. Since I'm already in the chroot environment, what difference does the host make? Just asking...(I'm using Ubuntu) Oh, and I'm building LFS6.5
 
Old 03-02-2010, 06:03 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by peeples View Post
I emptied the build directory, didn't even think about fresh sources. I'll try that tonight. Since I'm already in the chroot environment, what difference does the host make? Just asking...(I'm using Ubuntu) Oh, and I'm building LFS6.5
Not sure if the source directory stays completely untouched just because we use a build directory. As a matter of principle I always start with a fresh source if anything goes wrong.

As for the host issue, from what I have read so far Ubuntu is problematic as host. But if you successfully build your toolchain without errors it might be OK, I guess. Let me know if you succeed building your LFS with Ubuntu as host.
 
  


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
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 11:43 AM
LXer: Easy step-by-step guide for incorporating SVG into Web pages LXer Syndicated Linux News 0 07-29-2006 01:54 PM
problem in understanding step by step execution of n-code files Najia Iqbal Programming 5 04-06-2006 01:55 AM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration