public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66124] New: greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault
@ 2015-05-12 13:20 wilkinson.bob at gmail dot com
  2015-05-12 14:01 ` [Bug c++/66124] " wilkinson.bob at gmail dot com
  2024-04-04 20:34 ` [Bug c++/66124] AIX 5.3 - " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: wilkinson.bob at gmail dot com @ 2015-05-12 13:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66124

            Bug ID: 66124
           Summary: greg_month.cpp from boost date_time shows internal
                    compiler error: Segmentation fault
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilkinson.bob at gmail dot com
  Target Milestone: ---

Created attachment 35531
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35531&action=edit
gzipped version of grep_month.ii

I use the most recently packaged version of gcc for AIX 5.3 packaged by IBM and
available from
ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/

The version I used is :

bash-4.2# csum *.rpm
0a0ad6f0228d2ebba18d6632f946f15f  gcc-4.2.0-3.aix5.3.ppc.rpm
01757ef0a46f062a9a5dcf487b809a3e  gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
69a0cdd26b841db4401cc96a238c31bf  gcc-locale-4.2.0-3.aix5.3.ppc.rpm
1e6665b79e21e87a2664a510c04dbf48  libffi-4.2.0-3.aix5.3.ppc.rpm
9579df6d8c21fa74827604c6be336685  libffi-devel-4.2.0-3.aix5.3.ppc.rpm
1f23e47835f96d9a48074c7e29e2f625  libgcc-4.2.0-3.aix5.3.ppc.rpm
ba0044da1a5a45fde81ea80fa9bbd984  libgomp-4.2.0-3.aix5.3.ppc.rpm
59a82bf0df8087b549a3c1a66501ada6  libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
4e390df393af6fde78d2f36017d0de07  libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
bash-4.2# oslevel -s
5300-12-04-1119
bash-4.2# 

I try to compile my (large) software project but see 

internal compiler error: Segmentation fault while compiling greg_month.cpp from
boost date_time.

Details suggested on https://gcc.gnu.org/bugs/ follow and the file
greg_month.ii is attached (though I had to compress it with gzip so that it was
under the file size limit).

bash-4.2# cat gmbuild 
g++ -v -save-temps -Wall -Wextra -c -mminimal-toc -maix32 -fPIC -O0 -g1
-fvisibility=default -fPIC -I/home/bob/work/trunk/3rdparty/boost_1_49_0 -shared
-I /home/bob/work/trunk/common/basic/cppunit/include -D_REENTRANT=1
-DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_TEST_DYN_LINK=1 -Daix=1 -Dbigendian=1
-Dunix=1
-I3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/include
-I3rdparty/boost_1_49_0/libs/date_time/include
-I3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/res
-I3rdparty/boost_1_49_0/libs/date_time/res -Icommon/include -Icommon/basic
-Iunix/common/include
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp

bash-4.2# bash gmbuild
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--enable-languages=c,c++,java --prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
--target=powerpc-ibm-aix5.3.0.0 --build=powerpc-ibm-aix5.3.0.0
--disable-libjava-multilib
Thread model: aix
gcc version 4.2.0
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/cc1plus -E -quiet -v
-I/home/bob/work/trunk/3rdparty/boost_1_49_0 -I
/home/bob/work/trunk/common/basic/cppunit/include
-I3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/include
-I3rdparty/boost_1_49_0/libs/date_time/include
-I3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/res
-I3rdparty/boost_1_49_0/libs/date_time/res -Icommon/include -Icommon/basic
-Iunix/common/include -D_ALL_SOURCE -D_REENTRANT=1 -DBOOST_DATE_TIME_DYN_LINK=1
-DBOOST_TEST_DYN_LINK=1 -Daix=1 -Dbigendian=1 -Dunix=1
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp -mminimal-toc
-maix32 -Wall -Wextra -fvisibility=default -fPIC -fworking-directory -O0
-fpch-preprocess -o greg_month.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/../../../../powerpc-ibm-aix5.3.0.0/include"
ignoring nonexistent directory
"3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/include"
ignoring nonexistent directory "3rdparty/boost_1_49_0/libs/date_time/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/bob/work/trunk/3rdparty/boost_1_49_0
 /home/bob/work/trunk/common/basic/cppunit/include

3rdparty/boost_1_49_0/libs/date_time/wspace/powerpc-ibm-aix5.3.0.0/release32/res
 3rdparty/boost_1_49_0/libs/date_time/res
 common/include
 common/basic
 unix/common/include
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++

/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/powerpc-ibm-aix5.3.0.0
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/backward
 /opt/freeware/include
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include
 /usr/include
End of search list.
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/cc1plus -fpreprocessed
greg_month.ii -quiet -dumpbase greg_month.cpp -mminimal-toc -maix32 -auxbase
greg_month -g1 -O0 -Wall -Wextra -version -fvisibility=default -fPIC -o
greg_month.s
GNU C++ version 4.2.0 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.2.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
Compiler executable checksum: 1996167973c219369b345460d5c6f097
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp:111: warning:
unused parameter 'type'
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp:124: warning:
unused parameter 'type'
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp:142: warning:
unused parameter 'type'
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp:155: warning:
unused parameter 'type'
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp:169: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
bash-4.2#


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/66124] greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault
  2015-05-12 13:20 [Bug c++/66124] New: greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault wilkinson.bob at gmail dot com
@ 2015-05-12 14:01 ` wilkinson.bob at gmail dot com
  2024-04-04 20:34 ` [Bug c++/66124] AIX 5.3 - " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: wilkinson.bob at gmail dot com @ 2015-05-12 14:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66124

--- Comment #1 from wilkinson.bob at gmail dot com ---
More succinctly my failing compilation can be reduced to :

g++ -v -save-temps -Wall -Wextra -c
-I/home/bob/work/trunk/3rdparty/boost_1_49_0
3rdparty/boost_1_49_0/libs/date_time/src/gregorian/greg_month.cpp

which exhibits the same failure.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/66124] AIX 5.3 - greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault
  2015-05-12 13:20 [Bug c++/66124] New: greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault wilkinson.bob at gmail dot com
  2015-05-12 14:01 ` [Bug c++/66124] " wilkinson.bob at gmail dot com
@ 2024-04-04 20:34 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-04 20:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66124

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This preprocessed source works on the trunk on x86_64 with a small change.
Replace:
typedef char *va_list;
with
typedef __builtin_va_list va_list;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-04 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 13:20 [Bug c++/66124] New: greg_month.cpp from boost date_time shows internal compiler error: Segmentation fault wilkinson.bob at gmail dot com
2015-05-12 14:01 ` [Bug c++/66124] " wilkinson.bob at gmail dot com
2024-04-04 20:34 ` [Bug c++/66124] AIX 5.3 - " pinskia at gcc dot gnu.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).