Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-1515

sconsUtils fails to identify Ubuntu's gcc

    XMLWordPrintable

    Details

      Description

      On Ubuntu 12.04, gcc --version says:

      gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
      Copyright (C) 2011 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      This apparently isn't quite what sconsUtils expected, because it says:

      scons: Reading SConscript files ...
      Checking who built the CC compiler...(cached) error: no result
      CC is unknown version unknown

      Happily, everything seems to work anyway, as the fall-back options for the unknown compiler work fine with this one.

        Attachments

          Activity

          Hide
          jbosch Jim Bosch added a comment -

          Trivial change, ready for review.

          I just tweaked the regexp to also match the version string reported by Ubuntu-built gcc. I've checked that this still works with the gcc on lsst-dev. If you can verify that with any other flavors of gcc you have available, please do.

          All changes on tickets/DM-1515 of sconsUtils.

          $ git --no-pager log --stat --reverse LSST/master..tickets/DM-1515
          commit 10c36b4069a09988da83c8c0e320447948784a05
          Author: Jim Bosch <jbosch@astro.princeton.edu>
          Date:   Wed Dec 10 19:55:38 2014 -0500
           
              Update compiler check to work with Ubuntu-built gcc
           
           python/lsst/sconsUtils/state.py |    2 +-
           1 file changed, 1 insertion(+), 1 deletion(-)

          Show
          jbosch Jim Bosch added a comment - Trivial change, ready for review. I just tweaked the regexp to also match the version string reported by Ubuntu-built gcc. I've checked that this still works with the gcc on lsst-dev. If you can verify that with any other flavors of gcc you have available, please do. All changes on tickets/ DM-1515 of sconsUtils. $ git --no-pager log --stat --reverse LSST/master..tickets/DM-1515 commit 10c36b4069a09988da83c8c0e320447948784a05 Author: Jim Bosch <jbosch@astro.princeton.edu> Date: Wed Dec 10 19:55:38 2014 -0500   Update compiler check to work with Ubuntu-built gcc   python/lsst/sconsUtils/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
          Hide
          frossie Frossie Economou added a comment -

          Thanks - I noticed it wasn't working. I'll check whether it fixes up the Mac after you merge it in.

          Show
          frossie Frossie Economou added a comment - Thanks - I noticed it wasn't working. I'll check whether it fixes up the Mac after you merge it in.

            People

            Assignee:
            jbosch Jim Bosch
            Reporter:
            jbosch Jim Bosch
            Reviewers:
            Frossie Economou
            Watchers:
            Frossie Economou, Jim Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.