This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/24909] New: libmatmul.a breaks darwin build


This patch breaks the build of libgfortran on darwin.

http://gcc.gnu.org/ml/gcc-cvs/2005-11/msg00601.html

-all_load  ./.libs/libmatmul.a   -lm ./.libs/libmatmul.a  -lc
-Wl,-single_module -install_name 
/Volumes/export/gcc/gcc-svn/head/testbin/lib/libgfortran.0.dylib
-compatibility_version 1 -current_version 1.0
ld: multiple definitions of symbol __gfortran_matmul_i4
./.libs/libmatmul.a(libmatmul_la-matmul_i4.o) definition of
__gfortran_matmul_i4 in section (__TEXT,__text)
./.libs/libmatmul.a(libmatmul_la-matmul_i4.o) definition of
__gfortran_matmul_i4 in section (__TEXT,__text)

The reason is that the link command tries to link two times the libmatmul.a
which gives the duplicates.

Atm, I have not a solution handy, but it seems to me that using convenience
library scheme would be the solution.

Modifying the libtool and removing the $convenience part in libtools
whole_archive_flag_spec makes it link and pass the testsuite.

Sorry for not posting a solution right now. Moving pressure :)


-- 
           Summary: libmatmul.a breaks darwin build
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreast at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin8.3.0
  GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]