public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/24909]  New: libmatmul.a breaks darwin build
@ 2005-11-16 22:56 andreast at gcc dot gnu dot org
  2005-11-16 23:00 ` [Bug libfortran/24909] " jb at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-11-16 22:56 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-11-22 16:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-16 22:56 [Bug libfortran/24909] New: libmatmul.a breaks darwin build andreast at gcc dot gnu dot org
2005-11-16 23:00 ` [Bug libfortran/24909] " jb at gcc dot gnu dot org
2005-11-17  8:26 ` jb at gcc dot gnu dot org
2005-11-17 14:37 ` andreast at gcc dot gnu dot org
2005-11-17 22:35 ` geoffk at gcc dot gnu dot org
2005-11-17 22:55 ` andreast at gcc dot gnu dot org
2005-11-18 14:31 ` andreast at gcc dot gnu dot org
2005-11-19  8:38 ` ebotcazou at gcc dot gnu dot org
2005-11-20 21:39 ` jb at gcc dot gnu dot org
2005-11-21  9:02 ` ebotcazou at gcc dot gnu dot org
2005-11-22  8:59 ` jb at gcc dot gnu dot org
2005-11-22 16:04 ` pinskia at gcc dot gnu dot 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).