[buildd-tools-devel] Bug#849169: Bug#849169: sbuild: Expect programe reported "no more ptys" and failed in rebuilding gcc with normal (non-root) user

Johannes Schauer josch at debian.org
Fri Dec 23 12:41:57 UTC 2016


Control: tag -1 + unreproducible

Hi,

Quoting Xiangyu LIU (2016-12-23 07:36:00)
>    I want to rebuild locally gcc-5 and gcc-4.9 in current stretch by Sbuild.
> 
> 
>    I download the source of gcc-5 (Debian) and gcc-4.9 (from Ubuntu) and rebuild by "sbuild -d stretch gcc-xxxxx.dsc".
>    But building failed with reporting:
>       "The system has no more ptys. Ask your system administrator to create more."
>       "while executing"
>       "spawn ls"
> 
>    I gave a try in Sbuild with root user:
>    # expect -c "spawn ls"
>    It is OK to output "spawn ls"
> 
>    But when I type above command with normal user:
>    sh-4.4$ expect -c "spawn ls"
>            spawn ls
>            The system has no more ptys.  Ask your system administrator to create more.
>            while executing
>            "spawn ls"
> 
>    I check the /dev/pts, it was mounted in sbuild (with both root/normal users):
>         sh-4.4$ mount | grep pts
>                 devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> 
>         (stretch-amd64-sbuild)root at WFA256:/# mount | grep pts
>                                              devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> 
>   
>    I have same issue in pbuilder if I rebuild gcc by:
>       $ sudo pbuilder build gcc-xxxx.dsc
> 
>    But it is OK if rebuild with root user by sbuild
>       $ sudo sbuild -d stretch gcc-xxxx.dsc
> 
> 
>    Yes I can rebuild gcc by sudo sbuild, but I don't know what is happening in Sbuild with normal user.
>    Any comment or advice would be very appreciated !

I cannot reproduce your issue in several ways.

 - 'expect -c "spawn ls"' works for me independent of whether I'm root or not
 - building src:gcc-5 works fine on my system inside a stretch chroot without
   being root
 - building src:gcc-5 works fine on the Debian buildds
   https://buildd.debian.org/status/package.php?p=gcc-5

Since you have the same issue with pbuilder, this does not seem to be an sbuild
specific bug. Instead this could either be:

 - a FTBFS bug in src:gcc-5 (but that's unlikely because I just successfully
   built it on stretch)
 - a misconfiguration of your system

I fear you have to ask elsewhere for advice as I am not familiar with the gcc
build system or show me that this really is a bug in sbuild.

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20161223/c504b472/attachment.sig>


More information about the Buildd-tools-devel mailing list