Announcement

Collapse
No announcement yet.

Allowing cc/c++ To Be More Easily Changed Out Has Been Deferred To Fedora 34

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Allowing cc/c++ To Be More Easily Changed Out Has Been Deferred To Fedora 34

    Phoronix: Allowing cc/c++ To Be More Easily Changed Out Has Been Deferred To Fedora 34

    Proposed last year for Fedora 32 was aiming to make it easier to swap out GCC for other alternate compilers (like Clang) by using the update-alternatives functionality on Fedora for handling the /usr/bin/cc and /usr/bin/c++ symbolic links. That work was deferred to Fedora 33 as it wasn't completed in time while now it's been deferred yet again to Fedora 34 next year...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    I was actually looking forward to this because of Silverblue.

    Comment


    • #3
      what a feature the wold was waiting for, ... not. Obviously that should have been plumbed a decade or two ago, … however, what stop you from build with make CC=clang CXX=clang+++? https://www.youtube.com/watch?v=NMQrnVDf-rY

      Comment


      • #4
        Originally posted by rene View Post
        what a feature the wold was waiting for, ... not. Obviously that should have been plumbed a decade or two ago, … however, what stop you from build with make CC=clang CXX=clang+++? https://www.youtube.com/watch?v=NMQrnVDf-rY
        Sometimes a project or its build system is setup in a manner where it will ignore the user and use the system defaults.

        Comment


        • #5
          Originally posted by skeevy420 View Post

          Sometimes a project or its build system is setup in a manner where it will ignore the user and use the system defaults.
          a) can you name one? b) nothing sed or vi would not solve – easy plumbing ;-)

          Comment


          • #6
            Originally posted by rene View Post

            a) can you name one? b) nothing sed or vi would not solve – easy plumbing ;-)
            Off the top of my head, no. It's been a while. IIRC, parts of Proton are like that but I believe those are bash scripts calling various make commands directly and setting anything globally wouldn't have mattered.

            I think this is about keeping up with Ubuntu more than anything. Ubuntu already does this and I've come across guides using update-alternative in the past...but being an Arch user when I read them I didn't pay attention to them because they weren't relevant for me back then.

            Comment


            • #7
              Originally posted by rene View Post

              a) can you name one? b) nothing sed or vi would not solve – easy plumbing ;-)
              a) there are plenty of examples you run into when you are a distribution. here is one https://github.com/pytorch/pytorch/issues/8107

              b) The purpose of alternatives is that you never have to worry about exceptions or bugs and how to handle them. You don't have to override and you don't have to muck around with vi or sed and you can switch back and forth trivially

              Comment


              • #8
                Originally posted by RahulSundaram View Post

                a) there are plenty of examples you run into when you are a distribution. here is one https://github.com/pytorch/pytorch/issues/8107
                I am a distribution (https://t2sde.org) and no example comes to mind.

                b) The purpose of alternatives is that you never have to worry about exceptions or bugs and how to handle them. You don't have to override and you don't have to muck around with vi or sed and you can switch back and forth trivially
                Wishfull thinking, if something is hardcoded it more likely hardcoded gcc anyways, so your fancy alternatives likely does not help you either ;-)

                Comment


                • #9
                  Originally posted by rene View Post
                  Wishfull thinking, if something is hardcoded it more likely hardcoded gcc anyways, so your fancy alternatives likely does not help you either ;-)
                  The main package for which this will be considered, Firefox, has a good chance it will go LLVM only.

                  Comment


                  • #10
                    Originally posted by rene View Post

                    I am a distribution (https://t2sde.org) and no example comes to mind.



                    Wishfull thinking, if something is hardcoded it more likely hardcoded gcc anyways, so your fancy alternatives likely does not help you either ;-)
                    I prefer to use gcc. And I don't use 'alternatives'. My default compiler is gcc but the following packages need CC, CXX or similar specified in the environment to avoid to avoid using clang: cups, mozilla-derivatives (firefox, js68 from firefox-68, seamonkey - ditto thunderbird except that builds much more slowly and larger with gcc), node-js, potrace, vlc.

                    Comment

                    Working...
                    X