From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin@cygwin.com
Subject: Re: gcc v.11.3.0 failing - possible cause gcc or libreadline.a?
Date: Sat, 17 Dec 2022 15:40:02 -0700 [thread overview]
Message-ID: <a2c87661-41de-2221-9b6a-5f33cdbfbd59@Shaw.ca> (raw)
In-Reply-To: <DB6P18901MB0055CB2FA11847A55C63B1B4A4E19@DB6P18901MB0055.EURP189.PROD.OUTLOOK.COM>
On Thu, 15 Dec 2022 08:06:01 +0000, Fergus Daly wrote:
>>> In a gcc build script terminating with the instruction
>>> gcc -w -static -o myexe -O3 ./myarchive.a -lreadline -lncurses -lm
>>> I have suddenly started getting very many instances of both of
>>> ld: /usr/src/debug/readline-8.2-2/terminal.c:nn various: undefined reference to `{various}'
>>> ld: /usr/src/debug/readline-8.2-2/display.c:nn various: undefined reference to `{various}'
>>> and the build fails.
> The problem was with readline not gcc
> and I assume originates in myarchive.a and the required switch -lreadline in the gcc line
> rather than in readline: nevertheless I reverted both libreadline-devel and libreadline7
> from 8.2-2 to 7.03 and the problem went away.
Please provide a few examples which include the actual texts of "nn various" and
`{various}' especially where any prefixes vary.
Did you also upgrade/downgrade libncurses-devel concurrent with
libreadline-devel as they are dependent?
Why suppress all warnings -w from the ld (or any) phase of compilation?
Those warnings could tell you what causes an issue.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
next prev parent reply other threads:[~2022-12-17 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 10:42 Fergus Daly
2022-12-15 8:06 ` Fergus Daly
2022-12-17 22:40 ` Brian Inglis [this message]
2022-12-19 12:13 ` Fergus Daly
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=a2c87661-41de-2221-9b6a-5f33cdbfbd59@Shaw.ca \
--to=brian.inglis@shaw.ca \
--cc=cygwin@cygwin.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).