1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GCC version in FreeBSD 8.2

Discussion in 'FreeBSD Development' started by Twister, Nov 18, 2011.

  1. Twister

    Twister New Member

    Messages:
    40
    Thanks Received:
    1
    Hello!

    Native version is 4.2.2
    Why it is so old? There is many gcc versions in ports.
    Can I use them to compile kernel/world?
    How many problems may arise if I will use gcc from ports?
     
  2. kpa

    kpa Well-Known Member

    Messages:
    4,080
    Thanks Received:
    803
    It's old because of the licensing of newer versions of gcc, 4.2.2 is the last version with a suitable license for FreeBSD.
    Stick to the default gcc on 8.2 or you will run into major problems. On FreeBSD 9 you have the option to use clang to compile world and kernel, however clang is not able to compile some of the ports.

    http://wiki.freebsd.org/BuildingFreeBSDWithClang
     
  3. OH

    OH New Member

    Messages:
    209
    Thanks Received:
    32
    Nor is GCC capable of building LibreOffice when kernel and world are build with clang