[Bug bootstrap/104057] cross compiler multilibs libs path too chaos
unlvsur at live dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 17 01:45:56 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104057
--- Comment #20 from cqwrteur <unlvsur at live dot com> ---
(In reply to cqwrteur from comment #18)
> (In reply to Andrew Pinski from comment #17)
> > also multilib directories under ${prefix} for a cross does not use OS
> > directories as most cross compilers have OS directories.
>
> Of course. I installed Linux kernel headers and glibc.
>
> they are installed in $PREFIX/$TARGET
>
> Since we need to build 32 glibc, x32 glibc, 64 glibc. I installed them into
> separate dirs and copy files with each other. Or they will overwrite file.
>
> Then copy all headers to $PREFIX/$TARGET/include
>
> glibc32/lib to $PREFIX/lib32 $PREFIX/lib/32
>
> glibc64/lib to $PREFIX/lib64 $PREFIX/lib
>
> glibcx32/lib to $PREFIX/libx32 $PREFIX/lib/x32
I use the first gcc to build them to build libgcc and libsupc++.
Build them to build glibc.
Then rebuild entire gcc with glibc.
More information about the Gcc-bugs
mailing list