[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#329715: gcc-4.0_4.0.1-9(powerpc/unstable): fails to build without deprecated BSD ptys



Package: gcc-4.0
Version: 4.0.1-9
Severity: serious

There was an error while trying to autobuild your package:

> Automatic build of gcc-4.0_4.0.1-9 on voltaire by sbuild/powerpc 65
> Build started at 20050922-1710

[...]

> ** Using build dependencies supplied by package:
> Build-Depends: dpkg-dev (>= 1.13.9), libc6.1-dev (>= 2.3.2.ds1-16) [alpha ia64] | libc0.3-dev (>= 2.3.2.ds1-16) | libc0.1-dev (>= 2.3.2.ds1-16) | libc12-dev (>= 2.3.2.ds1-16) | libc6-dev (>= 2.3.2.ds1-16), libc6-dev-sparc64 [sparc], libc6-dev-s390x [s390], libc6-dev-i386 [amd64] | ia32-libs-dev [amd64], libc6-dev-powerpc [ppc64], libc6-dev-ppc64 [powerpc], lib32gcc1 [amd64 ppc64], lib64gcc1 [i386 powerpc sparc s390], libc6-dev-amd64 [i386] | amd64-libs-dev (>= 1.2) [i386], libunwind7-dev (>= 0.98.5-6) [ia64], libatomic-ops-dev [ia64], m4, autoconf, automake1.9, libtool, autogen, gawk, dejagnu (>= 1.4.3) [!hurd-any !hurd-i386], expect-tcl8.3 [hppa] | expect [hppa], expect (>= 5.38.0) [!hppa !hurd-any !hurd-i386], bzip2, binutils (>= 2.16.1) | binutils-multiarch (>= 2.16.1), binutils-hppa64 (>= 2.16.1) [hppa], debhelper (>= 4.1), gperf (>= 3.0.1), bison (>= 1:1.875a-1), flex, gettext, texinfo (>= 4.3), zlib1g-dev, libgc-dev [!avr !alpha !amd64 !arm !hppa !i386 !ia64 !m68k !mips !mipsel !powerpc !s390 !sparc !knetbsd-any !knetbsd-i386], gnat-4.0 [!alpha !arm !m68k !sh3 !sh3eb !sh4 !sh4eb !kfreebsd-any !knetbsd-any !netbsd-any !kfreebsd-i386 !knetbsd-i386 !netbsd-i386 !hurd-any !hurd-i386] | gnat-3.4 [!alpha !arm !m68k !sh3 !sh3eb !sh4 !sh4eb !kfreebsd-any !knetbsd-any !netbsd-any !kfreebsd-i386 !knetbsd-i386 !netbsd-i386 !hurd-any !hurd-i386] | gnat-3.3 [!alpha !arm !m68k !sh3 !sh3eb !sh4 !sh4eb !kfreebsd-any !knetbsd-any !netbsd-any !kfreebsd-i386 !knetbsd-i386 !netbsd-i386 !hurd-any !hurd-i386], libmpfr-dev [!m68k !avr], locales [!hurd-i386 !knetbsd-i386 !netbsd-i386 !hurd-any !knetbsd-any !netbsd-any], procps [!hurd-any !hurd-i386], sharutils, xlibs-dev [!mips !mipsel !knetbsd-any !netbsd-any !knetbsd-i386 !netbsd-i386], libgtk2.0-dev (>= 2.4.4-2) [!mips !mipsel !knetbsd-any !netbsd-any !knetbsd-i386 !netbsd-i386], libart-2.0-dev [!mips !mipsel !knetbsd-any !netbsd-any !knetbsd-i386 !netbsd-i386], libcairo2-dev [!mips !mipsel !knetbsd-any !netbsd-any !knetbsd-i386 !netbsd-i386], realpath (>= 1.9.12), chrpath, lsb-release, dash [hppa]

[...]

> Will build the Fortran 95 compiler.
> Will build the Java compiler.
> Will not build the Pascal compiler: disabled for 4.0
> Will build the Ada compiler.
> Will build the shared Ada libraries.
> Will build the Treelang compiler.
> Will build the FFI library.
> Will run the testsuite.
> Will run the testsuite with -m64: line 14: build/runcheck: cannot execute binary file
> 
> device files /dev/pty* do not exist, the testsuite fail.
> please install the missing files: cd /dev && ./MAKEDEV pty
> make[1]: *** [stamps/04-configure-stamp] Error 1
> make[1]: Leaving directory `/build/buildd/gcc-4.0-4.0.1'
> make: *** [stamps/04-configure-stamp] Error 2

A full build log can be found at:
http://buildd.debian.org/build.php?arch=powerpc&pkg=gcc-4.0&ver=4.0.1-9

/dev/pty* are only used with BSD style ptys.  Linux 2.6 has named them
as CONFIG_LEGACY_PTYS, to be removed at some point.  Instead of looking for
the old /dev/pty*, you should instead attempt to open a pty, and then close it,
as this will also catch the case where /dev/pty* exists, but the support does
not exist in the kernel.

You could also look for a mounted /dev/pts filesystem and a valid /dev/ptmx,
but I think opening a pty with the libC functions is probably best...



Reply to: