Re: about gcc vendor string

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

 



于 2014年06月23日 13:53, Marc Glisse 写道:
On Mon, 23 Jun 2014, hitmoon wrote:

Hi, everyone there:

I need to build gcc with a different vendor string, eg. x86_64-vendor-linux. Now i have a gcc as x86_64-redhat-linux, how can I do that? As far as i know, in the native build case, the new gcc will be 'x86_64-redhat-linux'. If I specify --target=x86_64-vendor-linux, the build will become a cross build. It seems that I am building a cross compiler, which is not the case. Since the only difference is the 'vendor' part. Is there a guide about how to build gcc with different vendor string in native build way?

Did you try specifying --build instead of --target?

Yes, I have specified --build, --host and --target, where --host euqals --target. But, it seems that some environment variables, such as LD, AS, AS_FOR_TARGET, LD_FOR_TARGET are also need to be override. This time, build goes much more further, but faild with:

../../../../gcc-4.6.2-20111027/libgcc/../gcc/libgcc2.c:1809: warning: implicit declaration of function ‘__builtin_huge_valq’ ../../../../gcc-4.6.2-20111027/libgcc/../gcc/libgcc2.c:1809: error: size of array ‘compile_type_assert’ is negative

In normal build, this error can not happen. So, it seems there is also something more to do .




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux