From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68786 invoked by alias); 30 Jul 2015 15:33:24 -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 68699 invoked by uid 48); 30 Jul 2015 15:33:11 -0000 From: "zclai at yahoo dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zclai at yahoo dot com 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: short_desc 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: 2015-07/txt/msg02649.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67067 Alex Lai changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|#error -static-libstdc++ |"Trouble closing elf file" |not implemented |and "-static-libstdc++ not | |implemented" --- Comment #1 from Alex Lai --- 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 w= ith: $ ../gcc-5.2.0.src/configure --prefix=3D$HOME/gcc-5.2.0 --enable-languages= =3Dc,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=E2=80=99t 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: $? =3D 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__ =3D=3D 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 eit= her 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/b= in:/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: 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: List-Archive: List-Post: List-Help: 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" 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: 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?id=67068 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.