error with configure (svn 64857)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mathieu Prevot

    error with configure (svn 64857)

    Hi,

    I have the following error when I run configure:

    checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)

    what can I do ?

    Mathieu
  • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

    #2
    Re: error with configure (svn 64857)

    I have the following error when I run configure:
    >
    checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
    >
    what can I do ?
    Study config.log for the source of the problem.

    Regards,
    Martin

    Comment

    • Mathieu Prevot

      #3
      Re: error with configure (svn 64857)

      2008/7/10 "Martin v. Löwis" <martin@v.loewi s.de>:
      >I have the following error when I run configure:
      >>
      >checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
      >>
      >what can I do ?
      >
      Study config.log for the source of the problem.
      Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

      configure:21939 : checking for wchar_t
      configure:21970 : icc -c -g -O2 conftest.c >&5
      conftest.c(123) : warning #279: controlling expression is constant
      if ((ac__type_new_ *) 0)
      ^

      configure:21976 : $? = 0
      configure:21991 : result: yes
      configure:21998 : checking size of wchar_t
      configure:22306 : icc -o conftest -g -O2 conftest.c >&5
      ld: library not found for -lgcc_s
      configure:22309 : $? = 1
      configure: program exited with status 1

      Mathieu

      Comment

      • WDC

        #4
        Re: error with configure (svn 64857)

        On Jul 10, 6:57 pm, "Mathieu Prevot" <mathieu.pre... @ens.frwrote:
        2008/7/10 "Martin v. Löwis" <mar...@v.loewi s.de>:
        >
        I have the following error when I run configure:
        >
        checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
        >
        what can I do ?
        >
        Study config.log for the source of the problem.
        >
        Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?
        >
        configure:21939 : checking for wchar_t
        configure:21970 : icc -c -g -O2  conftest.c >&5
        conftest.c(123) : warning #279: controlling expression is constant
          if ((ac__type_new_ *) 0)
              ^
        >
        configure:21976 : $? = 0
        configure:21991 : result: yes
        configure:21998 : checking size of wchar_t
        configure:22306 : icc -o conftest -g -O2   conftest.c  >&5
        ld: library not found for -lgcc_s
        configure:22309 : $? = 1
        configure: program exited with status 1
        >
        Mathieu
        I think he wanted YOU to find the problem. The best way to learn is to
        figure it out yourself! Good luck.

        Comment

        • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

          #5
          Re: error with configure (svn 64857)

          Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

          I'm not so sure that there is anything wrong in configure. configure
          doesn't pass -lgcc_s to icc; instead, icc is making this up on its
          own. So I would guess you need to get libgcc_s onto you system in a
          way that the linker finds it. Else you need to read the icc
          documentation (but I'm fairly sure that icc is *required* to link
          with libgcc_s, for interoperabilit y with gcc-compiled binaries).

          I'm somewhat puzzled that the wchar_t test is the one where it
          crashes; this test comes fairly late, and configure has run multiple
          compiler invocations before that.

          Can you build any binaries at all with your icc installation?

          Regards,
          Martin

          Comment

          • Mathieu Prevot

            #6
            Re: error with configure (svn 64857)

            2008/7/11 "Martin v. Löwis" <martin@v.loewi s.de>:
            >Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?
            >
            I'm not so sure that there is anything wrong in configure. configure
            doesn't pass -lgcc_s to icc; instead, icc is making this up on its
            own. So I would guess you need to get libgcc_s onto you system in a
            way that the linker finds it. Else you need to read the icc
            documentation (but I'm fairly sure that icc is *required* to link
            with libgcc_s, for interoperabilit y with gcc-compiled binaries).
            >
            I'm somewhat puzzled that the wchar_t test is the one where it
            crashes; this test comes fairly late, and configure has run multiple
            compiler invocations before that.
            >
            Can you build any binaries at all with your icc installation?
            Yes of course, I successfuly built and installed nmap, wget, so I
            thought there was something in the python configure process.

            If didn't investigate everything but I solved the problem by adding
            the "-static-libgcc" option:

            CFLAGS="-w -static-intel -static-libgcc"

            I think one should commit changes so configure can manage this. I can
            I want to help for further diagnosis or improvement. Also it seems
            -Wall will be deprecated, and usually we use -w:

            -w<n Control diagnostics, where <nis one of the following:

            0 -- Display errors (same as -w)

            1 -- Display warnings and errors (default)

            2 -- Display remarks, warnings, and errors


            Cheers,
            Mathieu

            Comment

            • Mathieu Prevot

              #7
              Re: error with configure (svn 64857)

              2008/7/11 WDC <ki4yjl@gmail.c om>:
              On Jul 10, 6:57 pm, "Mathieu Prevot" <mathieu.pre... @ens.frwrote:
              >2008/7/10 "Martin v. Löwis" <mar...@v.loewi s.de>:
              >>
              >I have the following error when I run configure:
              >>
              >checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
              >>
              >what can I do ?
              >>
              Study config.log for the source of the problem.
              >>
              >Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?
              >>
              >configure:2193 9: checking for wchar_t
              >configure:2197 0: icc -c -g -O2 conftest.c >&5
              >conftest.c(123 ): warning #279: controlling expression is constant
              > if ((ac__type_new_ *) 0)
              > ^
              >>
              >configure:2197 6: $? = 0
              >configure:2199 1: result: yes
              >configure:2199 8: checking size of wchar_t
              >configure:2230 6: icc -o conftest -g -O2 conftest.c >&5
              >ld: library not found for -lgcc_s
              >configure:2230 9: $? = 1
              >configure: program exited with status 1
              >>
              >Mathieu
              >
              I think he wanted YOU to find the problem. The best way to learn is to
              figure it out yourself! Good luck.
              Yes WDC I know, but for some problems 1) we can gain much efficiency
              with getting help from guys that are familiar with the environment and
              2) we also allow the committers to know a problem and improve the
              sources. That's the way an open source group works IMHO :)

              Now that the problem is solved for me, it is for all MacOSX+Intel icc guys.

              Cheers,
              Mathieu

              Comment

              • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

                #8
                Re: error with configure (svn 64857)

                If didn't investigate everything but I solved the problem by adding
                the "-static-libgcc" option:
                >
                CFLAGS="-w -static-intel -static-libgcc"
                >
                I think one should commit changes so configure can manage this.
                I don't think that change should be made. I'm almost certain that it is
                correct. Many people build Python with icc, and never reported any such
                problem. So there must something be wrong with your icc installation.

                Regards,
                Martin

                Comment

                Working...