From: Jerry Lin <jerry.lin@lightelligence.ai>
To: "libstdc++@gcc.gnu.org" <libstdc++@gcc.gnu.org>
Subject: Checking is unexpected when cross compiling libstdc++ for RISCV
Date: Mon, 12 Jun 2023 03:19:08 +0000 [thread overview]
Message-ID: <IA1PR20MB49569425E7CEC9E479BBA033F754A@IA1PR20MB4956.namprd20.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1915 bytes --]
Hi, there,
I am using https://github.com/riscv-collab/riscv-gnu-toolchain to build a RISCV toolchain. I redirected the newlib link in riscv-gnu-toolchain repo to a local customized version by `--with-newlib-src` configure option.
However, when checking `getentropy` in build-gcc-newlib-stage2 step, the checking command is not expected.
In config.log we can see the checking command is:
######################
configure:75532: checking for getentropy
configure:75551: /local/jerry/llvm-test-suite/Phoenix/working/riscvgnutoolchain/build/build-gcc-newlib-stage2/./gcc/xgcc -shared-libgcc -B/local/jerry/llvm-test-suite/Phoenix/working/riscvgnutoolchain/build/build-gcc-newlib-stage2/./gcc -nostdinc++ -L/local/jerry/llvm-test-suite/Phoenix/working/riscvgnutoolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/libstdc++-v3/src -L/local/jerry/llvm-test-suite/Phoenix/working/riscvgnutoolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/libstdc++-v3/src/.libs -L/local/jerry/llvm-test-suite/Phoenix/working/riscvgnutoolchain/build/build-gcc-newlib-stage2/riscv64-unknown-elf/libstdc++-v3/libsupc++/.libs -B/local/jerry/llvm-test-suite/Phoenix/lt-release/riscv64-unknown-elf/bin/ -B/local/jerry/llvm-test-suite/Phoenix/lt-release/riscv64-unknown-elf/lib/ -isystem /local/jerry/llvm-test-suite/Phoenix/lt-release/riscv64-unknown-elf/include -isystem /local/jerry/llvm-test-suite/Phoenix/lt-release/riscv64-unknown-elf/sys-include -c -Os -mcmodel=medlow conftest.cpp >&5
configure:75551: $? = 0
configure:75583: result: yes
#######################
In fact, I expect the right command is without `-c` option. And the right compile command without `-c` option should fails with message `undefined reference to `getentropy'`. The expected checking result is `no`.
I wanna ask how can I remove the `-c` option and which option controls it.
Could anyone help me? Thanks!
BR,
Jerry
next reply other threads:[~2023-06-12 3:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-12 3:19 Jerry Lin [this message]
2023-06-12 6:46 ` Jonathan Wakely
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=IA1PR20MB49569425E7CEC9E479BBA033F754A@IA1PR20MB4956.namprd20.prod.outlook.com \
--to=jerry.lin@lightelligence.ai \
--cc=libstdc++@gcc.gnu.org \
/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).