public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/113554] New: [14 Regression] m2 fails to build on x86_64-linux-gnux32
@ 2024-01-23 8:19 doko at gcc dot gnu.org
2024-01-23 13:56 ` [Bug modula2/113554] " hjl.tools at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: doko at gcc dot gnu.org @ 2024-01-23 8:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113554
Bug ID: 113554
Summary: [14 Regression] m2 fails to build on
x86_64-linux-gnux32
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen with trunk 20240121 on x86_64-linux-gnux32:
[...]
../../src/gcc/m2/mc/mc.flex:32:9: warning: "alloca" redefined
32 | #define alloca __builtin_alloca
| ^~~~~~
In file included from /usr/include/stdlib.h:587,
from <stdout>:22:
/usr/include/alloca.h:35:10: note: this is the location of the previous
definition
35 | # define alloca(size) __builtin_alloca (size)
| ^~~~~~
../../src/gcc/m2/mc/mc.flex: In function 'handleDate':
../../src/gcc/m2/mc/mc.flex:333:25: error: passing argument 1 of 'time' from
incompatible point
er type [-Wincompatible-pointer-types]
333 | time_t clock = time ((long *)0);
| ^~~~~~~~~
| |
| long int *
In file included from ../../src/gcc/m2/mc/mc.flex:28:
/usr/include/time.h:76:29: note: expected 'time_t *' {aka 'long long int *'}
but argument is of
type 'long int *'
76 | extern time_t time (time_t *__timer) __THROW;
| ~~~~~~~~^~~~~~~
test -d m2/gm2-libs-boot/.deps || /bin/bash ../../src/gcc/../mkinstalldirs
m2/gm2-libs-boot/.de
ps
make[5]: *** [../../src/gcc/m2/Make-lang.in:1421: mcflex.o] Error 1
make[5]: *** Waiting for unfinished jobs....
rm gfdl.pod gcc.pod gfortran.pod gpl.pod lto-dump.pod gdc.pod
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/gcc'
make[4]: *** [Makefile:5099: all-stage2-gcc] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[3]: *** [Makefile:32444: stage2-bubble] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [Makefile:32656: bootstrap] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug modula2/113554] [14 Regression] m2 fails to build on x86_64-linux-gnux32
2024-01-23 8:19 [Bug modula2/113554] New: [14 Regression] m2 fails to build on x86_64-linux-gnux32 doko at gcc dot gnu.org
@ 2024-01-23 13:56 ` hjl.tools at gmail dot com
2024-01-23 14:10 ` cvs-commit at gcc dot gnu.org
2024-01-23 14:10 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2024-01-23 13:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113554
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Ever confirmed|0 |1
Last reconfirmed| |2024-01-23
Status|UNCONFIRMED |NEW
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643707.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug modula2/113554] [14 Regression] m2 fails to build on x86_64-linux-gnux32
2024-01-23 8:19 [Bug modula2/113554] New: [14 Regression] m2 fails to build on x86_64-linux-gnux32 doko at gcc dot gnu.org
2024-01-23 13:56 ` [Bug modula2/113554] " hjl.tools at gmail dot com
@ 2024-01-23 14:10 ` cvs-commit at gcc dot gnu.org
2024-01-23 14:10 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-23 14:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113554
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:2bdf138a0d0141065fa9a8efa2ff86f211888a59
commit r14-8362-g2bdf138a0d0141065fa9a8efa2ff86f211888a59
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jan 23 05:55:07 2024 -0800
m2: Use time_t in time and don't redefine alloca
Fix the m2 build warning and error:
[...]
../../src/gcc/m2/mc/mc.flex:32:9: warning: "alloca" redefined
32 | #define alloca __builtin_alloca
| ^~~~~~
In file included from /usr/include/stdlib.h:587,
from <stdout>:22:
/usr/include/alloca.h:35:10: note: this is the location of the previous
definition
35 | # define alloca(size) __builtin_alloca (size)
| ^~~~~~
../../src/gcc/m2/mc/mc.flex: In function 'handleDate':
../../src/gcc/m2/mc/mc.flex:333:25: error: passing argument 1 of 'time'
from incompatible point
er type [-Wincompatible-pointer-types]
333 | time_t clock = time ((long *)0);
| ^~~~~~~~~
| |
| long int *
In file included from ../../src/gcc/m2/mc/mc.flex:28:
/usr/include/time.h:76:29: note: expected 'time_t *' {aka 'long long int
*'} but argument is of
type 'long int *'
76 | extern time_t time (time_t *__timer) __THROW;
PR bootstrap/113554
* mc/mc.flex (alloca): Don't redefine.
(handleDate): Replace (long *)0 with (time_t *)0 when calling
time.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug modula2/113554] [14 Regression] m2 fails to build on x86_64-linux-gnux32
2024-01-23 8:19 [Bug modula2/113554] New: [14 Regression] m2 fails to build on x86_64-linux-gnux32 doko at gcc dot gnu.org
2024-01-23 13:56 ` [Bug modula2/113554] " hjl.tools at gmail dot com
2024-01-23 14:10 ` cvs-commit at gcc dot gnu.org
@ 2024-01-23 14:10 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2024-01-23 14:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113554
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-23 14:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-23 8:19 [Bug modula2/113554] New: [14 Regression] m2 fails to build on x86_64-linux-gnux32 doko at gcc dot gnu.org
2024-01-23 13:56 ` [Bug modula2/113554] " hjl.tools at gmail dot com
2024-01-23 14:10 ` cvs-commit at gcc dot gnu.org
2024-01-23 14:10 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).