public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
@ 2005-03-25 4:10 gerald at pfeifer dot com
2005-04-15 22:20 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: gerald at pfeifer dot com @ 2005-03-25 4:10 UTC (permalink / raw)
To: gcc-bugs
Bootstrap on sparc64-portbld-freebsd5.3 fails with the following error:
.././..//gcc-4.0-20050226/gcc/libgcc2.c:1623: error: size of array
'compile_type_assert' is negative
That line is:
/* Verify that MTYPE matches up with CEXT. */
extern void *compile_type_assert[sizeof(INFINITY) == sizeof(MTYPE) ? 1 : -1];
The last lines in the build log read:
./xgcc -B./ -B/usr/local/sparc64-portbld-freebsd5.3/bin/ -isystem
/usr/local/sparc64-portbld-freebsd5.3/include -isystem
/usr/local/sparc64-portbld-freebsd5.3/sys-include
-L/tmp/a/ports/lang/gcc40/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I.././..//gcc-4.0-20050226/gcc
-I.././..//gcc-4.0-20050226/gcc/. -I.././..//gcc-4.0-20050226/gcc/../include
-I.././..//gcc-4.0-20050226/gcc/../libcpp/include -DL_powitf2 -c
.././..//gcc-4.0-20050226/gcc/libgcc2.c -o libgcc/./_powitf2.o
./xgcc -B./ -B/usr/local/sparc64-portbld-freebsd5.3/bin/ -isystem
/usr/local/sparc64-portbld-freebsd5.3/include -isystem
/usr/local/sparc64-portbld-freebsd5.3/sys-include
-L/tmp/a/ports/lang/gcc40/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I.././..//gcc-4.0-20050226/gcc
-I.././..//gcc-4.0-20050226/gcc/. -I.././..//gcc-4.0-20050226/gcc/../include
-I.././..//gcc-4.0-20050226/gcc/../libcpp/include -DL_mulsc3 -c
.././..//gcc-4.0-20050226/gcc/libgcc2.c -o libgcc/./_mulsc3.o
./xgcc -B./ -B/usr/local/sparc64-portbld-freebsd5.3/bin/ -isystem
/usr/local/sparc64-portbld-freebsd5.3/include -isystem
/usr/local/sparc64-portbld-freebsd5.3/sys-include
-L/tmp/a/ports/lang/gcc40/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I.././..//gcc-4.0-20050226/gcc
-I.././..//gcc-4.0-20050226/gcc/. -I.././..//gcc-4.0-20050226/gcc/../include
-I.././..//gcc-4.0-20050226/gcc/../libcpp/include -DL_muldc3 -c
.././..//gcc-4.0-20050226/gcc/libgcc2.c -o libgcc/./_muldc3.o
.././..//gcc-4.0-20050226/gcc/libgcc2.c:1623: error: size of array
'compile_type_assert' is negative
gmake[3]: *** [libgcc/./_muldc3.o] Error 1
gmake[3]: Leaving directory `/tmp/a/ports/lang/gcc40/work/build/gcc'
gmake[2]: *** [libgcc.a] Error 2
gmake[2]: Leaving directory `/tmp/a/ports/lang/gcc40/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/tmp/a/ports/lang/gcc40/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2
--
Summary: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size
of array 'compile_type_assert' is negative
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gerald at pfeifer dot com
CC: gcc-bugs at gcc dot gnu dot org,kan at FreeBSD dot ORG
GCC host triplet: sparc64-portbld-freebsd5.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/20633] sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
@ 2005-04-15 22:20 ` ebotcazou at gcc dot gnu dot org
2005-04-15 22:21 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-04-15 22:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-15 22:20 -------
Sorry, I missed this one. Do not hesitate to CC me for SPARC-related problems.
Could you attach the preprocessed file?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
2005-04-15 22:20 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
@ 2005-04-15 22:21 ` ebotcazou at gcc dot gnu dot org
2005-04-17 21:13 ` [Bug target/20633] " ebotcazou at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-04-15 22:21 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
GCC build triplet| |sparc64-portbld-freebsd5.3
GCC target triplet| |sparc64-portbld-freebsd5.3
Summary|sparc64-portbld-freebsd5.3: |libgcc2.c:1623: error: size
|libgcc2.c:1623: error: size |of array
|of array |'compile_type_assert' is
|'compile_type_assert' is |negative
|negative |
Version|4.0.1 |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
2005-04-15 22:20 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
2005-04-15 22:21 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
@ 2005-04-17 21:13 ` ebotcazou at gcc dot gnu dot org
2005-04-18 9:24 ` ebotcazou at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-04-17 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-17 21:13 -------
It's a target problem: FreeBSD overrides this line from sparc.h:
#define CPP_SPEC "%(cpp_cpu) %(cpp_arch) %(cpp_endian) %(cpp_subtarget)"
with this line from freebsd-spec.h:
/* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC
option `-posix', and PIC issues. */
#define FBSD_CPP_SPEC " \
%(cpp_cpu) \
%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \
%{posix:-D_POSIX_SOURCE}"
The missing bits are %(cpp_arch). Also note the bogus quotation in the spec.
I think it's up to the FreeBSD maintainer to decide what is the best long-term
fix. For 4.0.0, something like:
#undef CPP_SPEC
#define CPP_SPEC \
%(cpp_cpu) \
%(cpp_arch) \
%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \
%{posix:-D_POSIX_SOURCE}
in config/sparc/freebsd.h should be good enough.
Gerald, if it works for you, I can approve it on principle for the 4.0 branch
and I think you can ask Mask permission for installing it before 4.0RC2.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (2 preceding siblings ...)
2005-04-17 21:13 ` [Bug target/20633] " ebotcazou at gcc dot gnu dot org
@ 2005-04-18 9:24 ` ebotcazou at gcc dot gnu dot org
2005-04-24 22:57 ` gerald at pfeifer dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-04-18 9:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-18 09:23 -------
I messed up the quotation too. :-( It should read:
#undef CPP_SPEC
#define CPP_SPEC" \
%(cpp_cpu) \
%(cpp_arch) \
%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic_} \
%{posix:-D_POSIX_SOURCE} \
"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (3 preceding siblings ...)
2005-04-18 9:24 ` ebotcazou at gcc dot gnu dot org
@ 2005-04-24 22:57 ` gerald at pfeifer dot com
2005-04-30 20:38 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: gerald at pfeifer dot com @ 2005-04-24 22:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerald at pfeifer dot com 2005-04-24 22:57 -------
Thanks a lot, Eric! The only FreeBSD/SPARC host I have guest access to has
been down, so I couldn't test the patch yet, but I dropped some FreeBSD folks
and Loren a note.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (4 preceding siblings ...)
2005-04-24 22:57 ` gerald at pfeifer dot com
@ 2005-04-30 20:38 ` cvs-commit at gcc dot gnu dot org
2005-04-30 20:52 ` gerald at pfeifer dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-30 20:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-30 20:38 -------
Subject: Bug 20633
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: gerald@gcc.gnu.org 2005-04-30 20:38:46
Modified files:
gcc : ChangeLog
gcc/config : freebsd-spec.h
Log message:
PR bootstrap/20633
* config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8541&r2=2.8542
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/freebsd-spec.h.diff?cvsroot=gcc&r1=1.13&r2=1.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (5 preceding siblings ...)
2005-04-30 20:38 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-30 20:52 ` gerald at pfeifer dot com
2005-04-30 21:08 ` [Bug target/20633] [4.0 only] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: gerald at pfeifer dot com @ 2005-04-30 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerald at pfeifer dot com 2005-04-30 20:52 -------
I plan to commit this to the 4.0-branch a bit later, but surely in time for
the GCC 4.0.1 release.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |gerald at pfeifer dot com
|dot org |
Status|WAITING |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] [4.0 only] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (6 preceding siblings ...)
2005-04-30 20:52 ` gerald at pfeifer dot com
@ 2005-04-30 21:08 ` pinskia at gcc dot gnu dot org
2005-05-01 18:11 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-30 21:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Summary|libgcc2.c:1623: error: size |[4.0 only] libgcc2.c:1623:
|of array |error: size of array
|'compile_type_assert' is |'compile_type_assert' is
|negative |negative
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] [4.0 only] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (7 preceding siblings ...)
2005-04-30 21:08 ` [Bug target/20633] [4.0 only] " pinskia at gcc dot gnu dot org
@ 2005-05-01 18:11 ` cvs-commit at gcc dot gnu dot org
2005-05-01 18:12 ` gerald at pfeifer dot com
2005-05-01 18:59 ` cvs-commit at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-01 18:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-01 18:11 -------
Subject: Bug 20633
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: gerald@gcc.gnu.org 2005-05-01 18:10:49
Modified files:
gcc : ChangeLog
gcc/config : freebsd-spec.h
Log message:
PR bootstrap/20633
* config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.849&r2=2.2326.2.850
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/freebsd-spec.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.6.10.3&r2=1.6.10.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] [4.0 only] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (8 preceding siblings ...)
2005-05-01 18:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-01 18:12 ` gerald at pfeifer dot com
2005-05-01 18:59 ` cvs-commit at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: gerald at pfeifer dot com @ 2005-05-01 18:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gerald at pfeifer dot com 2005-05-01 18:12 -------
Applied to 4.0 branch as well.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/20633] [4.0 only] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
` (9 preceding siblings ...)
2005-05-01 18:12 ` gerald at pfeifer dot com
@ 2005-05-01 18:59 ` cvs-commit at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-01 18:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-01 18:59 -------
Subject: Bug 20633
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: gerald@gcc.gnu.org 2005-05-01 18:59:28
Modified files:
gcc : ChangeLog
gcc/config : freebsd-spec.h
Log message:
PR bootstrap/20633
* config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.208&r2=2.7592.2.209
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/freebsd-spec.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.13&r2=1.13.8.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-05-01 18:59 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 4:10 [Bug bootstrap/20633] New: sparc64-portbld-freebsd5.3: libgcc2.c:1623: error: size of array 'compile_type_assert' is negative gerald at pfeifer dot com
2005-04-15 22:20 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
2005-04-15 22:21 ` [Bug bootstrap/20633] " ebotcazou at gcc dot gnu dot org
2005-04-17 21:13 ` [Bug target/20633] " ebotcazou at gcc dot gnu dot org
2005-04-18 9:24 ` ebotcazou at gcc dot gnu dot org
2005-04-24 22:57 ` gerald at pfeifer dot com
2005-04-30 20:38 ` cvs-commit at gcc dot gnu dot org
2005-04-30 20:52 ` gerald at pfeifer dot com
2005-04-30 21:08 ` [Bug target/20633] [4.0 only] " pinskia at gcc dot gnu dot org
2005-05-01 18:11 ` cvs-commit at gcc dot gnu dot org
2005-05-01 18:12 ` gerald at pfeifer dot com
2005-05-01 18:59 ` cvs-commit at gcc dot gnu dot org
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).