Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2019 13:16:15 +0800 (WITA)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        =?UTF-8?Q?T=C4=B3l_Coosemans?= <tijl@FreeBSD.org>,  Andreas Tobler <andreast@FreeBSD.org>, freebsd-toolchain@freebsd.org
Cc:        Diane Bruce <db@db.net>, Dima Pasechnik <dimpase+freebsd@gmail.com>,  Dave Horsfall <dave@horsfall.org>, freebsd-ports@freebsd.org,  Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   libgcc_s.so.1, Fortran, and the world (was: FreeCAD 0.17 && /lib//libgcc_s.so.1)
Message-ID:  <alpine.LSU.2.21.1904081314010.3629@anthias.pfeifer.com>
In-Reply-To: <alpine.LSU.2.21.1902271446270.4073@anthias.pfeifer.com>
References:  <a2102b4e-7d7a-7d5b-2ba1-b9a14f8574f6@pinyon.org> <f6a45ec9-7ae4-d9ba-f71c-f2ef8c235039@grosbein.net> <416689e6-37f9-17ec-54d8-0d224c26f30f@pinyon.org> <20190217151604.GB68620@night.db.net> <20190221180515.39c79ce6@kalimero.tijl.coosemans.org> <092b17f0-6fbf-662e-1061-403442248abd@pinyon.org> <20190222140407.2145c11e@kalimero.tijl.coosemans.org> <alpine.BSF.2.21.9999.1902230913380.84718@aneurin.horsfall.org> <20190223000620.GA12700@troutmask.apl.washington.edu> <CAAWYfq20PgO9RoaN2esyqf-dc2xyqfmkLVaSe8yrx-X4E1s=ZQ@mail.gmail.com> <20190223183117.GA65065@night.db.net> <20190224142150.685debe4@kalimero.tijl.coosemans.org> <alpine.LSU.2.21.1902271446270.4073@anthias.pfeifer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-577516345-1554700492=:3629
Content-Type: text/plain; CHARSET=UTF-8
Content-Transfer-Encoding: 8BIT

Hmm, I received zero feedback on this proposal, when it appeared
important for a number of users.

What's your take, Andreas, Tijl (your patch essentially with a bit
of an updated description), and toolchain?

Gerald

On Wed, 27 Feb 2019, Gerald Pfeifer wrote:
> Hi Tijl, hi everyone, 
> 
> and let me add Andreas who has been helping on the GCC side (both 
> ports, viz. his work on arm and powerpc, and upstream) and toolchain@!
:
> On Sun, 24 Feb 2019, Tijl Coosemans wrote:
>> GCC_4.3.0 instead of GCC_3.3.0.  The gcc commit that changed this
>> doesn't explain why this was done, but we'll have to make the same
>> change in FreeBSD ARM libgcc_s to be ABI compatible (since _Unwind* is
>> part of the ABI).  This isn't a blocker for the patch.
>> 
>> I emailed the patch to gerald on 2017-02-21.  He responded in the usual
>> way that he prefers patches submitted upstream and because I thought the
>> patch would not be accepted upstream he proposed an alternative solution
>> where gcc would always add -rpath on FreeBSD so you didn't have to
>> specify it on the command line.  I responded this wouldn't fix the case
>> where clang was used as a linker (e.g. to combine fortran and c++ code
>> in one program) and that the FAQ on the gcc website said it was a bad
>> idea for other reasons.  I also said upstream might accept my patch if
>> it was a configure option but that the gcc configure scripts are
>> complicated and I didn't know where to add it exactly.  Then silence.
> 
> To move this forward, let me include an updated version of the patch
> Tijl shared on 2017-02-21 (which still was in my inbox/todo list) for 
> consideration for our ports collection, initially for lang/gcc8 given 
> that this is the default in the ports collection.
> 
> 
> (The lang/gcc* ports actually do carry local patches, e.g. for arm or 
> powerpc or -fuse-ld=lld, but you are right that I usually try to get 
> things upstream first, fixing things upstream myself when I can, or 
> asking for help. The problem in this specific case was/is that I'm 
> quite not enough into this area so cannot really assess and clearly
> stalling over that was not good.)
> 
> 
> Find patch-gfortran-libgcc attached which should simply plug into 
> lang/gcc8/files and lang/gcc8-devel/files.
> 
> Feedback very welcome!
> 
> Gerald
--0-577516345-1554700492=:3629
Content-Type: text/plain; charset=US-ASCII; name=patch-gfortran-libgcc
Content-Transfer-Encoding: BASE64
Content-Description: 
Content-Disposition: attachment; filename=patch-gfortran-libgcc

R0NDIGhhcyB0d28gcnVudGltZSBsaWJyYXJpZXM6ICBUaGUgc3RhdGljIGxp
YnJhcnkgbGliZ2NjLmEgKC1sZ2NjKSBhbmQNC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Ghl
c2UgbWF0dGVycw0KIAl9DQogICAgIH0NCiANCi0jaWZkZWYgRU5BQkxFX1NI
QVJFRF9MSUJHQ0MNCisjaWYgMA0KICAgaWYgKGxpYnJhcnkpDQogICAgIHsN
CiAgICAgICB1bnNpZ25lZCBpbnQgaTsNCg0KLS0tIGxpYmdmb3J0cmFuL01h
a2VmaWxlLmluLm9yaWcJMjAxOS0wMi0yMiAxNDoyMjoxMy4wMDAwMDAwMDAg
KzAwMDANCisrKyBsaWJnZm9ydHJhbi9NYWtlZmlsZS5pbgkyMDE5LTAyLTI3
IDE2OjI3OjA4Ljg1NjQwODAwMCArMDAwMA0KQEAgLTYyNSw3ICs2MjUsNyBA
QA0KIAkkKExUTERGTEFHUykgJChMSUJRVUFETElCKSAuLi9saWJiYWNrdHJh
Y2UvbGliYmFja3RyYWNlLmxhIFwNCiAJJChIV0NBUF9MREZMQUdTKSBcDQog
CS1sbSAkKGV4dHJhX2xkZmxhZ3NfbGliZ2ZvcnRyYW4pIFwNCi0JJCh2ZXJz
aW9uX2FyZykgLVdjLC1zaGFyZWQtbGliZ2NjDQorCSQodmVyc2lvbl9hcmcp
DQogDQogbGliZ2ZvcnRyYW5fbGFfREVQRU5ERU5DSUVTID0gJCh2ZXJzaW9u
X2RlcCkgbGliZ2ZvcnRyYW4uc3BlYyAkKExJQlFVQURMSUJfREVQKQ0KIGNh
ZmV4ZWNsaWJfTFRMSUJSQVJJRVMgPSBsaWJjYWZfc2luZ2xlLmxhDQo=

--0-577516345-1554700492=:3629--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.21.1904081314010.3629>