This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: canadian cross trouble with libiberty location


>     --build=i686-pc-linux-gnu \
>     --host=x86_64-unknown-linux-gnu \
>     --target=i686-unknown-linux-gnu \

This isn't a true canadian, since build==target.  I refer to these as
"crossback" builds and they are even more rare than canadians.  The
documentation section "Configure Terms and History" talks about the
different types of builds.

> So perhaps gcc's build system made the libiberty in question one level
> up because the build system name looked local (duh)?

Most likely, there's somewhere testing "$build != $target" where it
should test "$build != $host" (or something similar, like
$build_alias), or getting the build vs target subdirectories confused.
But one drawback to even getting this right is that the build
libiberty and the target libiberty reside in the same directory yet
are built with different compilers, which may cause problems.  More
recent sources use build-<foo> to avoid this conflict.

One workaround is to use --build=i586-pc-linux-gnu instead of i686,
just so that build and target are different.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]