glinux development Abstract (1) - build environment produced

In uty actively encourage students, frogs began the next version of glinux production (on glinux history are welcome to review the previous log of the frog).
The beginning, the frog is ready to use ready-made debian build environment, but then suddenly want to build a tool chain. Tools to stabilize, to do things only have more security. Thus, frogs from the new pick up the lfs to start the second round of lfs journey, but the lfs only one-third of the frog's goal is to: lfs6.3 the Toolschain.
The specific operation nothing to say, a simple step by step like, but encountered a few bugs in the production process (which may not be considered bugs, may be the reason of the frog system).

The first is that the glibc-2.5.1 this step, it will encounter the following error:

mawk: scripts / gen-sorted.awk: line 19: regular expression compile failed (bad class - [], [^] or [)
/ [^
mawk: scripts / gen-sorted.awk: line 19: syntax error at or near]
mawk: scripts / gen-sorted.awk: line 19: runaway regular expression /, "", subd ...

The upward turn such a:

mawk: scripts / gen-sorted.awk: line 19: syntax error at or near]

Take google a Huala, this error is because the frog on the system with the problem of mawk, is said to change can be solved with gawk.
Babble.com above was given a patch is very simple, three places to add the "\" ok. This patch to glibc2.7 with in glibc2.5.1 lfs6.3 inner tube which can not directly use. Frog find what you want changed gen-sorted.awk, and there is no top of those errors.
Although a patch to solve this problem, but there are predecessors told us , lfs, which are used in awk script, use mawk is likely not the correct result, and suggest that you install gawk.
The gawk Source here to download the debian Department of the system only need to aptitude install gawk the like. Other distributions to pay attention to check the / etc / alternatives / awk is not the right points to gawk the.

(A Shun said, the cpu can come to write the blog in the hard cc when just, is really very good, the process can be recorded: p)

The second error is in glibc2.5.1 make check process:

/ Tools / bin / ld: can not find-lstdc + +
collect2: ld returned 1 of exit status
make [2]: *** [/ mnt/lfs/sources/glibc-build/nptl/tst-cancel24] Error 1
make [2]: Target `tests' not remade because of errors.
the make [1]: *** [nptl / tests] Error 2
make [1]: Target `check 'not remade because of errors.
make: *** [check] Error 2

The frog did not find the cause of this error, probably something like lfs document, the first compiled lfs with the host system dependent on the relationship between too much causes.

The third error occurred in in bash3.2 make process, it will prompt did not find yacc program, the solution is simple enough by the apt installed.

Here, the production of the tool chain, the next step you can create the directory structure and compile the kernel.

About gfrog

gfrog, Coder. Canon 40D, Seagull 4B, Seagull 203, Blackberry 8100, Thinkpad, Debian Linux
This entry was posted in Linux . Bookmark the permalink .

Comments are closed.