#34562 closed defect (fixed)
CC, CXX, OBJC, LDFLAGS, CFLAGS, CXXFLAGS, OBJCFLAGS should be set during destroot
Reported by: | watsodw | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | michaelld (Michael Dickens), macports1@…, poorsod@…, mojca (Mojca Miklavec), dtkerns, matthew.alexander.fraser@…, cmutel (Chris Mutel), mark.chilenski@…, charlie.ellison01@…, bczapp@…, jeremyhu (Jeremy Huddleston Sequoia), chmitchell@…, chief1983@…, mr.mcox@…, larryv (Lawrence Velázquez), ryandesign (Ryan Carsten Schmidt), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: |
Description
After Macports upgrade to 2.1.0 and 2.1.1, my py32-numpy install was reported as broken, even though it worked prior to the macports 2.1.0 update. Macports tried to fix it, but failed. Finally got it installed without the universal variant. Universal variant still won't install. By the way, the same macports 2.1.0 update also completely broke my Root install so that I had no choice but to remove it.
Attachments (1)
Change History (24)
Changed 12 years ago by watsodw
comment:1 Changed 12 years ago by mf2k (Frank Schima)
Cc: | dh@… openmaintainer@… removed |
---|---|
Owner: | changed from macports-tickets@… to dh@… |
comment:2 Changed 12 years ago by jmroot (Joshua Root)
From the log it looks like the variants being used are +atlas +gcc46 +universal? (It makes it easier if you mention this up front.)
comment:3 Changed 12 years ago by skymoo (Adam Mercer)
Cc: | ram@… removed |
---|
comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | michaelld@… macports1@… poorsod@… mojca@… david.t.kerns@… matthew.alexander.fraser@… cmutel@… mr.mcox@… mark.chilenski@… charlie.ellison01@… bczapp@… jeremyhu@… chmitchell@… chief1983@… added |
---|---|
Port: | py-numpy added; py32-numpy removed |
Summary: | Py32-numpy universal variant won't install after Macports upgrade to 2.1.0 → py-numpy universal variant destroot failure |
comment:5 follow-up: 10 Changed 11 years ago by chief1983@…
I don't know how 41114 is a duplicate, since this ticket is 18 months old, and this issue only just cropped in py27-numpy in the 1.7.1_1 release. I had the universal variant of 1.7.1_0 installed just fine. I did recently upgrade Xcode to 5.0.1, and the error in my log seemed to be a clang linking issue. I wonder if the issue the reporter of 41114 and/or I are seeing is related to a new change in Xcode5 or py27-numpy@1.7.1_1.
Edit: I suppose the log errors do look similar though. But what would keep causing this issue to crop up after not happening for so long?
comment:9 Changed 11 years ago by watsodw
This issue is with py27-numpy@1.7.1_1. I am running 10.8.5 with Xcode 4.6.3, but my py27-numpy is compiled with Macports 4.7 compiler. py27_numpy 1.7.1_0 compiled and installed just fine.
comment:10 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Replying to chief1983@…:
I don't know how #41114 is a duplicate, since this ticket is 18 months old, and this issue only just cropped in py27-numpy in the 1.7.1_1 release. I had the universal variant of 1.7.1_0 installed just fine.
Yes, something external to py-numpy caused this between when 1.7.0_0 was released and when 1.7.0 was just revbumped.
Edit: I suppose the log errors do look similar though. But what would keep causing this issue to crop up after not happening for so long?
It *HAS* been happening for a long time, but you got lucky in that you had 1.7.0_0 installed before this bug affected you.
comment:11 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Priority: | Normal → High |
---|
comment:12 follow-ups: 14 16 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Component: | ports → base |
---|---|
Milestone: | → MacPorts Future |
Owner: | changed from dh@… to jmr@… |
Port: | py-numpy removed |
py-numpy workaround in r113172
The issue is that base seems to have stopped setting CC et al in destroot.env
comment:13 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Summary: | py-numpy universal variant destroot failure → CC, CXX, OBJC, LDFLAGS, CFLAGS, CXXFLAGS, OBJCFLAGS should be set during destroot |
---|
comment:14 follow-up: 15 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Replying to jeremyhu@…:
The issue is that base seems to have stopped setting CC et al in destroot.env
I'm not aware that base ever set CC et al anytime other than the configure phase.
comment:15 follow-up: 17 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Replying to ryandesign@…:
Replying to jeremyhu@…:
The issue is that base seems to have stopped setting CC et al in destroot.env
I'm not aware that base ever set CC et al anytime other than the configure phase.
Then I'm curious how this (or other ports which cache build environments to invalidate and rebuild) worked in the past.
comment:16 Changed 11 years ago by jmroot (Joshua Root)
Replying to jeremyhu@…:
py-numpy workaround in r113172
It doesn't look like that would actually fix +universal, as the archflags are being queried before the universal variant is declared.
comment:17 Changed 11 years ago by jmroot (Joshua Root)
Replying to jeremyhu@…:
Then I'm curious how this (or other ports which cache build environments to invalidate and rebuild) worked in the past.
Presumably by setting destroot.env the same as build.env.
comment:18 Changed 11 years ago by jmroot (Joshua Root)
Owner: | changed from jmr@… to macports-tickets@… |
---|
comment:19 Changed 11 years ago by michaelld (Michael Dickens)
Setting all of these variables during destroot would, I would guess, positively impact only a very small subset of all ports; and, it might negatively impact any number of ports. In my experience, this subset contains a bunch of Python ports such as SciPy and NumPy, but I'm sure there are other, non-Python ports too which require at least a few of these. That said, if I look at all of the ports I maintain or will be shortly, maybe 5% of them actually require these flags. I'd prefer to not have to deal with these flags otherwise, since they might impact the install of currently well-working ports; flags are used internally in strange, sometimes unexpected ways, such as what I found out yesterday about not including LD archflags during configure in qt4-mac, because qmake somehow internalizes them (and, I looked through the qmake source code and can't figure out where it is). So, my vote is to require including these on a port-by-port basis, not globally; I'd rather have to opt-in than opt-out.
comment:20 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | mcalhoun@… added |
---|
Cc Me!
comment:21 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:22 Changed 8 years ago by jmroot (Joshua Root)
Component: | base → ports |
---|---|
Milestone: | MacPorts Future |
comment:23 Changed 11 months ago by barracuda156
We are back to the similar problem, essentially: build system does not pick right compiler: #68908
It is not useful to Cc openmaintainer.
FYI, ROOT works fine for me in Macports 2.1.1. You should file a separate ticket for it if you want that looked at.