Menu

#8 bug in makefile

v1.0_(example)
open
nobody
1
2014-09-20
2014-09-20
ifns
No

description:

line
ifeq ($(OSTYPE),darwin)
doesn't work as expected.

$(OSTYPE) is evaluated to empty string by make.
But anyway echo $OSTYPE returns darwin13 on my system, not darwin.

conditions:

  • uname -rsv
    Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
  • bash --version
    GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
  • make --version
    GNU Make 3.81

Related

Bugs: #8

Discussion

  • Ray Newman

    Ray Newman - 2014-09-20

    Can't reproduce; also echo $OSTYPE on my system returns 'darwin'.
    According to the 'conditions:' below, I am running the same version of OS/X; mine is 10.9.4. What version do you have?
    Also what is returned on 'gcc --version'?

    Ray

    On 21 Sep 2014, at 6:46 am, ifns ifns@users.sf.net wrote:

    [bugs:#8] bug in makefile

    Status: open
    Group: v1.0_(example)
    Labels: makefile os x
    Created: Sat Sep 20, 2014 08:46 PM UTC by ifns
    Last Updated: Sat Sep 20, 2014 08:46 PM UTC
    Owner: nobody

    description:

    line
    ifeq ($(OSTYPE),darwin)
    doesn't work as expected.

    $(OSTYPE) is evaluated to empty string by make.
    But anyway echo $OSTYPE returns darwin13 on my system, not darwin.

    conditions:

    uname -rsv
    Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
    bash --version
    GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
    make --version
    GNU Make 3.81
    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mumps/bugs/8/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #8

    • ifns

      ifns - 2014-09-20
      • 10.9.4 OS/X also
      • gcc (Homebrew gcc 4.9.1) 4.9.1
       
      • Ray Newman

        Ray Newman - 2014-09-20

        Can't get the problem here.

        Only differences are:

        1. I am using gcc (GCC) 4.9.0 20130929 (experimental) which should make no difference.

        2. I use csh not bash. Tried exec bash and it still worked OK.

        I would look for something destroying that variable on your system.

        Ray

        On 21 Sep 2014, at 8:10 am, ifns ifns@users.sf.net wrote:

        10.9.4 OS/X also
        gcc (Homebrew gcc 4.9.1) 4.9.1
        [bugs:#8] bug in makefile

        Status: open
        Group: v1.0_(example)
        Labels: makefile os x
        Created: Sat Sep 20, 2014 08:46 PM UTC by ifns
        Last Updated: Sat Sep 20, 2014 08:46 PM UTC
        Owner: nobody

        description:

        line
        ifeq ($(OSTYPE),darwin)
        doesn't work as expected.

        $(OSTYPE) is evaluated to empty string by make.
        But anyway echo $OSTYPE returns darwin13 on my system, not darwin.

        conditions:

        uname -rsv
        Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
        bash --version
        GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
        make --version
        GNU Make 3.81
        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mumps/bugs/8/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #8

        • ifns

          ifns - 2014-09-21

          AFAIU OSTYPE variable is not passed to the shell subprocess if it's not set explicitly with export command.
          I would replace $(OSTYPE) with smth like $(uname -s) in Makefile.

           
          • Ray Newman

            Ray Newman - 2014-09-21

            OS/X with command line tools sets OSTYPE (just tested on 3 differing MACs).
            I would you find what is unsetting it on yours.

            On 21 Sep 2014, at 4:27 pm, ifns ifns@users.sf.net wrote:

            AFAIU OSTYPE variable is not passed to the shell subprocess if it's not set explicitly with export command.
            I would replace $(OSTYPE) with smth like $(uname -s) in Makefile.

            [bugs:#8] bug in makefile

            Status: open
            Group: v1.0_(example)
            Labels: makefile os x
            Created: Sat Sep 20, 2014 08:46 PM UTC by ifns
            Last Updated: Sat Sep 20, 2014 08:46 PM UTC
            Owner: nobody

            description:

            line
            ifeq ($(OSTYPE),darwin)
            doesn't work as expected.

            $(OSTYPE) is evaluated to empty string by make.
            But anyway echo $OSTYPE returns darwin13 on my system, not darwin.

            conditions:

            uname -rsv
            Darwin 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64
            bash --version
            GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
            make --version
            GNU Make 3.81
            Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mumps/bugs/8/

            To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

             

            Related

            Bugs: #8


Log in to post a comment.