Opened 12 years ago

Closed 12 years ago

#33104 closed defect (fixed)

libkml @1.2.0 (gis) Build fails with clang due to -Werror

Reported by: philip.dutoit@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: kml.mashbridge@…, kml.bent@…
Port: libkml

Description

Mac OS X 10.7.2
Xcode 4.2.1
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0

Attempting to do a simple install of libkml 1.2.0.
The build fails with an error.
The complete log file is attached.

joshua:~ pdutoit$ sudo port install libkml
--->  Computing dependencies for libkml
--->  Building libkml
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libkml is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_libkml/libkml/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Relevant line in the log file is:

:info:build google_maps_data.cc:183:22: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]

Appears that an extra pair of parentheses is needed to avoid the assignment-vs-equality mistake.

Attachments (1)

main.log (107.4 KB) - added by philip.dutoit@… 12 years ago.
Full log after running "sudo port clean libkml"

Download all attachments as: .zip

Change History (5)

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

That is not a complete log. (It contains lines that say "Skipping completed".) Please "sudo port clean libkml" and try again.

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

Keywords: clang added; lion kml kmz google maps removed
Owner: changed from macports-tickets@… to ryandesign@…
Summary: libkml @1.2.0 (gis) Build fails on OS X 10.7.2libkml @1.2.0 (gis) Build fails with clang

I see there is an upstream bug report already filed.

Changed 12 years ago by philip.dutoit@…

Attachment: main.log added

Full log after running "sudo port clean libkml"

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

Keywords: clang removed
Summary: libkml @1.2.0 (gis) Build fails with clanglibkml @1.2.0 (gis) Build fails with clang due to -Werror

Just needs to not use -Werror. Unfortunately it looks like it's hardcoded into all the Makefiles.

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

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