error when running ./configure file when installing readline-8.2 package (chapter 8.11)
the error is:
Code:
configure: creating ./config.status or is it something else? |
From what you have posted, the only thing I can add is:
https://www.linuxfromscratch.org/~th.../readline.html https://tiswww.case.edu/php/chet/readline/rltop.html https://tiswww.case.edu/php/chet/readline/readline.html http://git.savannah.gnu.org/cgit/rea.../tree/?h=devel Did you download your config file from a DOS (Windows) machine and it has CRLF line endings? |
Quote:
I tried following the instructions at the link to the LFS book that you sent, and it gave the same error. trying to install readline-8.1.2 instead also gave the same error |
what distro are u using as host ?
What's the output of version.sh ? What exactly is the command you are running. Delete the extracted archive and try again. MUCH more info needed before we can help. |
I ran into exactly the same problem! ! ! I started to try to operate according to "Linux From Scratch" -r11.3-55-systemd two days ago. The host system is zorin pro 16.2 x86_64 based on Ubuntu20.04. The cross-compilation tool is intact, enter the chroot pure system, and set it correctly After adding the variables, unzip readline8.2 and execute ./configure, the error is also reported at line 530, the error code and location are exactly the same, 0a1 I am still impressed, please help me!!!
|
see my post above if you cant be bothered to post somthing as simple as the output of the version script you aint gonna get any sort of useful help
|
I'm really sorry, I was at work when I posted this so I couldn't attach the details in time, now I'm home, I will explain the relevant information truthfully, thank you very much for your support!
## The version of the book being used (in this case r11.3-55-systemd) ## The host distribution and version being used to create LFS ``` OS: Zorin OS 16.2 x86_64 Host: GALAX B660 METALTOP GAN2 Kernel: 5.15.0-69-generic `::::::::::::::::::::::. .:` Uptime: 3 days, 4 hours, 19 mins `+ssssssssssssssssss+:.` `.:+ssso` Packages: 2796 (dpkg), 76 (flatpak), .ossssssssssssssso/. `-+ossssssso. Shell: bash 5.0.17 ssssssssssssso/-` `-/osssssssssssss Resolution: 2560x1440 .ossssssso/-` .-/ossssssssssssssso. DE: GNOME `+sss+:. `.:+ssssssssssssssssss+` WM: Mutter `:. .::::::::::::::::::::::` WM Theme: ZorinBlue-Dark Theme: ZorinBlue-Dark [GTK2/3] Icons: ZorinBlue-Dark [GTK2/3] .+oooooooooooooooooooooooo+. Terminal: gnome-terminal -osssssssssssssssssssssso- CPU: 12th Gen Intel i5-12400 (12) @ `osssssssssssssssssssso` GPU: NVIDIA 01:00.0 NVIDIA Corporati Memory: 16408MiB / 63895MiB ``` ## The output from the Host System Requirements script ``` $ bash version-check.sh OK: Coreutils 8.30 >= 7.0 OK: Bash 5.0.17 >= 3.2 OK: Binutils 2.34 >= 2.13.1 OK: Bison 3.5.1 >= 2.7 OK: Diffutils 3.7 >= 2.8.1 OK: Findutils 4.7.0 >= 4.2.31 OK: Gawk 5.0.1 >= 4.0.1 OK: GCC 9.4.0 >= 5.1 OK: GCC (C++) 9.4.0 >= 5.1 OK: Grep 3.4 >= 2.5.1a OK: Gzip 1.10 >= 1.3.12 OK: M4 1.4.18 >= 1.4.10 OK: Make 4.2.1 >= 4.0 OK: Patch 2.7.6 >= 2.5.4 OK: Perl 5.30.0 >= 5.8.8 OK: Python 3.8.10 >= 3.4 OK: Sed 4.7 >= 4.1.5 OK: Tar 1.30 >= 1.22 OK: Texinfo 6.7 >= 4.7 OK: Xz 5.2.4 >= 5.0.0 OK: Linux Kernel 5.15.0 >= 3.2 OK: Linux Kernel supports UNIX 98 PTY Aliases: OK: awk is GNU OK: yacc is Bison OK: sh is Bash Compiler check: OK: g++ works ``` ## The package or section the problem was encountered in 8.11.1. Installation of Readline(readlin-8.2) ## The exact error message, or a clear description of the problem There is no opportunistic operation, everything is carried out according to the tutorial, when I am about to use ./configure to generate the makefile, an error occurs, the following is the input and output content: ``` (lfs chroot) root:/sources/readline-8.2# ./configure --prefix=/usr \ > --disable-static \ > --with-curses \ > --docdir=/usr/share/doc/readline-8.2 ... checking for wint_t in wctype.h... yes checking for wcwidth broken with unicode combining characters... no checking size of wchar_t... 4 checking configuration for building shared libraries... supported configure: creating ./config.status ./config.status: line 530: 0a1,173: command not found ./config.status: line 531: syntax error near unexpected token `newline' ./config.status: line 531: `> # This file is a shell script that caches the results of configure' (lfs chroot) root:/sources/readline-8.2# ``` ## Note whether you have deviated from the book at all No, everything is done according to the instructions in the book, but I tried to pass the -j10 parameter to improve the compilation speed of make when compiling 8.5.1 Glibc (or a nearby package), but the compilation failed. The make command with parameters completes the compilation, and all the packages compiled before Chapter 8 were compiled using the -j10 thread (writing to the environment variable), I'm not sure if this is the reason. Have a good day! |
Just for interest, could you post (between code tags) lines 528-533 of config.status, i.e. the segment where the error occurs? This is a file created automatically by the configure script and it should not contain any errors.
|
Of course! And I will be happy if you found the reason! This is the code of the error you want to see:
Quote:
|
I am currently experiencing the exact same issue as @saintlits. I'm using version 11.3 of the LFS Stable docs. My host system is a fresh Debian 11 (bullseye) x86 install and I mounted /mnt/lfs/ on a clean HDD.
Code:
## The output from the Host System Requirements script Code:
wget --input-file=wget-list-sysv --continue --directory-prefix=$LFS/sources Everything went smoothly through the initial cross-compilation and tool chain building. All make checks passed for GCC and everything went as expected up to Section 8.10. File-5.44. This is where the above mentioned error happens. Section 8.11 Readline-8.2, I am able to run the initial "sed" commands and the patch with no issues. Running the "./configure" command will start as expected but throws this following error at the end. Code:
## ./configure command I initially ran into this error last week and assumed I had made a mistake. I scrapped my initial LFS project, reformatted the drives and reinstalled Debian 11 on the same hardware. I made sure to run an apt update/ apt upgrade on the new install before continuing. I started attempt 2 yesterday and everything went as previously. The same Readline-8.2 error arose. If it's on any use. hardware specs of the host machine are i7-3770, 12gb ram, AMD radeon 7770. Host system is installed on a 1tb Samsung HDD, LFS was partitioned on a secondary 2tb Seagate HDD. |
https://tiswww.case.edu/php/chet/readline/rltop.html
https://tiswww.case.edu/php/chet/readline/INSTALL https://www.linuxfromscratch.org/lfs.../readline.html https://www.linuxfromscratch.org/lfs.../packages.html Source 2.9MB https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz Code:
./configure Code:
exec 5>>config.log Code:
./configure --prefix=/usr --disable-static --with-curses --docdir=/usr/share/doc/readline-8.2 Code:
./config.status: line 530: 0a1,173: command not found |
Hey teckk!
Thanks for taking a look! I notice above that you run Code:
./configure Code:
./configure --prefix=/usr --disable-static --with-curses --docdir=/usr/share/doc/readline-8.2 I notice that the Arch wiki lists ncurses as a dependency Archwiki Readline, but we have not yet installed ncurses to the LFS system. We are asked to install it Here, in section 8.28. We did install it as a temp cross-compilation tool in chapter 6. |
I have to come back and report, I solved this problem! Although I don't know the reason or why I can suddenly configure and compile successfully, I will share my process with you:
Preconditions - Backup has been made in Chapter 7.13.2 Backup 1. rm -rf / delete the LFS root directory. 2. Unzip the backup package to the original path. 3. Mount the /dev device strictly according to Chapter 7.3, and use ' mount |grep lfs' command to make sure the mount was successful! 4. Set variables according to chapter 7.4 and enter the chroot environment. 5. Continue to compile and install the software according to the tutorial. 6. When compiling and checking glibc, it is found that the passing results are different. This time only one failure is different from the previous ten failures. 7. Configure readline successfully! Compiled successfully! Congratulations! There are several differences in the whole process: longer time-consuming build and detection during glibc compilation, with a higher pass rate, and installing only my country's locale instead of installing all locales. I speculate that the /dev mount may have failed, because I seem to have shut down, hibernated, or exited the environment halfway through. Please think carefully about whether you have done similar operations halfway through? That might be why! |
Yup, @saintlits, that worked for me! I'm guessing there was an issue when I remounted/ entered the chroot environment.
Still no idea what output the Code:
./config.status: line 530: 0a1,173: command not found Thank you. |
Hello all,
I had this same issue. I fixed it by making sure I had all the mount points correct as explained in 7.1 - 7.4. Also this error is very similar to the one explained here in the FAQ https://www.linuxfromscratch.org/lfs...g-status-0ax-y. |
All times are GMT -5. The time now is 10:36 PM. |