Bug#942059: gcc-9-cross: uses “long” as “time_t” leading to failure on most new 32-bit architectures

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#942059: gcc-9-cross: uses “long” as “time_t” leading to failure on most new 32-bit architectures

Thorsten Glaser
Source: gcc-9-cross
Version: 12
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)


x86_64-linux-gnux32-g++-9 -fno-PIE -c -g -I-I../../src/gcc/gm2 -Igm2 -I../../src/gcc/gm2/gm2-gcc -Igm2/gm2-gcc   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual    -DHAVE_CONFIG_H -I. -Igm2 -I../../src/gcc -I../../src/gcc/gm2 -I../../src/gcc/../include -I../../src/gcc/../libcpp/include  -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/bid -I../libdecnumber -I../../src/gcc/../libbacktrace   -I. -Igm2 -I../../src/gcc -I../../src/gcc/gm2 -I../../src/gcc/../include -I../../src/gcc/../libcpp/include  -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/bid -I../libdecnumber -I../../src/gcc/../libbacktrace  ../../src/gcc/gm2/gm2-lang.c -o gm2/gm2-lang.o
../../src/gcc/gm2/m2.flex: In function 'void handleDate()':
../../src/gcc/gm2/m2.flex:354:24: error: cannot convert 'long int*' to 'time_t*' {aka 'long long int*'}
  354 |   time_t  clock = time((long *)0);
      |                        ^~~~~~~~~
      |                        |
      |                        long int*
In file included from ../../src/gcc/system.h:337,
                 from ../../src/gcc/gm2/gm2-gcc/gcc-consolidation.h:23,
                 from ../../src/gcc/gm2/m2.flex:22:
/usr/include/time.h:75:29: note:   initializing argument 1 of 'time_t time(time_t*)'
   75 | extern time_t time (time_t *__timer) __THROW;
      |                     ~~~~~~~~^~~~~~~
make[5]: *** [../../src/gcc/gm2/Make-lang.in:1124: gm2/gm2-compiler-boot/m2flex.o] Error 1

Reply | Threaded
Open this post in threaded view
|

Processed: Re: Bug#942059: gcc-9-cross: uses “long” as “time_t” leading to failure on most new 32-bit architectures

Debian Bug Tracking System
Processing control commands:

> severity -1 important
Bug #942059 [src:gcc-9-cross] gcc-9-cross: uses “long” as “time_t” leading to failure on most new 32-bit architectures
Severity set to 'important' from 'serious'
> reassign -1 src:gcc-9-cross-ports
Bug #942059 [src:gcc-9-cross] gcc-9-cross: uses “long” as “time_t” leading to failure on most new 32-bit architectures
Bug reassigned from package 'src:gcc-9-cross' to 'src:gcc-9-cross-ports'.
No longer marked as found in versions gcc-9-cross/12.
Ignoring request to alter fixed versions of bug #942059 to the same values previously set

--
942059: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942059
Debian Bug Tracking System
Contact [hidden email] with problems