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

upgrade gyp - #3193

Merged
mikemorris merged 3 commits into
masterfrom
gyp
Dec 8, 2015
Merged

mikemorris merged 3 commits into
masterfrom
gyp

Conversation

@mikemorris

Copy link
Copy Markdown
Contributor

Refs #3178

Not seeing any git tags or releases in https://chromium.googlesource.com/external/gyp, so this is just copied from HEAD (commit 6fb8bd829f0ca8fd432fd85ede788b6881c4f09f).

First error I'm hitting, when running make osx, is mismatched arguments to a function that changed, haven't been able to track down where this is happening yet.

* Building target osxapp...
  MACTOOL copy-bundle-resource ../../macosx/Icon.icns
Traceback (most recent call last):
  File "./gyp-mac-tool", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./gyp-mac-tool", line 28, in main
    exit_code = executor.Dispatch(args)
  File "./gyp-mac-tool", line 43, in Dispatch
    return getattr(self, method)(*args[1:])
TypeError: ExecCopyBundleResource() takes exactly 4 arguments (3 given)
make[2]: *** [Release/Mapbox GL.app/Contents/Resources/Icon.icns] Error 1
make[1]: *** [Makefile/osxapp] Error 2
make: *** [osx] Error 2

/cc @1ec5

@1ec5

1ec5 commented Dec 4, 2015

Copy link
Copy Markdown
Contributor

I’m able to run make xosx and make osx without any problems on this branch. Did you make clean && make distclean first?

@mikemorris

Copy link
Copy Markdown
Contributor Author

@1ec5 I definitely ran make distclean && make osx, looks like this is originating from https://github.com/mapbox/mapbox-gl-native/blob/master/macosx/mapboxgl-app.gypi#L12, possibly a gyp bug, or maybe just leftover build files somewhere...

@1ec5

1ec5 commented Dec 4, 2015

Copy link
Copy Markdown
Contributor

What version of Xcode and OS X are you using? I tried in Xcode 7.1 and 7.2 on OS X 10.11.

@1ec5

1ec5 commented Dec 4, 2015

Copy link
Copy Markdown
Contributor

You should also try deleting build/gyp/. make clean && make distclean don’t take care of that folder. I rolled a fix for that into #3135.

@mikemorris

Copy link
Copy Markdown
Contributor Author

Ah, gyp/build could've been doesn't seem to be the cuprit (possibly related to dfb36d6?). Version 7.1.1 (7B1005) on OS X 10.11 fwiw.

@1ec5

1ec5 commented Dec 5, 2015

Copy link
Copy Markdown
Contributor

/cc @kkaefer

@1ec5 1ec5 added this to the ios-v3.1.0 milestone Dec 5, 2015
@1ec5 1ec5 added the build label Dec 5, 2015
@1ec5 1ec5 mentioned this pull request Dec 5, 2015
35 of 39 tasks
@1ec5

1ec5 commented Dec 5, 2015

Copy link
Copy Markdown
Contributor

I was mistaken: I get the same error as you. I wasn’t seeing it before because git checkout gyp doesn’t check out the gyp branch; rather, it tries to checkout the latest version of the gyp/ folder in the project root.

@1ec5

1ec5 commented Dec 5, 2015

Copy link
Copy Markdown
Contributor

Fixed make osx in d6099fb.

@1ec5

1ec5 commented Dec 5, 2015

Copy link
Copy Markdown
Contributor

I’ve reapplied 36cd65e and b32748b in an attempt to fix Linux g++ builds. baa684e and 13c698f don’t appear to be needed: some of these flags are already set in gyp master, while the rest are either set in the iOS gyp files or explicitly unset in the OS X gyp files in #3135.

@mikemorris

Copy link
Copy Markdown
Contributor Author

git checkout gyp doesn’t check out the gyp branch

@mikemorris

Copy link
Copy Markdown
Contributor Author

Hrm, last remaining Travis Linux/g++ error is something I've never seen before (but doesn't look like it should be hard to fix?)

/usr/bin/ld: /home/travis/build/mapbox/mapbox-gl-native/mason_packages/linux-x86_64/sqlite/3.9.1/lib/libsqlite3.a(sqlite3.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libdl.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libdl.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [Release/mbgl-render] Error 1
rm gyp_mbgl_gyp_shaders_target_Build_Shaders.intermediate
make[2]: Leaving directory `/home/travis/build/mapbox/mapbox-gl-native/build/linux-x86_64'
make[1]: *** [Makefile/mbgl-render] Error 2
make[1]: Leaving directory `/home/travis/build/mapbox/mapbox-gl-native'
make: *** [render] Error 2

@mikemorris

Copy link
Copy Markdown
Contributor Author

Rebased and cleaned up, this looks good for merge to me once Travis passes @1ec5

@mikemorris
mikemorris merged commit e0ef94c into master Dec 8, 2015
@mikemorris
mikemorris deleted the gyp branch December 8, 2015 00:09
@mikemorris mikemorris mentioned this pull request Dec 8, 2015
@1ec5

1ec5 commented Dec 12, 2015

Copy link
Copy Markdown
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants