From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5156 invoked by alias); 20 Sep 2013 22:15:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5049 invoked by uid 48); 20 Sep 2013 22:15:03 -0000 From: "kaltsi+gnu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/33763] [4.6/4.7/4.8 Regression] Bogus inlining failed in call to `xxx': redefined extern inline functions are not considered for inlining Date: Fri, 20 Sep 2013 22:15: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.1.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kaltsi+gnu at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01565.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D33763 Juha Kallioinen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaltsi+gnu at gmail dot com --- Comment #41 from Juha Kallioinen --- Maybe this failure with a newly built gcc 4.8 is related to this bug. Built gcc today from commit a846b696b9f3e9b9caab7e43ef8450cbded2715c git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@202762 138bc75d-0d04-0410-961f-82ee72b ~/gcc48/bin$ ./gcc -v Using built-in specs. COLLECT_GCC=3D./gcc COLLECT_LTO_WRAPPER=3D/home/kaltsi/gcc48/libexec/gcc/x86_64-unknown-linux-g= nu/4.8.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc/configure --prefix=3D/home/kaltsi/gcc48 --disable-bootstrap --with-tune=3Dgeneric --disable-multilib --enable-checking=3Drelease --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-lto --enable-linker-build-id --enable-languages=3Dc,c++ --enable-threads=3Dposix --enable-shared --disable-libgcj Thread model: posix gcc version 4.8.2 20130920 (prerelease) (GCC)=20 Compiling the following simple program with these options on an Ubuntu 12.04 causes a failure: $ gcc -Wp,-D_FORTIFY_SOURCE=3D2 -O2 -D_GNU_SOURCE=3D1 -- foo.c -- #include extern ssize_t recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen); int main() { int s, flags; void *buf; size_t len; struct sockaddr *from; socklen_t* fromlen; return(recvfrom(s, buf, len, flags, from, fromlen)); } -- foo.c -- ~/gcc48/bin$ ./gcc -Wp,-D_FORTIFY_SOURCE=3D2 -O2 -D_GNU_SOURCE=3D1 foo.c In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:251:0, from foo.c:5: foo.c: In function =E2=80=98main=E2=80=99: /usr/include/x86_64-linux-gnu/bits/socket2.h:65:1: error: inlining failed in call to always_inline =E2=80=98recvfrom=E2=80=99: mismatched arguments recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^ foo.c:12:18: error: called from here return(recvfrom(s, buf, len, flags, from, fromlen)); ^ >>From gcc-bugs-return-430326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 20 22:16:33 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6584 invoked by alias); 20 Sep 2013 22:16:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6448 invoked by uid 48); 20 Sep 2013 22:16:31 -0000 From: "rogerdpack at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/16371] libstdc++ fails for crosses Date: Fri, 20 Sep 2013 22:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 3.4.1 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: rogerdpack at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: 2013-09/txt/msg01566.txt.bz2 Content-length: 861 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16371 roger pack changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rogerdpack at gmail dot com --- Comment #27 from roger pack --- (sorry to comment on something so ancient). Anyway ran into something similar today, a couple of hints/clues: mine was caused by having an empty environment variable CFLAGS (like bash's export CFLAGS=). So unsetting that and I was good to go. Also (as others have noted) this error message basically means "your cross compiler is unable to link at all" or something like that (the config.log that may describe it is called something like i686-w64-mingw32/libstdc++-v3/config.log)