public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56088] New: LTO error: error: inlining failed in call to always_inline ‘vswprintf’: recursive inlining
@ 2013-01-23 20:44 vhaisman at gmail dot com
  2013-01-23 20:45 ` [Bug c++/56088] " vhaisman at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: vhaisman at gmail dot com @ 2013-01-23 20:44 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56088
           Summary: LTO error: error: inlining failed in call to
                    always_inline ‘vswprintf’: recursive inlining
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vhaisman@gmail.com


Created attachment 29258
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29258
bug sources

I am seeing the following compilation/linking error that I am not seeing with
non-LTO builds:

--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<
In file included from :256:0:
/usr/include/x86_64-linux-gnu/bits/wchar2.h: In function
‘_ZN9__gnu_cxx12__to_xstringISbIwSt11char_traitsIwESaIwEEwEET_PFiPT0_mPKS6_P13__va_list_tagEmS9_z.constprop.0’:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:316:28: error: inlining failed in
call to always_inline ‘vswprintf’: recursive inlining
 __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
                            ^
In file included from
/home/wilx/gcc48/include/c++/4.8.0/bits/stl_algobase.h:3320:0,
                 from :1177:
/usr/include/x86_64-linux-gnu/bits/wchar2.h:322:50: error: called from here
   return __vswprintf_alias (__s, __n, __fmt, __ap);
                                                  ^
lto-wrapper: g++-4.8 returned 1 exit status
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<

I am attaching the single .o file that reproduces the problem for me. Here is a
command line that causes it for me:

g++-4.8 -v -fPIC -DPIC -r -nostdlib ./timehelper.o -march=native -O3 -flto
-flto-partition=none -fuse-linker-plugin -o out.so


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

end of thread, other threads:[~2014-02-16  8:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 20:44 [Bug c++/56088] New: LTO error: error: inlining failed in call to always_inline ‘vswprintf’: recursive inlining vhaisman at gmail dot com
2013-01-23 20:45 ` [Bug c++/56088] " vhaisman at gmail dot com
2013-01-23 20:47 ` vhaisman at gmail dot com
2013-01-23 20:49 ` [Bug lto/56088] " pinskia at gcc dot gnu.org
2013-01-23 20:50 ` pinskia at gcc dot gnu.org
2013-01-23 20:54 ` vhaisman at gmail dot com
2013-01-23 22:20 ` vhaisman at gmail dot com
2013-01-23 22:28 ` pinskia at gcc dot gnu.org
2013-01-24 12:13 ` [Bug lto/56088] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-28 14:31 ` rguenth at gcc dot gnu.org
2013-01-28 20:13 ` vhaisman at gmail dot com
2013-03-22 14:46 ` [Bug lto/56088] [4.8/4.9 " jakub at gcc dot gnu.org
2014-02-16  6:25 ` yshuiv7 at gmail dot com
2014-02-16  6:34 ` vhaisman at gmail dot com
2014-02-16  8:16 ` trippels at gcc dot gnu.org
2014-02-16  8:25 ` trippels 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).