Opened 13 years ago

Closed 12 years ago

#32360 closed defect (fixed)

ragel 6.7 fails to link universal

Reported by: drbacher@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: ragel

Description

The ragel 6.7 port fails to link the universal variant when using the llvm-gcc-4.2 compiler.

port install ragel configure.compiler=llvm-gcc-4.2

fails with the following errors for all object files:

ignoring file ..., file was built for unsupported file format which is not the architecture being linked (i386)

The link succeeds if the universal variant is removed:

port install ragel configure.compiler=llvm-gcc-4.2 -universal

Attachments (2)

ragel-llvm-universal-main.log (33.7 KB) - added by drbacher@… 13 years ago.
ragel main.log built with llvm-gcc-4.2
configure-cxxflags.patch (343 bytes) - added by drbacher@… 13 years ago.
patch to configure

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by drbacher@…

ragel main.log built with llvm-gcc-4.2

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

Owner: changed from macports-tickets@… to mww@…
Summary: ragel 6.7 fails to link universal with llvm-gcc-4.2ragel 6.7 fails to link universal

It's not compiler-specific (nor universal-specific; it would affect users trying to do a non-default-build_arch build as well). This software simply does not respect the CFLAGS/LDFLAGS we're setting and will need to be fixed.

P.S: Remember to Cc the maintainer of the affected port so they see your tickets and can begin to work on them.

comment:2 in reply to:  1 Changed 13 years ago by drbacher@…

Replying to ryandesign@…:

It's not compiler-specific (nor universal-specific; it would affect users trying to do a non-default-build_arch build as well). This software simply does not respect the CFLAGS/LDFLAGS we're setting and will need to be fixed.

Thanks for the pointer. It looks like the configure script blindly resets CXXFLAGS to -g. I've attached a simple patch that fixes the build for me.

Changed 13 years ago by drbacher@…

Attachment: configure-cxxflags.patch added

patch to configure

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.