gawk: fails to build on m68k

Bug #9414 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
gawk (Debian)
Fix Released
Unknown
gawk (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #278135 http://bugs.debian.org/278135

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #278135 http://bugs.debian.org/278135

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 24 Oct 2004 17:58:29 -0700
From: <email address hidden>
To: <email address hidden>
Subject: gawk: fails to build on m68k

Package: gawk
Version: 1:3.1.4-1.2
Severity: serious

Hi,

gawk no longer builds on m68k.

| Automatic build of gawk_1:3.1.4-1.2 on chya by sbuild/m68k 1.170.5.0.1
|
| ======== Starting basic tests ========

 ...

| clobber
| gawk: ./clobber.awk:8: (FILENAME=seq FNR=1) fatal error: internal error
| /bin/sh: line 1: 27486 Aborted LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} ../gawk -f ./clobber.awk >_clobber
| make[2]: *** [clobber] Error 134

The m68k build logs for gawk can be found at
 http://buildd.debian.org/build.php?arch=m68k&pkg=gawk

Revision history for this message
Daniel Stone (daniels) wrote :

We don't ship m68k.

Revision history for this message
In , Thomas Hood (jdthood-aglu) wrote : retitle

retitle 278135 gawk: FTBFS on m68k: clobber.awk test fails with "internal error"
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <1098793311.3170.565.camel@thanatos>
Date: Tue, 26 Oct 2004 14:21:51 +0200
From: Thomas Hood <email address hidden>
To: <email address hidden>
Subject: retitle

retitle 278135 gawk: FTBFS on m68k: clobber.awk test fails with "internal error"
thanks

Revision history for this message
In , Fumitoshi UKAI (ukai) wrote : m68k gcc-3.3 __fixunsdfdi problem (Re: Bug#278135: gawk: FTBFS on m68k: clobber.awk test fails with "internal error")

clone 278135 -1
reassign -1 gcc-3.3
retitle -1 gcc-3.3: __fixunsdfdi problem on m68k
severity -1 critical
retitle 278135 gawk: FTBFS on m68k: clobber.awk test fails with "internal error" with gcc-3.3
thanks

I confirm RC Bug#278135 on crest.debian.org's dchroot unstable, so I
track down it with help of gotom and we suspect this is because of
__fixunsdfdi in libgcc.a of gcc-3.3 (1:3.3.5-1).

I confirm that gawk-3.1.4-1 (was succsessfully built on Aug 7 2004) is
also failed to build from source on m68k with gcc-3.3 now and
gawk-3.1.4-1.2 (was failed to build now with default gcc) can be built
from source on m68k with gcc-3.2 now.

I think it is very critical bug, because all binaries that do casting
from double to unsigned int would include __fixunsdfdi code fragment
in it instead of just refering shared object, so that we need to
recompile such binaries after this bug is fixed.
(and currently m68k's buildd uses gcc-3.3 as /usr/bin/gcc)

This is small example to reproduce this problem.

crest% vi test.c
#include <stdio.h>
#include <stdint.h>

int main()
{
        int x;
        double y = 831.0;
        x = (uintmax_t) y;
        return x;
}
crest% cc -g -o t test.c
crest% ./t
zsh: bus error ./t
crest% gdb ./t
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "m68k-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/ukai/tmp/t

Program received signal SIGBUS, Bus error.
0xc003cebe in __libc_start_main () from /lib/libc.so.6
(gdb) bt
#0 0xc003cebe in __libc_start_main () from /lib/libc.so.6
#1 0x800004ce in __fixunsdfdi ()
#2 0x80000466 in main () at test.c:8

Regards,
Fumitoshi UKAI

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 27 Oct 2004 00:31:14 +0900
From: Fumitoshi UKAI <email address hidden>
To: <email address hidden>, <email address hidden>
Cc: <email address hidden>
Subject: m68k gcc-3.3 __fixunsdfdi problem (Re: Bug#278135: gawk: FTBFS on m68k: clobber.awk test
 fails with "internal error")

clone 278135 -1
reassign -1 gcc-3.3
retitle -1 gcc-3.3: __fixunsdfdi problem on m68k
severity -1 critical
retitle 278135 gawk: FTBFS on m68k: clobber.awk test fails with "internal error" with gcc-3.3
thanks

I confirm RC Bug#278135 on crest.debian.org's dchroot unstable, so I
track down it with help of gotom and we suspect this is because of
__fixunsdfdi in libgcc.a of gcc-3.3 (1:3.3.5-1).

I confirm that gawk-3.1.4-1 (was succsessfully built on Aug 7 2004) is
also failed to build from source on m68k with gcc-3.3 now and
gawk-3.1.4-1.2 (was failed to build now with default gcc) can be built
from source on m68k with gcc-3.2 now.

I think it is very critical bug, because all binaries that do casting
from double to unsigned int would include __fixunsdfdi code fragment
in it instead of just refering shared object, so that we need to
recompile such binaries after this bug is fixed.
(and currently m68k's buildd uses gcc-3.3 as /usr/bin/gcc)

This is small example to reproduce this problem.

crest% vi test.c
#include <stdio.h>
#include <stdint.h>

int main()
{
        int x;
        double y = 831.0;
        x = (uintmax_t) y;
        return x;
}
crest% cc -g -o t test.c
crest% ./t
zsh: bus error ./t
crest% gdb ./t
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "m68k-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/ukai/tmp/t

Program received signal SIGBUS, Bus error.
0xc003cebe in __libc_start_main () from /lib/libc.so.6
(gdb) bt
#0 0xc003cebe in __libc_start_main () from /lib/libc.so.6
#1 0x800004ce in __fixunsdfdi ()
#2 0x80000466 in main () at test.c:8

Regards,
Fumitoshi UKAI

Revision history for this message
In , James Troup (james-nocrew) wrote : pending upload

tags 263964 + pending
tags 278135 + pending
thanks

I've added the trivial reversion patch for 263964 pending a proper fix
from upstream.

http://people.debian.org/~troup/gawk_3.1.4-2.diff.gz
http://people.debian.org/~troup/gawk_3.1.4-2.dsc

--
James

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 26 Nov 2004 03:42:32 +0000
From: James Troup <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: pending upload

tags 263964 + pending
tags 278135 + pending
thanks

I've added the trivial reversion patch for 263964 pending a proper fix
from upstream.

http://people.debian.org/~troup/gawk_3.1.4-2.diff.gz
http://people.debian.org/~troup/gawk_3.1.4-2.dsc

--
James

Revision history for this message
In , James Troup (james-nocrew) wrote : Bug#278135: fixed in gawk 1:3.1.4-2
Download full text (3.8 KiB)

Source: gawk
Source-Version: 1:3.1.4-2

We believe that the bug you reported is fixed in the latest version of
gawk, which is due to be installed in the Debian FTP archive:

gawk_3.1.4-2.diff.gz
  to pool/main/g/gawk/gawk_3.1.4-2.diff.gz
gawk_3.1.4-2.dsc
  to pool/main/g/gawk/gawk_3.1.4-2.dsc
gawk_3.1.4-2_i386.deb
  to pool/main/g/gawk/gawk_3.1.4-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
James Troup <email address hidden> (supplier of updated gawk package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 26 Nov 2004 18:30:42 +0000
Source: gawk
Binary: gawk
Architecture: source i386
Version: 1:3.1.4-2
Distribution: unstable
Urgency: low
Maintainer: James Troup <email address hidden>
Changed-By: James Troup <email address hidden>
Description:
 gawk - GNU awk, a pattern scanning and processing language
Closes: 263964 266519 276201 276206 277122 278135
Changes:
 gawk (1:3.1.4-2) unstable; urgency=low
 .
   * 14_io.c-fix-redirect-hang.dpatch: new patch which reverts io.c changes
     that wait() when a redirect hits EOF without checking whether or not
     this is the kind of redirect which would have an orphan to wait() on.
     Closes: #263964
 .
   * debian/control (Build-Depends): Add a versioned build-depends on a
     fixed binutils for m68k. Closes: #278135
 .
   * Merge in NMU changes. Many thanks to Fumitoshi UKAI. Closes:
     #276206, #277122, #266519, #276201
 .
   * 11_dfa.c-ignorecase.dpatch, 12_dfa.c-ignorecase-range.dpath,
     13_dfa.c-charclass-bracket.dpatch: revert to old-style dpatch patch so
     that it works for me.
 .
   * 10_dfa.c-no-go_fast.dpatch: replaced...
   * 10_dfa.c-disable-cache.dpatch: ... with this. Which is upstream's fix
     for the same problem.
 .
   * 15_builtin.c-fix-wide-char.dpatch: new patch by Stephen Kasal to fix
     wide-char to{lower,upper}() handling.
 .
   * 16_awkgram.y-stop-at-eof.dpatch: new patch by Andreas Schwab to stop
     gawk reading past the end of the file for an awk script that is big
     enough to fill more than a buffer's worth and does not end with a
     newline.
 .
   * 17_fix-non-numeric-constants.dpatch: new patch by Aharon Robbins to
     improve handling of non-numeric constants so that numbers like 00.34
     don't get confused as being octal.
Files:
 492e13079781d176c5b589d64bcaaedb 1221 interpreters optional gawk_3.1.4-2.dsc
 a175a8e9572d74150d3ff6072b4f64df 14896 interpreters optional gawk_3.1.4-2.diff.gz
 262ea208b69d0fb65d71b5cbb1708881 995324 interpreters optional gawk_3.1.4-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQIVAwUBQad8NNfD8TGrKpH1AQIN2g/+PvhVX2LyNwKzjZK6q5gW2dZqyj+sgkHS
6YsNJPlGlnroFGnRi/mQwKPv0B2orTjRCbYrE4ROuuiEY8zl05S9jKGP...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (4.0 KiB)

Message-Id: <email address hidden>
Date: Fri, 26 Nov 2004 14:02:14 -0500
From: James Troup <email address hidden>
To: <email address hidden>
Subject: Bug#278135: fixed in gawk 1:3.1.4-2

Source: gawk
Source-Version: 1:3.1.4-2

We believe that the bug you reported is fixed in the latest version of
gawk, which is due to be installed in the Debian FTP archive:

gawk_3.1.4-2.diff.gz
  to pool/main/g/gawk/gawk_3.1.4-2.diff.gz
gawk_3.1.4-2.dsc
  to pool/main/g/gawk/gawk_3.1.4-2.dsc
gawk_3.1.4-2_i386.deb
  to pool/main/g/gawk/gawk_3.1.4-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
James Troup <email address hidden> (supplier of updated gawk package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 26 Nov 2004 18:30:42 +0000
Source: gawk
Binary: gawk
Architecture: source i386
Version: 1:3.1.4-2
Distribution: unstable
Urgency: low
Maintainer: James Troup <email address hidden>
Changed-By: James Troup <email address hidden>
Description:
 gawk - GNU awk, a pattern scanning and processing language
Closes: 263964 266519 276201 276206 277122 278135
Changes:
 gawk (1:3.1.4-2) unstable; urgency=low
 .
   * 14_io.c-fix-redirect-hang.dpatch: new patch which reverts io.c changes
     that wait() when a redirect hits EOF without checking whether or not
     this is the kind of redirect which would have an orphan to wait() on.
     Closes: #263964
 .
   * debian/control (Build-Depends): Add a versioned build-depends on a
     fixed binutils for m68k. Closes: #278135
 .
   * Merge in NMU changes. Many thanks to Fumitoshi UKAI. Closes:
     #276206, #277122, #266519, #276201
 .
   * 11_dfa.c-ignorecase.dpatch, 12_dfa.c-ignorecase-range.dpath,
     13_dfa.c-charclass-bracket.dpatch: revert to old-style dpatch patch so
     that it works for me.
 .
   * 10_dfa.c-no-go_fast.dpatch: replaced...
   * 10_dfa.c-disable-cache.dpatch: ... with this. Which is upstream's fix
     for the same problem.
 .
   * 15_builtin.c-fix-wide-char.dpatch: new patch by Stephen Kasal to fix
     wide-char to{lower,upper}() handling.
 .
   * 16_awkgram.y-stop-at-eof.dpatch: new patch by Andreas Schwab to stop
     gawk reading past the end of the file for an awk script that is big
     enough to fill more than a buffer's worth and does not end with a
     newline.
 .
   * 17_fix-non-numeric-constants.dpatch: new patch by Aharon Robbins to
     improve handling of non-numeric constants so that numbers like 00.34
     don't get confused as being octal.
Files:
 492e13079781d176c5b589d64bcaaedb 1221 interpreters optional gawk_3.1.4-2.dsc
 a175a8e9572d74150d3ff6072b4f64df 14896 interpreters optional gawk_3.1.4-2.diff.gz
 262ea208b69d0fb65d71b5cbb1708881 995324 interpreters optional gawk...

Read more...

Changed in gawk:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.