https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89955

            Bug ID: 89955
           Summary: riscv.h improperly defines STARTFILE_PREFIX_SPEC spec
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kallisti5 at unixzen dot com
  Target Milestone: ---

https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/riscv/riscv.h?view=markup#l885

gcc/config/riscv.h defines STARTFILE_PREFIX_SPEC which breaks sysroot's.

Under a new platform (Haiku), our bootstrap was failing missing core existing
cross-compiled system libraries which were present and accounted for.

Eventually I figured out to #undef STARTFILE_PREFIX_SPEC in our
gcc/config/riscv/haiku.h header and things magically began working.  Since
we're cross compiling with a sysroot (which is *not*) at /usr/lib,/lib,etc, it
breaks the sysroot functionality.

Likely I think STARTFILE_PREFIX_SPEC needs moved to config/riscv/linux.h ?

Reply via email to