Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
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
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?
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Original Poster
Rep:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.