Page 2 of 2

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Wed Jan 04, 2023 1:54 pm
by JoeBox9
Octocontrabass wrote:
JoeBox9 wrote:Yeah, I was installing from the AUR but it was taking too long to compile, so I cancelled it in the middle
If you had let it finish, you wouldn't be having these problems.

Run "ls /usr/bin/i686-elf-*" and see if anything is listed.
A lot:

Code: Select all

/usr/bin/i686-elf-c++         /usr/bin/i686-elf-gcc-ranlib
/usr/bin/i686-elf-cpp         /usr/bin/i686-elf-gcov
/usr/bin/i686-elf-g++         /usr/bin/i686-elf-gcov-dump
/usr/bin/i686-elf-gcc         /usr/bin/i686-elf-gcov-tool
/usr/bin/i686-elf-gcc-11.1.0  /usr/bin/i686-elf-gdb
/usr/bin/i686-elf-gcc-7.1.0   /usr/bin/i686-elf-gdb-add-index
/usr/bin/i686-elf-gcc-ar      /usr/bin/i686-elf-lto-dump
/usr/bin/i686-elf-gcc-nm

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Wed Jan 04, 2023 1:56 pm
by Octocontrabass
You haven't finished removing your previous (broken) copy of i686-elf-gcc.

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Wed Jan 04, 2023 1:59 pm
by JoeBox9
Octocontrabass wrote:You haven't finished removing your previous (broken) copy of i686-elf-gcc.
yay can't find it:

Code: Select all

yay -R i686-elf-gcc
error: target not found: i686-elf-gcc[

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Wed Jan 04, 2023 2:18 pm
by Octocontrabass
I'm not familiar with that package manager, so I can't offer you any specific advice on how to tell it to clean up the leftover files.

Personally, I would try installing the AUR package again and see if it overwrites them. This may not be the best idea though.

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 5:58 am
by JoeBox9
Octocontrabass wrote:I'm not familiar with that package manager, so I can't offer you any specific advice on how to tell it to clean up the leftover files.

Personally, I would try installing the AUR package again and see if it overwrites them. This may not be the best idea though.
I tried installing i686-ellf-binutils, it installed quickly, then I installed i686-elf-gcc as you said removing. It said that some files in /usr/bin/ exist and then I removed them and now it says this:

Code: Select all

ldconfig: /usr/lib/libnvrtc.so.11.0 is not a symbolic link

ldconfig: /usr/lib/libnvrtc-builtins.so.11.0 is not a symbolic link
but it ran successfully without an error code. I tried compiling everything, and it was successful and booted successfully in qemu, but would the symbolic link errors do anything? How do I fix them?

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 11:49 am
by Octocontrabass
JoeBox9 wrote:would the symbolic link errors do anything?
Not for libnvrtc or libnvrtc-builtins.
JoeBox9 wrote:How do I fix them?
Remove the package that incorrectly installed libnvrtc and libnvrtc-builtins.

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 1:44 pm
by JoeBox9
Octocontrabass wrote:
JoeBox9 wrote:would the symbolic link errors do anything?
Not for libnvrtc or libnvrtc-builtins.
JoeBox9 wrote:How do I fix them?
Remove the package that incorrectly installed libnvrtc and libnvrtc-builtins.
Which one is that?

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 2:05 pm
by Octocontrabass
I don't know, try asking your package manager. (Something like "pacman -Qo /usr/lib/libnvrtc.so.11.0" maybe?)

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 2:30 pm
by JoeBox9
Octocontrabass wrote:I don't know, try asking your package manager. (Something like "pacman -Qo /usr/lib/libnvrtc.so.11.0" maybe?)

Code: Select all

error: No package owns /usr/lib/libnvrtc.so.11.0

Re: cc1: error: unrecognized command-line option ‘-quiet’

Posted: Thu Jan 05, 2023 5:53 pm
by Octocontrabass
I guess whatever put them there wasn't part of your package manager.

If you can't think of anything that might use those libraries, try removing them. Keep a backup in case they turn out to be important.