New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30761 (closed defect: fixed)

Opened 22 months ago

Last modified 9 months ago

qtiplot just hangs

Reported by: bruno.carneirodacunha@… Owned by: nicos@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: eric.lebigot@…, macsforever2000@…, schmiddimc@…, nicos@…, 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

main.log (600.0 KB) - added by bruno.carneirodacunha@… 22 months ago.
qtiplot.disable-O2.diff (1.3 KB) - added by Kona8lend@… 18 months ago.

Change History

Changed 22 months ago by bruno.carneirodacunha@…

comment:1 Changed 22 months ago by jmr@…

  • Owner changed from macports-tickets@… to jonas@…
  • Keywords qtiplot, macports removed
  • Port set to qtiplot

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 20 months ago by eric.lebigot@…

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

comment:3 Changed 20 months ago by eric.lebigot@…

  • Cc eric.lebigot@… added

Cc Me!

comment:4 follow-up: ↓ 5 Changed 20 months ago by macsforever2000@…

  • Cc macsforever2000@… added

Cc Me!

comment:5 in reply to: ↑ 4 Changed 20 months ago by schmiddimc@…

Here same problem. There is a new version available. 0.9.8.8 Perhaps this fix the problem.

comment:6 Changed 20 months ago by schmiddimc@…

  • Cc schmiddimc@… added

Cc Me!

comment:7 Changed 20 months ago by nicos@…

  • Cc nicos@… added

Cc Me!

comment:8 Changed 20 months ago by nicos@…

The problem seems to be specific to Lion, as it compiles fine on Snow Leopard (10.6.8).

comment:9 Changed 19 months 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 19 months 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 19 months ago by nicos@…

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 19 months ago by nicos@…

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 19 months 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 18 months 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 ; follow-up: ↓ 16 Changed 18 months ago by 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 ?

comment:16 in reply to: ↑ 15 Changed 18 months 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 18 months ago by Kona8lend@…

comment:17 Changed 18 months ago by Kona8lend@…

  • Cc Kona8lend@… added

Cc Me!

comment:18 Changed 18 months 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 18 months ago by nicos@…

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:20 in reply to: ↑ 19 Changed 9 months ago by soehn@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

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 9 months ago by nicos@…

  • Owner changed from jonas@… to nicos@…
  • Status changed from reopened to new

comment:22 Changed 9 months ago by nicos@…

  • Status changed from new to closed
  • Resolution set to fixed

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.