Bug 36687 - g++ can not compile dbcheck.cpp of MythTV
Summary: g++ can not compile dbcheck.cpp of MythTV
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.3.1
: P3 normal
Target Milestone: 4.7.0
Assignee: Not yet assigned to anyone
URL:
Keywords: memory-hog
Depends on:
Blocks:
 
Reported: 2008-07-01 13:27 UTC by Daniel Kristjansson
Modified: 2012-01-28 04:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessor output for failing file (139.95 KB, application/octet-stream)
2008-07-01 13:31 UTC, Daniel Kristjansson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kristjansson 2008-07-01 13:27:26 UTC
Note this is the case with both the 0.21-fixes and trunk of mythtv, same file.
    * the exact version of GCC;
gcc (Ubuntu 4.3.1-3ubuntu1) 4.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    * the system type;
Linux intrepid-builder64.kristjansson.com 2.6.24-19-xen #1 SMP Wed Jun 18 16:08:38 UTC 2008 x86_64 GNU/Linux
* the complete command line that triggers the bug;

svn co http://svn.mythtv.org/svn/branches/release-0-21-fixes/ ; cd release-0-21-fixes ; ./configure ; cd libs ; qmake ; cd libmythtv ; qmake ; g++ -c -pipe -g -march=k8 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/directfb -D_REENTRANT -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC  -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_H264TOOLS -DUSING_DIRECTFB -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW -DUSING_XVMC_VLD -DUSING_OPENGL -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_V4L -DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_LIBAVC_5_3 -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_IVTV -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/local/include -I/usr/include -I../.. -I.. -I. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/usr/include/qt3 -I/usr/X11R6/include -I/usr/X11R6/include -o dbcheck.o dbcheck.cpp


NOTE: If you remove -g, the compile still fails. But if you replace -O3 with -O0 it succeeds. Also -O1 fails and -O2 fails.

    * the compiler output (error messages, warnings, etc.); and

{standard input}: Assembler messages:
{standard input}:11005: Warning: end of file not at end of a line; newline inserted
{standard input}:12373: Error: unknown pseudo-op: `.ul'
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
make: *** [dbcheck.o] Error 1

    * the preprocessed file (*.i*) that triggers the bug, generated by
      adding -save-temps to the complete compilation command, or, in
      the case of a bug report for the GNAT front end, a complete set
      of source files (see below).

Will attach
Comment 1 Daniel Kristjansson 2008-07-01 13:31:24 UTC
Created attachment 15840 [details]
Preprocessor output for failing file

Note: I should also note memory consumption by gcc is very high when compiling this file.
Comment 2 Andrew Pinski 2012-01-28 04:13:31 UTC
>g++: Internal error: Killed (program cc1plus)
How much memory do you have?

The memory usage on the trunk is much better than 4.3 (and 4.4) was.

So closing as fixed.