public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/15638] gcc should have option to treat missing headers as fatal
Date: Thu, 03 Apr 2014 12:30:00 -0000	[thread overview]
Message-ID: <bug-15638-4-Rv8F4a2xiC@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-15638-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638

--- Comment #19 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Lucia Huang from comment #17)
> Hi, 
> Is there an option to revert this change?  To generate an error or warning
> for a missing header?  Thanks.

Hi Lucia, no there is no such option. I don't think anyone will spent their
free time adding such an option, would you? You can get almost the same effect
by adding a dummy header with an #error or a #warning directive.
>From gcc-bugs-return-448191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 03 12:48:19 2014
Return-Path: <gcc-bugs-return-448191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27333 invoked by alias); 3 Apr 2014 12:48:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27286 invoked by uid 48); 3 Apr 2014 12:48:16 -0000
From: "nheghathivhistha at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58678] [4.9 Regression] pykde4-4.11.2 link error (devirtualization too trigger happy)
Date: Thu, 03 Apr 2014 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nheghathivhistha at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58678-4-MKjD3Tdb2W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58678-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58678-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-04/txt/msg00211.txt.bz2
Content-length: 4162

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX678

--- Comment #57 from David Kredba <nheghathivhistha at gmail dot com> ---
I got it again with trunk revision 209048:

/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -flto=4 -fuse-linker-plugin -O2 -ggdb
-pipe -march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -mno-xop
-mno-fma4 -mno-sse4a  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions
-DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual
-fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden
-Wl,--enable-new-dtags -Wl,--no-undefined -lc  -flto=4 -fuse-linker-plugin
-Wl,--as-needed -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe -march=core2 -mtune=core2
-mno-3dnow -mno-sse4.2 -mno-avx -mno-xop -mno-fma4 -mno-sse4a -shared
-Wl,-soname,phonon.so -o lib/phonon.so
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart0.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart1.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart2.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart3.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart4.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart5.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart6.cpp.o
CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart7.cpp.o
-lpython3.2 -lphonon /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so
-lpthread /usr/lib64/qt4/libQtGui.so -Wl,-rpath,/usr/lib64/qt4:
/tmp/ccpIV11w.ltrans24.ltrans.o: In function `__base_dtor ':
/usr/include/phonon/backendcapabilities.h:57: undefined reference to `vtable
for Phonon::BackendCapabilities::Notifier'
/usr/include/phonon/backendcapabilities.h:57: undefined reference to `vtable
for Phonon::BackendCapabilities::Notifier'
/usr/include/phonon/backendcapabilities.h:57: undefined reference to `vtable
for Phonon::BackendCapabilities::Notifier'
collect2: error: ld returned 1 exit status

And it is sipphononpart5.cpp.o again.

I use Markus's binutils patch (now trunk binutils got it too! :-) ) and the
only patch more to revision 209048 is the one from Martin Jambor (Simple
enhancements to dumping in ipa.c and ipa-cp.c).

It fails with python-3.2 only, python 2.7 and 3.3 version looks to be fine.
Without LTO it compiles fine.

Both binutils' nm and gcc-nm returns: no symbols
for /usr/lib64/libphonon.so.4.7.1.

But mc (Internal viewer of a Midnight Commander) can se them:

00000000000273f0 T Phonon::BackendCapabilities::notifier()

List of vtables inside /usr/lib64/libphonon.so.4.7.1:

                 U vtable for __cxxabiv1::__class_type_info
                 U vtable for __cxxabiv1::__si_class_type_info
                 U vtable for __cxxabiv1::__vmi_class_type_info
000000000026d580 V vtable for Phonon::SeekSlider
000000000026dd80 V vtable for Phonon::AudioOutput
000000000026dc00 V vtable for Phonon::MediaObject
000000000026e0c0 V vtable for Phonon::PulseStream
000000000026cb40 V vtable for Phonon::VideoPlayer
000000000026ce00 V vtable for Phonon::VideoWidget
000000000026c380 V vtable for Phonon::EffectWidget
000000000026c1c0 V vtable for Phonon::GlobalConfig
000000000026e180 V vtable for Phonon::PulseSupport
000000000026d340 V vtable for Phonon::VolumeSlider
000000000026e000 V vtable for Phonon::AudioDataOutput
000000000026c900 V vtable for Phonon::MediaController
000000000026d880 V vtable for Phonon::StreamInterface
000000000026d8c0 V vtable for Phonon::MediaNodePrivate
000000000026db40 V vtable for Phonon::VolumeFaderEffect
000000000026e280 V vtable for Phonon::MediaSourcePrivate
000000000026df00 V vtable for Phonon::AbstractAudioOutput
000000000026e2c0 V vtable for Phonon::AbstractMediaStream
000000000026c780 V vtable for Phonon::AbstractMediaStreamPrivate
000000000026dcc0 V vtable for Phonon::Effect
000000000026dea0 V vtable for Phonon::MediaNode

Objdump -t see no symbols, -T see symbols.

I rebuild phonon by the same compiler/binutils as pykde4.

Could you kindly please check if you are affected too?
Thank you in advance.


  parent reply	other threads:[~2014-04-03 12:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-15638-4@http.gcc.gnu.org/bugzilla/>
2014-04-03  7:44 ` eving.tw at gmail dot com
2014-04-03  8:11 ` pinskia at gcc dot gnu.org
2014-04-03 12:30 ` manu at gcc dot gnu.org [this message]
2014-04-03 18:02 ` eving.tw at gmail dot com
2014-04-03 19:39 ` redi at gcc dot gnu.org
     [not found] <bug-15638-5711@http.gcc.gnu.org/bugzilla/>
2007-02-15 17:51 ` pinskia at gcc dot gnu dot org
2007-03-28 16:37 ` bangerth at dealii dot org
2009-02-10 15:17 ` jsm28 at gcc dot gnu dot org
2009-02-10 15:24 ` manu at gcc dot gnu dot org
2009-02-10 15:35 ` joseph at codesourcery dot com
2009-02-11  1:16 ` joseph at codesourcery dot com
2009-03-31 12:43 ` jsm28 at gcc dot gnu dot org
2009-03-31 12:45 ` jsm28 at gcc dot gnu dot org
2004-05-25 18:20 [Bug preprocessor/15638] New: " jlawson-gcc at bovine dot net
2004-05-25 18:25 ` [Bug preprocessor/15638] " pinskia at gcc dot gnu dot org
2004-05-28 22:04 ` neil at gcc dot gnu dot org
2004-05-28 22:05 ` falk at debian dot org
2004-05-28 22:36 ` pinskia at gcc dot gnu dot org
2004-05-29  0:13 ` bbrownstone at hotmail dot com
2004-05-29  1:31 ` bbrownstone at hotmail dot com
2004-05-29  2:55 ` zack at codesourcery dot com
2004-05-30  4:44 ` jlawson-gcc at bovine dot net
2004-06-26 20:21 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15638-4-Rv8F4a2xiC@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).