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)

main.log (600.0 KB) - added by bruno.carneirodacunha@… 13 years ago.
qtiplot.disable-O2.diff (1.3 KB) - added by Kona8lend@… 12 years ago.

Download all attachments as: .zip

Change History (24)

Changed 13 years ago by bruno.carneirodacunha@…

Attachment: main.log added

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Keywords: qtiplot macports removed
Owner: changed from macports-tickets@… to jonas@…
Port: qtiplot added

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.

comment:2 Changed 13 years ago by eric.lebigot@…

Same thing here, with qtiplot 0.9.8.7 and Mac OS X Lion…

comment:3 Changed 13 years ago by eric.lebigot@…

Cc: eric.lebigot@… added

Cc Me!

comment:4 Changed 13 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:5 in reply to:  4 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:6 Changed 13 years ago by schmiddimc@…

Cc: schmiddimc@… added

Cc Me!

comment:7 Changed 13 years ago by NicosPavlov

Cc: nicos@… added

Cc Me!

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 12 years ago by firstprinciple@…

I found a way that can avoid the hanging --

  1. port install qtiplot
  2. while hanging, use Ctrl-C
  3. cd to the directory qtiplot, Copy/Past last command line, change "-O2" to "-O0"
  4. sudo make

after about 1min, successfully build

  1. sudo port destroot qtiplot

sudo port install qtiplot

comment:11 Changed 12 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 12 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 12 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 Changed 12 years ago by firstprinciple@…

qtiplot-0.9.8.9 still needs change CFLAGS from "-O2" to "-O0", I tested just now.

comment:15 in reply to:  14 ; Changed 12 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 in reply to:  15 Changed 12 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 12 years ago by Kona8lend@…

Attachment: qtiplot.disable-O2.diff added

comment:17 Changed 12 years ago by Kona8lend@…

Cc: Kona8lend@… added

Cc Me!

comment:18 Changed 12 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 Changed 12 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Thank you for the patch. I modified it slightly to be activated on Lion. Committed in r87723.

comment:20 in reply to:  19 Changed 12 years ago by soehn@…

Resolution: fixed
Status: closedreopened

Replying to nicos@…:

Thank you for the patch. I modified it slightly to be activated on Lion. Committed in r87723.

Same thing happens now on Mountain Lion. Can be fixed using the same patch (i.e. adding the changes of r87723 for darwin 12, too)

comment:21 Changed 12 years ago by NicosPavlov

Owner: changed from jonas@… to nicos@…
Status: reopenednew

comment:22 Changed 12 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

Right. I should have enabled the patch to Lion and later from the start.

This is now done at r96637.

Note: See TracTickets for help on using tickets.