[MacPorts] #64355: gcc10 @10.3.0_1: fixincludes math.h missing for Intel hardware on Mac OS X 10.7 Lion

MacPorts noreply at macports.org
Thu Jan 6 03:27:55 UTC 2022


#64355: gcc10 @10.3.0_1: fixincludes math.h missing for Intel hardware on Mac OS X
10.7 Lion
---------------------------+------------------------------
  Reporter:  johnrosshunt  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  lion i386 x86_64
      Port:  gcc10         |
---------------------------+------------------------------

Comment (by kencu):

 I seem to have that file as part of my standard kit:
 {{{
 $ uname -a
 Darwin macbook21.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23
 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386 i386

 $ ls -la /usr/include/architecture/i386/math.h
 -rw-r--r--  1 root  wheel  24257 25 May  2011
 /usr/include/architecture/i386/math.h
 }}}

 I presume you have the command line tools installed, of course.

 However, even once you figure out where your standard headers went (I
 presume reinstalling your command line tools is what is needed there) all
 does not seem to be well with the macports gcc versions I have installed
 on 10.7:

 {{{
 $ cat mathtest.c
 #include <math.h>
 int main(void)
 {
     return 0;
 }

 $/usr/bin/gcc mathtest.c
 -- all good --

 $ /opt/local/bin/gcc-mp-11  mathtest.c
 In file included from /opt/local/lib/gcc11/gcc/x86_64-apple-
 darwin11/11.2.0/include-fixed/math.h:37,
                  from mathtest.c:1:
 /usr/include/architecture/i386/math.h: In function '__inline_isnormalf':
 /usr/include/architecture/i386/math.h:191:9: internal compiler error:
 Illegal instruction: 4
   191 |         static __inline__  int __inline_isnormalf( float __x ) {
 float fabsf = __builtin_fabsf(__x); if( __x != __x ) return 0; return
 fabsf < __builtin_inff() && fabsf >= __FLT_MIN__; }
       |         ^~~~~~
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <https://trac.macports.org/newticket> for instructions.


 $ /opt/local/bin/gcc-mp-10  mathtest.c
 In file included from /opt/local/lib/gcc10/gcc/x86_64-apple-
 darwin11/10.3.0/include-fixed/math.h:37,
                  from mathtest.c:1:
 /usr/include/architecture/i386/math.h: In function '__inline_isnormalf':
 /usr/include/architecture/i386/math.h:191:2: internal compiler error:
 Illegal instruction: 4
   191 |  static __inline__  int __inline_isnormalf( float __x ) { float
 fabsf = __builtin_fabsf(__x); if( __x != __x ) return 0; return fabsf <
 __builtin_inff() && fabsf >= __FLT_MIN__; }
       |  ^~~~~~
 libbacktrace could not find executable to open
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <https://trac.macports.org/newticket> for instructions.

 }}}

 So -- something is just hosed here, whether it is something on my specific
 system (could be, can't promise it is not) or whether it is a general MP
 problem I don't know at present.

-- 
Ticket URL: <https://trac.macports.org/ticket/64355#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list