Opened 13 years ago
Closed 12 years ago
#30761 closed defect (fixed)
qtiplot just hangs
Reported by: | bruno.carneirodacunha@… | Owned by: | NicosPavlov |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.1 |
Keywords: | Cc: | eric.lebigot@…, mf2k (Frank Schima), schmiddimc@…, NicosPavlov, Kona8lend@… | |
Port: | qtiplot |
Description
I have a brand new system on Lion. When I try to build qtiplot, compilation goes for around 5 minuts on a i5 system and then a single g++ process hangs at 100% cpu forever. I've rebuilt the chain and let the single process run for 12 hours to no avail. Here's the log, I've found out that compilation hangs at different points.
Please help!
Attachments (2)
Change History (24)
Changed 13 years ago by bruno.carneirodacunha@…
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Keywords: | qtiplot macports removed |
---|---|
Owner: | changed from macports-tickets@… to jonas@… |
Port: | qtiplot added |
comment:2 Changed 13 years ago by eric.lebigot@…
Same thing here, with qtiplot 0.9.8.7 and Mac OS X Lion…
comment:4 follow-up: 5 Changed 13 years ago by mf2k (Frank Schima)
Cc: | macsforever2000@… added |
---|
Cc Me!
comment:5 Changed 13 years ago by schmiddimc@…
Here same problem. There is a new version available. 0.9.8.8 Perhaps this fix the problem.
comment:8 Changed 13 years ago by NicosPavlov
The problem seems to be specific to Lion, as it compiles fine on Snow Leopard (10.6.8).
comment:9 Changed 13 years ago by eric.lebigot@…
The issue (on Lion) is apparently still present with qtiplot-0.9.8.8_1.darwin_11.x86_64: "Building qtiplot" lasts at least 1 hour on the latest MacBook Air: it looks like it will never end.
comment:10 Changed 13 years ago by firstprinciple@…
I found a way that can avoid the hanging --
- port install qtiplot
- while hanging, use Ctrl-C
- cd to the directory qtiplot, Copy/Past last command line, change "-O2" to "-O0"
- sudo make
after about 1min, successfully build
- sudo port destroot qtiplot
sudo port install qtiplot
comment:11 Changed 13 years ago by NicosPavlov
This is a wild guess, and I do not have the possibility to test as I am not on Lion, but did someone tried to install qtiplot on Lion with the following command ?
sudo port install kde4-baseapps configure.compiler=llvm-gcc-4.2
As Lion uses another compiler, it has been already an issue for other ports, and may be the problem in this case. The command above forces to use the same compiler as in SL.
comment:12 Changed 13 years ago by NicosPavlov
Sorry, I did not even corrected the copy-paste... The correct command would obviously be:
sudo port install qtiplot configure.compiler=llvm-gcc-4.2
comment:13 Changed 13 years ago by eric.lebigot@…
Thanks for the suggestion. I tried the configure.compiler option, but the compilation was not over after about 1 hour. So, my guess is that it will never stop…
comment:14 follow-up: 15 Changed 13 years ago by firstprinciple@…
qtiplot-0.9.8.9 still needs change CFLAGS from "-O2" to "-O0", I tested just now.
comment:15 follow-up: 16 Changed 13 years ago by NicosPavlov
Replying to firstprinciple@…:
qtiplot-0.9.8.9 still needs change CFLAGS from "-O2" to "-O0", I tested just now.
Just to be sure that I understand: does lowering the optimization enable compilation on Lion ?
comment:16 Changed 13 years ago by winter@…
Replying to nicos@…:
Replying to firstprinciple@…:
qtiplot-0.9.8.9 still needs change CFLAGS from "-O2" to "-O0", I tested just now.
Just to be sure that I understand: does lowering the optimization enable compilation on Lion ?
I don't know if CFLAGS works but lowering -O2 to -O0 manually on the build command that hangs helped.
Changed 13 years ago by Kona8lend@…
Attachment: | qtiplot.disable-O2.diff added |
---|
comment:18 Changed 13 years ago by Kona8lend@…
see patch attachment:qtiplot.disable-O2.diff
Patch disables -O2 flag to workaround the llvm-gcc-4.2 bug. Not an ideal patch but wanted to make it available as someone on the mailing list was asking how to manipulate qmake flags from the ports system.
comment:19 follow-up: 20 Changed 13 years ago by NicosPavlov
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thank you for the patch. I modified it slightly to be activated on Lion. Committed in r87723.
comment:20 Changed 12 years ago by soehn@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:21 Changed 12 years ago by NicosPavlov
Owner: | changed from jonas@… to nicos@… |
---|---|
Status: | reopened → new |
comment:22 Changed 12 years ago by NicosPavlov
Resolution: | → fixed |
---|---|
Status: | new → closed |
Right. I should have enabled the patch to Lion and later from the start.
This is now done at r96637.
As per the ticket guidelines linked from the New Ticket page, please put the name of the affected port in the Port field, and cc its maintainer.