Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

disable -Wunused-local-typedef on OS X - #2391

Merged
mikemorris merged 2 commits into
masterfrom
osx-unused-typedef
Sep 24, 2015
Merged

mikemorris merged 2 commits into
masterfrom
osx-unused-typedef

Conversation

@mikemorris

Copy link
Copy Markdown
Contributor

Fixes #2390

/cc @1ec5

@mikemorris

Copy link
Copy Markdown
Contributor Author

Hrm, Travis OS X builds keep failing with unknown warning option '-Wno-unused-local-typedef' [-Werror,-Wunknown-warning-option] (still unknown with plural typedefs), but everything builds fine for me locally - what am I doing wrong here?

@mikemorris mikemorris added the macOS Mapbox Maps SDK for macOS label Sep 22, 2015
@1ec5

1ec5 commented Sep 22, 2015

Copy link
Copy Markdown
Contributor

The iOS builds are happy but the OS X builds are not. I suspect the difference is that the OS X builds are still building on the Xcode 6.4 toolchain, whereas the iOS builds are building on the Xcode 7 toolchain.

@mikemorris mikemorris changed the title disable -Wunused-local-typedef on OS X [DO NOT MERGE] disable -Wunused-local-typedef on OS X Sep 23, 2015
@mikemorris mikemorris added the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Sep 23, 2015
@mikemorris

Copy link
Copy Markdown
Contributor Author

mapbox/mason#114 should be merged and the submodule pin updated before merging this.

@incanus

incanus commented Sep 23, 2015

Copy link
Copy Markdown
Contributor

Per mapbox/mason#114 (comment), will test this in a moment, but is there a way we can limit this (on by default for a reason) compile flag just to Boost @mikemorris?

@mikemorris

Copy link
Copy Markdown
Contributor Author

@incanus Does clang offer functionality similar to GCC for using #pragma to disable compiler warnings?

@1ec5

1ec5 commented Sep 23, 2015

Copy link
Copy Markdown
Contributor

It does, so an alternative to this PR would be to surround any import of the problematic Boost header with the relevant #pragma.

@incanus

incanus commented Sep 23, 2015

Copy link
Copy Markdown
Contributor

Yes.

#pragma clang diagnostic ignored "-Wvariadic-macros"

@mikemorris
mikemorris force-pushed the osx-unused-typedef branch 2 times, most recently from 222ceec to 8be75fe Compare September 23, 2015 19:25
@mikemorris mikemorris removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Sep 23, 2015
@mikemorris mikemorris changed the title [DO NOT MERGE] disable -Wunused-local-typedef on OS X disable -Wunused-local-typedef on OS X Sep 23, 2015
@mikemorris

Copy link
Copy Markdown
Contributor Author

Updated the mason submodule pin now that mapbox/mason#114 has landed. Switched to just ignore -Wunused-local-typedef around the problematic boost/program_options.hpp include instead of setting -Wno-unused-local-typedef in the gypfile.

@mikemorris

Copy link
Copy Markdown
Contributor Author

Um, for some odd reason Travis can't find clang on Linux now (building fine on my local Linux VM)...

make[2]: clang++-3.5: Command not found

@mikemorris

Copy link
Copy Markdown
Contributor Author

Emailed [email protected] about the Missing Clang Mystery.

@incanus

incanus commented Sep 23, 2015

Copy link
Copy Markdown
Contributor

bilocchcuaasy_z jpg-large

Travis

@mikemorris

Copy link
Copy Markdown
Contributor Author

It looks like I might've gotten tripped up by an llvm apt repository update?
llvm-toolchain-precise-3.5 is no longer listed as of very recently on http://llvm.org/apt/

Precise (12.04) - Last update : Wed, 23 Sep 2015 20:28:19 UTC / Revision: 248380

deb http://llvm.org/apt/precise/ llvm-toolchain-precise main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main
# 3.6 
deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main
# 3.7 
deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main

EDIT: Nope, Travis still failing.

@jfirebaugh

Copy link
Copy Markdown
Contributor

If llvm removed the 3.5 packages, you'd presumably have to move to 3.6 as well as update the repository source.

@jfirebaugh

Copy link
Copy Markdown
Contributor

We should remove --force-yes from the apt-get install command; I bet it's hiding a "package clang-3.5 not found in any sources; ignoring" type error.

@mikemorris

Copy link
Copy Markdown
Contributor Author

We should remove --force-yes from the apt-get install

Don't think we can do that, pretty sure that's happening on Travis' end?

@jfirebaugh

Copy link
Copy Markdown
Contributor

Yeah, you're right, must be part of the apt addon.

@mikemorris

Copy link
Copy Markdown
Contributor Author

Could not connect to llvm.org:80 (192.17.58.186), connection timed out

Refs #1828

@mikemorris

Copy link
Copy Markdown
Contributor Author

Missing clang was llvm.org's fault -> #1828

mikemorris added a commit that referenced this pull request Sep 24, 2015
[osx] disable -Wunused-local-typedef on OS X
@mikemorris
mikemorris merged commit f21eb68 into master Sep 24, 2015
@mikemorris
mikemorris deleted the osx-unused-typedef branch September 24, 2015 17:27
AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this pull request Nov 6, 2015
[osx] disable -Wunused-local-typedef on OS X
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

macOS Mapbox Maps SDK for macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants