[MacPorts] #41614: always build gmp from source? (Fix SIGILL on Core2Du)
#41614: always build gmp from source? (Fix SIGILL on Core2Du) -------------------------+-------------------------------- Reporter: kurtjaeke@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: -------------------------+-------------------------------- There have been a number of issues with gmp failing with SIGILL when installed from binary archives: #40439, #40621, #41364, #41555. These issues are difficult to debug, since the symptoms are, amongst others, strange crashes during compilation. Background: gmp detects available CPU instructions during "configure". This information is used in the build process to conditionally enable assembler code. In the bugs mentioned above, the affected architecture seems to be Core2Duo, the first x86_64 CPUs Apple shipped (IIRC) (the MacPorts build farm is supposedly more modern). This brings up the question: should gmp '''always''' be built from source? Is this a viable approach to solving this issue? Thanks for discussing. Attached is a piece of Fortran code which triggers this issue. Run your favorite Fortran compiler with the '''-v''' flag, and if the compiler backend ('''f951''' for any gcc) crashes with SIGILL, this problem affects you. -- Ticket URL: <https://trac.macports.org/ticket/41614> MacPorts <http://www.macports.org/> Ports system for OS X
#41614: gmp: always build from source? (Fix SIGILL on Core2Du) --------------------------+------------------------ Reporter: kurtjaeke@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------+------------------------ Changes (by ryandesign@…): * cc: kurtjaeke@… (removed) * owner: macports-tickets@… => mcalhoun@… * port: => gmp Comment: Replying to [ticket:41614 kurtjaeke@…]:
This brings up the question: should gmp '''always''' be built from source? Is this a viable approach to solving this issue? Thanks for discussing.
Sure, we could do that. We'd just have to clear `archive_sites`. We did that for atlas awhile back (as part of r104549). -- Ticket URL: <https://trac.macports.org/ticket/41614#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41614: gmp: always build from source? (Fix SIGILL on Core2Du) --------------------------+------------------------ Reporter: kurtjaeke@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------+------------------------ Comment (by kurtjaeke@…): Replying to [comment:2 ryandesign@…]:
Replying to [ticket:41614 kurtjaeke@…]:
This brings up the question: should gmp '''always''' be built from source? Is this a viable approach to solving this issue? Thanks for discussing. Sure, we could do that. We'd just have to clear `archive_sites`. We did that for atlas awhile back (as part of r104549). Awesome. #41364 and #41555 now have debug data that show the failure in gmp. #40439 is closed, but was supposedly fixed for OP by reinstalling gmp from source. Data is pending for #40621.
What needs to be done to clear the `archive_sites`? When this is done, gmp will need a revision bump, right? -- Ticket URL: <https://trac.macports.org/ticket/41614#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41614: gmp: always build from source? (Fix SIGILL on Core2Du) --------------------------+------------------------ Reporter: kurtjaeke@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gmp | --------------------------+------------------------ Comment (by kurtjaeke@…): #41364 is (was) also the same issue. What needs to be done to proceed? -- Ticket URL: <https://trac.macports.org/ticket/41614#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41614: gmp: always build from source? (Fix SIGILL on Core2Du) --------------------------+------------------------ Reporter: kurtjaeke@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gmp | --------------------------+------------------------ Changes (by mcalhoun@…): * status: new => closed * resolution: => fixed Comment: Fixed in r118605. -- Ticket URL: <https://trac.macports.org/ticket/41614#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41614: gmp: always build from source? (Fix SIGILL on Core2Du) --------------------------+------------------------ Reporter: kurtjaeke@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gmp | --------------------------+------------------------ Comment (by jmr@…): It’s kind of lame not allowing binaries to be used at all. Better would be to do a lowest common denominator build normally, and provide a variant to build optimised for the local machine for users who really need the performance. -- Ticket URL: <https://trac.macports.org/ticket/41614#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts