LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Binutils - 6.13 again - check error (http://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-6-13-again-check-error-915836/)

jimmy_page_89 11-27-2011 01:30 PM

Binutils - 6.13 again - check error
 
The expect -c "spawn ls" give me this:
Code:

spawn ls
The system has no more ptys.  Ask your system administrator to create more.
    while executing
spawn ls

The build goes fine, but the check...

Code:

WARNING: Couldn't find the global config file.
make[5]: *** [check-DEJAGNU] Error 1
make[4]: *** [check-am] Error 2
make[3]: *** [check-recursive] Error 1
make[2]: *** [check] Error 2
make[1]: *** [check-binutils] Error 2
WARNING: Couldn't find the global config file.
send: spawn id exp0 not open
    while executing
"send_user "$message\n""
    ("default" arm line 2)
    invoked from within
"switch -glob "$firstword" {
        "PASS:" -
        "XFAIL:" -
        "KFAIL:" -
        "UNRESOLVED:" -
        "UNSUPPORTED:" -
        "UNTESTED:" {
            if {$all_flag} {
                send_user "$m..."
    (procedure "clone_output" line 10)
    invoked from within
"clone_output "Running $test_file_name ...""
    (procedure "runtest" line 9)
    invoked from within
"runtest $test_name"
    ("foreach" body line 42)
    invoked from within
"foreach test_name [lsort [find ${dir} *.exp]] {
                        if { ${test_name} == "" } {
                            continue
                        }
                        # Ignore this one if asked to.
                        if { ${ignore..."
    ("foreach" body line 54)
    invoked from within
"foreach dir "${test_top_dirs}" {
                if { ${dir} != ${srcdir} } {
                    # Ignore this directory if is a directory to be
                    # ignored.
                    if {[info..."
    ("foreach" body line 121)
    invoked from within
"foreach pass $multipass {

        # multipass_name is set for `record_test' to use (see framework.exp).
        if { [lindex $pass 0] != "" } {
            set multipass_..."
    ("foreach" body line 51)
    invoked from within
"foreach current_target $target_list {
    verbose "target is $current_target"
    set current_target_name $current_target
    set tlist [split $curren..."
    (file "/tools/share/dejagnu/runtest.exp" line 1624)

make[4]: *** [check-DEJAGNU] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[2]: Target `check' not remade because of errors.
make[1]: *** [check-gas] Error 2
WARNING: Couldn't find the global config file.
make[5]: *** [check-DEJAGNU] Error 1
make[4]: *** [check-am] Error 2
make[3]: *** [check-recursive] Error 1
make[2]: *** [check] Error 2
make[1]: *** [check-ld] Error 2
make[1]: Target `check-host' not remade because of errors.
make: *** [do-check] Error 2
make: Target `check' not remade because of errors.


druuna 11-27-2011 02:50 PM

Hi,

You need to resolve the The system has no more ptys. Ask your system administrator to create more. error before you can continue.

Have a look here: FAQ - No pty's

Remember to remove the soure and build directory before you restart with binutils.

Hope this helps.

Bertical 11-27-2011 02:58 PM

Modern kernels allocate ptys on demand. To find out the maximum number of pseudo terminals available :

Code:

lfs:~$ cat /proc/sys/kernel/pty/max
4096

To find out how many are being used :

Code:

lfs:~$ cat /proc/sys/kernel/pty/nr
242



If you are root you can change the maximum number of ptys ( e.g. 2048 )

Code:

root@qwerty:~# echo 2048 > /proc/sys/kernel/pty/max
root@qwerty:~# cat /proc/sys/kernel/pty/max
2048


jimmy_page_89 11-27-2011 03:20 PM

Thanks a lot! It was the /dev/ptmx on faqs :)

druuna 11-27-2011 03:22 PM

You're welcome :)


All times are GMT -5. The time now is 03:25 AM.