public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zclai at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67067] "Trouble closing elf file" and "-static-libstdc++ not implemented"
Date: Thu, 30 Jul 2015 15:33:00 -0000	[thread overview]
Message-ID: <bug-67067-4-LrrE0Xroji@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67067-4@http.gcc.gnu.org/bugzilla/>

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

Alex Lai <zclai at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|#error -static-libstdc++    |"Trouble closing elf file"
                   |not implemented             |and "-static-libstdc++ not
                   |                            |implemented"

--- Comment #1 from Alex Lai <zclai at yahoo dot com> ---
on Solaris x86, I downloaded MPC, GMP and MPFR and extracted them into GCC
source directory as mpc,gmp and mpfr directories and configure GCC source with:

$ ../gcc-5.2.0.src/configure --prefix=$HOME/gcc-5.2.0 --enable-languages=c,c++
$ gmake

I got the following error:

Assembler: optimize.c
    "/var/tmp//ccMndPR3.s", line 85111 : Trouble closing elf file
gmake[3]: *** [cp/optimize.o] Error 1


The file mentioned in the error message doesn’t exist.

$ ls -l "/var/tmp//ccEtAJ5n.s"
/var/tmp//ccEtAJ5n.s: No such file or directory

The file system has plenty of room:

$  df -h /var/tmp
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s6       99G    27G    71G    28%    /var

$  uname -a
SunOS sbdsvrwm566 5.10 Generic_150401-20 i86pc i386 i86pc


the only error message in config.log is as follows:

configure:5091: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc
conftest.cpp  >&5
g++: unrecognized option `-static-libstdc++'
conftest.cpp:11:2: #error -static-libstdc++ not implemented
configure:5091: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}


the lib exists and its path is included in lib search path:

$  ls -l /usr/local/lib/libstdc++.so
lrwxrwxrwx   1 root     root          18 May 31  2012
/usr/local/lib/libstdc++.so -> libstdc++.so.6.0.3
$  echo $LD_LIBRARY_PATH
/opt/SUNWspro11/SUNWspro/prod/lib:/usr/local/lib:/usr/lib:/usr/lib/X11


the error apparently is due to the missing space between -static and
-libstdc++. however,none of the mentioned confdefs.h conftest.cpp exist either
under the source or build directory or installed packages.

obviously the older gcc was used to compile the new gcc:

configure:4074: checking for gcc
configure:4090: found /usr/sfw/bin/gcc
configure:4101: result: gcc
configure:4330: checking for C compiler version
configure:4339: gcc --version >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 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.


$  echo $PATH
/usr/ccs/bin:/usr/bin:/usr/sfw/bin:/usr/sbin:/usr/local/bin:/opt/SUNWspro/bin:/bin:/usr/bin:/usr/sbin:/usr/ucb:/bns/bin:/usr/openwin/bin:
>From gcc-bugs-return-493760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 30 15:40:36 2015
Return-Path: <gcc-bugs-return-493760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75387 invoked by alias); 30 Jul 2015 15:40:36 -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 75366 invoked by uid 48); 30 Jul 2015 15:40:32 -0000
From: "mwglass at sandia dot gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/67068] New: Ambiguous interfaces generated when including open mip fortran header
Date: Thu, 30 Jul 2015 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mwglass at sandia dot gov
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-67068-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: 2015-07/txt/msg02650.txt.bz2
Content-length: 1726

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg068

            Bug ID: 67068
           Summary: Ambiguous interfaces generated when including open mip
                    fortran header
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mwglass at sandia dot gov
  Target Milestone: ---

Using gfortran-5.2.0 with openmpi 1.8.7 on a Linux RHEL system.

When compiling a FORTRAN file  with "-freal-4-real-8 -fdefault-double-8
-fdefault-real-8" and having the file include the mpif.h header from openmpi,
gfortran generates the following error:

mpif-sizeof.h:575:41: c 'mpi_sizeof_real64_r7' and 'mpi_sizeof_real32_r7' in
generic interface 'mpi_sizeof' at (1)
mpif-sizeof.h:1139:42: Error: Ambiguous interfaces 'pmpi_sizeof_real64_r7' and
'pmpi_sizeof_real32_r7' in generic interface 'pmpi_sizeof' at (1)
mpif-sizeof.h:575:41: Error: Ambiguous interfaces 'mpi_sizeof_real64_r7' and
'mpi_sizeof_real32_r7' in generic interface 'mpi_sizeof' at (1)
mpif-sizeof.h:1139:42: Error: Ambiguous interfaces 'pmpi_sizeof_real64_r7' and
'pmpi_sizeof_real32_r7' in generic interface 'pmpi_sizeof' at (1)
mpif-sizeof.h:575:41: Error: Ambiguous interfaces 'mpi_sizeof_real64_r7' and
'mpi_sizeof_real32_r7' in generic interface 'mpi_sizeof' at (1)
mpif-sizeof.h:1139:42: Error: Ambiguous interfaces 'pmpi_sizeof_real64_r7' and
'pmpi_sizeof_real32_r7' in generic interface 'pmpi_sizeof' at (1)

All previous versions of gfortran (4,7.x, 4.8.x, 4.9.x, 5.0, and 5.1) did not
do this. This also has never been a issue with the Intel fortran compile v14.x
and 15.x.


  reply	other threads:[~2015-07-30 15:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 15:25 [Bug c++/67067] New: #error -static-libstdc++ not implemented zclai at yahoo dot com
2015-07-30 15:33 ` zclai at yahoo dot com [this message]
2015-07-30 17:07 ` [Bug c++/67067] "Trouble closing elf file" and "-static-libstdc++ not implemented" redi at gcc dot gnu.org
2015-07-30 19:36 ` zclai at yahoo dot com
2015-08-01  3:28 ` zclai at yahoo dot com
2024-01-24 10:31 ` [Bug bootstrap/67067] " redi at gcc dot gnu.org
2024-01-24 13:15 ` ro at gcc dot gnu.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-67067-4-LrrE0Xroji@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).