public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.org>
To: Rafael Espindola <espindola@google.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	  Richard Guenther <richard.guenther@gmail.com>,
	 Diego Novillo <dnovillo@google.com>,
	Fortran List <fortran@gcc.gnu.org>
Subject: Re: [patch] Fix PR41764
Date: Wed, 28 Oct 2009 19:20:00 -0000	[thread overview]
Message-ID: <4AE89941.4040806@moene.org> (raw)
In-Reply-To: <38a0d8450910280725k575ed490i5ec051d5e8e2b91a@mail.gmail.com>

Rafael Espindola wrote:

> Adding fortran@gcc.gnu.org
> 
>> The joys of duplicated code...
>>
>> The attached patch fixes the PR, bootstraps and passes the regression
>> tests. Is it OK?

It doesn't fix everything.  I now get (gfortran is /usr/snp/bin/gfortran):

gfortran hdf2asim.o 
/scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/hdfg.a 
/scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a 
/scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/gcod.a -o 
/scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/bin/hdf2asim.x -O3 
-use-linker-plugin -ffast-math -fbacktrace -march=native -mtune=native 
-flto -fwhole-program --param max-inline-insns-single=10000000 --param 
max-inline-insns-auto=10000000 --param large-function-growth=100000 
--param large-function-insns=10000000 --param 
large-stack-frame-growth=100000 --param large-stack-frame=1000000 
-fdump-ipa-inline  -llapack -lblas -lfftw3 -L/home/hirlam/hdf/lib 
-lmfhdf -ldf -ljpeg -lz -lm
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of casihl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of cmachl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of casihl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of cmachl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of casihl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of cmachl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of casihl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
multiple definition of cmachl_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/port.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/gcod.a: 
multiple definition of grbcom_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/gcod.a: 
previous definition here
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/gcod.a: 
multiple definition of grbcom_
/usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/ld: 
error: /scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/lib/gcod.a: 
previous definition here
collect2: ld returned 1 exit status
make[1]: *** 
[/scratch/hirlam/hl_home/EXP/lib/src/linuxgfortran/bin/hdf2asim.x] Error 1

So the common blocks themselves (not the variables in it) are still 
multiply defined.

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html

  reply	other threads:[~2009-10-28 19:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-21 18:09 Rafael Espindola
2009-10-21 22:46 ` Rafael Espindola
2009-10-26 18:53   ` Rafael Espindola
2009-10-28  4:24     ` Rafael Espindola
2009-10-28 14:27       ` Rafael Espindola
2009-10-28 19:20         ` Toon Moene [this message]
2009-10-28 19:37           ` Rafael Espindola
2009-10-28 14:34       ` Ian Lance Taylor
2009-10-28 20:38         ` Tobias Burnus

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=4AE89941.4040806@moene.org \
    --to=toon@moene.org \
    --cc=dnovillo@google.com \
    --cc=espindola@google.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.guenther@gmail.com \
    /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).