Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#31391 closed defect (fixed)

sane-backends +universal build failure: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Reported by: gallafent Owned by: aguynamedryan+sane@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: sane-backends

Description

Build log attached.

When building sane-backends on lion, the build fails with the error “:info:build llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags”.

Building with “-universal” doesn't help me because various other ports are already installed with “+universal” which seems to get merged in. I'd rather not have to ununiversalise all the dependent ports (of which there are many!), but have this port fixed to work universal!

Attachments (1)

main.log (59.1 KB) - added by gallafent 13 years ago.
Build log of failed universal build of sane-backends on lion.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by gallafent

Attachment: main.log added

Build log of failed universal build of sane-backends on lion.

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; aguynamedryan+sane@… removed
Owner: changed from macports-tickets@… to aguynamedryan+sane@…
Summary: Sane-backends build failure: -E, -S, -save-temps and -M options are not allowed with multiple -arch flagssane-backends +universal build failure: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Interesting; I have no problem installing it universal on Snow Leopard.

Are you sure you're actually requesting the universal variant? It does not look like you are, because your log shows the *FLAGS environment variables at configure time only contain -arch x86_64. It's not until later that -arch i386 appears in the log, and the perl include path appears at that time as well, so this is probably because of bug #24779. So clean and try again, actually specifying the universal variant.

sudo port clean sane-backends
sudo port install sane-backends +universal

comment:2 Changed 13 years ago by gallafent

Thanks for that, you're right, cleaning and specifying +universal worked fine. So in fact this problem arises when using the default variant, not the universal one! (I came across it when doing a port upgrade outdated, not a specific install of this port…) Could well be the problem you describe - so can probably just close this as not-a-bug? Or maybe leave open until bug #24779 is fixed to see if that fix fixes this?

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Should be fixed along with #24779; reopen if not.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Keywords: lion removed
Note: See TracTickets for help on using tickets.