From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29590 invoked by alias); 28 Oct 2009 19:19:39 -0000 Received: (qmail 29573 invoked by uid 22791); 28 Oct 2009 19:19:38 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from moene.org (HELO moene.org) (82.95.66.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 19:19:34 +0000 Received: from [127.0.0.1] (ident=toon) by moene.org with esmtp (Exim 4.69) (envelope-from ) id 1N3E3N-000228-SA; Wed, 28 Oct 2009 20:19:29 +0100 Message-ID: <4AE89941.4040806@moene.org> Date: Wed, 28 Oct 2009 19:20:00 -0000 From: Toon Moene User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Rafael Espindola CC: GCC Patches , Richard Guenther , Diego Novillo , Fortran List Subject: Re: [patch] Fix PR41764 References: <38a0d8450910211055g4968b06fie72550732e1dcf4c@mail.gmail.com> <38a0d8450910211517j4af51106qf3f81c169a7e830c@mail.gmail.com> <38a0d8450910261141i5f4dda4erfd4122c388f2f240@mail.gmail.com> <38a0d8450910271648m76a92c3as1b8a8ee9404cc7e1@mail.gmail.com> <38a0d8450910280725k575ed490i5ec051d5e8e2b91a@mail.gmail.com> In-Reply-To: <38a0d8450910280725k575ed490i5ec051d5e8e2b91a@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01694.txt.bz2 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