Opened 9 years ago

Closed 9 years ago

#27073 closed defect (fixed)

djview 4.6 does not build

Reported by: luis.beca@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: bK4gYuRo, ygramul.el.multiple@…
Port: djview

Description

The upgrade to 4.6 fails. Please see attached log.

Attachments (5)

main.log (38.6 KB) - added by luis.beca@… 9 years ago.
main.2.log (35.0 KB) - added by bK4gYuRo 9 years ago.
build error on PPC platform
Makefile (23.2 KB) - added by bK4gYuRo 9 years ago.
port dir djview/work/djview4-4.6/src/Makefile on PPC
main.3.log (35.0 KB) - added by ygramul.el.multiple@… 9 years ago.
Log file in x86_64 architecture
Makefile.2 (23.2 KB) - added by ygramul.el.multiple@… 9 years ago.
Makefile for x86_64 architecture

Download all attachments as: .zip

Change History (21)

Changed 9 years ago by luis.beca@…

Attachment: main.log added

comment:1 Changed 9 years ago by bK4gYuRo

I have similar problem on PPC platform. In my case the command in question has empty arch string:

-arch ppc -arch -o djview.app/Contents/MacOS/djview

I am also attaching the full log.

Thanks, -Kastus

Changed 9 years ago by bK4gYuRo

Attachment: main.2.log added

build error on PPC platform

comment:2 Changed 9 years ago by bK4gYuRo

Cc: macports@… added

Cc Me!

comment:3 Changed 9 years ago by michaelld (Michael Dickens)

Owner: changed from macports-tickets@… to michaelld@…
Status: newassigned

Do you all have qt4-mac 4.7.0 installed?

comment:4 Changed 9 years ago by michaelld (Michael Dickens)

Cc: michaelld@… removed

Cc Me!

comment:5 Changed 9 years ago by michaelld (Michael Dickens)

Yes, you both do have 4.7.0 installed; just found that in the log files. I'm going to reinstall the patch to handle this. Maybe my next set of qt4-mac changes will fix this issue, but clearly it isn't yet.

comment:6 Changed 9 years ago by michaelld (Michael Dickens)

Can y'all do me a favor and try to build djview as +universal? I don't think it'll work, but I'd like to see the log to see if the previous patch will still work. Thanks!

comment:7 Changed 9 years ago by michaelld (Michael Dickens)

Another request before I put the patch back in: Can y'all attach the file "port dir djview/work/djview4-4.6/src/Makefile" from your current breaking build? I'm trying to track down which QMake variable is getting messed up.

comment:8 Changed 9 years ago by bK4gYuRo

Here is my Makefile on PPC

Changed 9 years ago by bK4gYuRo

Attachment: Makefile added

port dir djview/work/djview4-4.6/src/Makefile on PPC

comment:9 Changed 9 years ago by andy.eschbacher@…

Cc: andy.eschbacher@… added

Cc Me!

comment:10 Changed 9 years ago by andy.eschbacher@…

Cc: andy.eschbacher@… removed

Cc Me!

comment:11 Changed 9 years ago by ygramul.el.multiple@…

Cc: ygramul.el.multiple@… added

Cc Me!

comment:12 Changed 9 years ago by ygramul.el.multiple@…

Hey there, I'm on the x86_64 platform, and I get exactly the same problem. In my case, the empty string is

 -L/opt/local/lib -arch i386 -arch -o djview.app/Contents/MacOS/djview qdjvu.o

I attach the log file and the Makefile that michaelld requested.

Changed 9 years ago by ygramul.el.multiple@…

Attachment: main.3.log added

Log file in x86_64 architecture

Changed 9 years ago by ygramul.el.multiple@…

Attachment: Makefile.2 added

Makefile for x86_64 architecture

comment:13 Changed 9 years ago by mdbecque@…

I tried to build 4.6_0 with +universal on my G5 running 10.5.8 and no luck.

comment:14 Changed 9 years ago by michaelld (Michael Dickens)

Is qt4-mac build with +universal on any of your installs? When I use just qt4-mac (no +universal), I see this issue; when I move to using qt4-mac +universal the issue goes away -- at least for me.

@mdbecque: Can you post the log for your djview +universal effort?

comment:15 Changed 9 years ago by michaelld (Michael Dickens)

There's a bug in qmake: if Qt is not installed as +universal, and qmake is run with QMAKE_LFLAGS+="-arch foo", and "foo" is the native arch (for processing, as determined by qmake), then it seems like I always end up with this "-arch foo -arch" issue. I've looked through parts of the qmake source code, but it gets me nowhere. I'll look into opening a ticket for this issue with the Qt folks.

comment:16 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

Fixed in r73103.

Note: See TracTickets for help on using tickets.