LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-04-2023, 12:50 PM   #1
hananelroe
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Rep: Reputation: 0
error when running ./configure file when installing readline-8.2 package (chapter 8.11)


the error is:

Code:
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'
could this be because I downloaded version 8.2 instead of 8.1.2?
or is it something else?
 
Old 03-04-2023, 01:20 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
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?
 
Old 03-05-2023, 06:43 AM   #3
hananelroe
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by teckk View Post
Did you download your config file from a DOS (Windows) machine and it has CRLF line endings?
no, i didn't.

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
 
Old 03-11-2023, 07:14 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,154

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
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.
 
Old 04-10-2023, 02:01 AM   #5
saintlits
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Rep: Reputation: 1
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!!!
 
Old 04-10-2023, 06:27 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,154

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
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
 
Old 04-10-2023, 10:23 AM   #7
saintlits
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Rep: Reputation: 1
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!
 
Old 04-10-2023, 01:56 PM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,650
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
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.
 
Old 04-11-2023, 12:40 AM   #9
saintlits
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Rep: Reputation: 1
Of course! And I will be happy if you found the reason! This is the code of the error you want to see:

Quote:
521 exec 5>>config.log
522 {
523 echo
524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
525 ## Running $as_me. ##
526 _ASBOX
527 printf "%s\n" "$ac_log"
528 } >&5
529
530 0a1,173
531 > # This file is a shell script that caches the results of configure
532 > # tests run on this system so they can be shared between configure
533 > # scripts and configure runs, see configure's option --config-cache.
534 > # It is not useful on other systems. If it contains results you don't
535 > # want to keep, you may remove or edit it.
536 > #
537 > # config.status only pays attention to the cache file if you give it
538 > # the --recheck option to rerun configure.
539 > #
540 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
541 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
542 > # following values.
 
Old 04-11-2023, 12:41 PM   #10
TheScrotBag
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Rep: Reputation: 0
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
```
$ 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
```
All tarballs were downloaded as advised in section 3.1 using

Code:
wget --input-file=wget-list-sysv --continue --directory-prefix=$LFS/sources
I downloaded the file at wget-list-sysv (sorry, i cant add a URL link as this is my first post) and ran the above script to download all necessary packages.

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 

" ./configure --prefix=/usr    \
            --disable-static \
            --with-curses    \
            --docdir=/usr/share/doc/readline-8.2
"

##Terminal output with error

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#
```
I did cat into the config.status file created and saw the exact same contents as @saintlits quoted above.


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.
 
Old 04-11-2023, 03:38 PM   #11
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
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
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu

Beginning configuration for readline-8.2 for x86_64-pc-linux-gnu

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
...
config.status lines 521-542
Code:
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf "%s\n" "$ac_log"
} >&5


# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
    "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
    "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;;
    "history.pc") CONFIG_FILES="$CONFIG_FILES history.pc" ;;
    "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;
Code:
./configure --prefix=/usr --disable-static --with-curses --docdir=/usr/share/doc/readline-8.2
Still no problem, and I don't get those odd chars in the config.status file
Code:
./config.status: line 530: 0a1,173: command not found
So, it's not the source, or the configure file. I don't know what is writing 0a1,173 to that status file.
 
1 members found this post helpful.
Old 04-11-2023, 04:04 PM   #12
TheScrotBag
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Rep: Reputation: 0
Hey teckk!

Thanks for taking a look! I notice above that you run

Code:
./configure
as a standalone command before running it again with the switches recommended in LFS-11.3 section 8.11.

Code:
./configure --prefix=/usr --disable-static --with-curses --docdir=/usr/share/doc/readline-8.2
I won't be at my desktop to test the unflagged command for a day or 2 but do you think any of the switches (namely --disable-static) could cause the error?

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.
 
Old 04-12-2023, 01:03 PM   #13
saintlits
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Rep: Reputation: 1
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!
 
1 members found this post helpful.
Old 04-16-2023, 01:22 AM   #14
TheScrotBag
LQ Newbie
 
Registered: Apr 2023
Posts: 3

Rep: Reputation: 0
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
but it must be related to unsuccessful mount.

Thank you.
 
Old 05-15-2023, 07:24 PM   #15
hippoid
LQ Newbie
 
Registered: May 2023
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply



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
Error running configure readline 8.1.2 lfssmw Linux From Scratch 4 06-28-2023 07:55 AM
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Patch for readline.SlackBuild to include rlfe (ReadLine Fron-End) tfonz Slackware 0 10-22-2016 11:45 AM
Using cat readline within cat readline while loop demxkn66 Programming 5 12-16-2007 05:10 PM

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

All times are GMT -5. The time now is 04:04 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