Opened 12 years ago

Closed 12 years ago

#31765 closed defect (fixed)

problem with installing libdevil on snow leopard

Reported by: yanko.stoychev@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: libdevil

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi everyone,
i'm trying to install libdevil on snow leopard for a project of mine , but i'm getting this all the time:

--->  Computing dependencies for libdevil
--->  Building libdevil
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libdevil is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libdevil/libdevil/main.log
Error: Status 1 encountered during processing.

Attachments (2)

config.log (121.0 KB) - added by yanko.stoychev@… 12 years ago.
config.log
main.log (55.2 KB) - added by yanko.stoychev@… 12 years ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by yanko.stoychev@…

Attachment: config.log added

config.log

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

Cc: yanko.stoychev@… removed
Description: modified (diff)
Port: libdevil added

Remember to use WikiFormatting.

I see you're using clang. Is this the same as #31744? Can you attach the main.log?

Changed 12 years ago by yanko.stoychev@…

Attachment: main.log added

main.log

comment:2 Changed 12 years ago by yanko.stoychev@…

yep same problem here

:info:build error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'

Snow Leopard 10.6, Xcode 4.2, Macports 2.0.3

comment:3 Changed 12 years ago by raimue (Rainer Müller)

Has duplicate #31744.

comment:4 Changed 12 years ago by raimue (Rainer Müller)

A workaround is to use llvm-gcc-4.2 instead. I applied this as a quickfix in r88043.

The real solution would probably be to extend the macro DEVIL_CHECK_RESTRICT_GNU99 in m4/devil-definitions.m4 to not add this flag if the clang++ compiler is used.

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

Clang is right, telling a C++ compiler to conform to the C99 standard makes no sense. It should be using something like -std=gnu++98 instead.

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

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