Re: F17: gcc not usable without glibc-devel.x86_64 -- %{?_isa}, again?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/4/12 Jim Meyering <jim@xxxxxxxxxxxx>:
> I built another x86_64 rawhide VM yesterday and was surprised
> to find that its gcc was unusable:
>
>    $ printf 'int main(){return 0;}' > k.c; gcc k.c
>    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../libc.so when searching for -lc
>    /usr/bin/ld: skipping incompatible /lib/libc.so when searching for -lc
>    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
>    /usr/bin/ld: cannot find -lc
>    collect2: error: ld returned 1 exit status
>    [Exit 1]
>
> How strange.
> strace (after enabling that) showed that since there was no
> /lib64/libc.{so,a}, it was finding/rejecting the i686 libraries.
>
> That led me to the realization that gcc is usable only
> after you've also installed the glibc-devel package, since

That's because your usage of the compiler suppose that you are using
the host glibc.

But one would use the compiler to compile for any target system
including another glibc or ulibc or dietlibc whatever, without any
chance for the produced binaries to be linked with anything from the
host system. (without having glibc-devel installed).

We prefer to use mock to cross compile for another system, but the
previous case seems valid to me.

Nicolas (kwizart)
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux