-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-1464: [GLib] Add "Common build problems" section into the README.md of c_glib #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -197,3 +197,43 @@ Now, you can run unit tests by the followings: | |
| % cd c_glib | ||
| % test/run-test.sh | ||
| ``` | ||
|
|
||
| ## Common build problems | ||
|
|
||
| ### configure failed - `AX_CXX_COMPILE_STDCXX_11(ext, mandatory)' | ||
|
|
||
| * Check whether `autoconf-archive` is installed. | ||
| * [macOS] `autoconf-archive` must be linked, but may not be linked. You can check it by running `brew install autoconf-archive` again. If it's not linked, it will show a warning message like: | ||
|
|
||
| ```console | ||
| % brew install autoconf-archive | ||
| Warning: autoconf-archive 2017.03.21 is already installed, it's just not linked. | ||
| You can use `brew link autoconf-archive` to link this version. | ||
| ``` | ||
|
|
||
| In this case, you need to run `brew link autoconf-archive`. It may fail with the following message if you have install conflicted packages (e.g. `gnome-common`). | ||
|
|
||
| ```console | ||
| % brew link autoconf-archive | ||
| Linking /usr/local/Cellar/autoconf-archive/2017.03.21... | ||
| Error: Could not symlink share/aclocal/ax_check_enable_debug.m4 | ||
| Target /usr/local/share/aclocal/ax_check_enable_debug.m4 | ||
| is a symlink belonging to gnome-common. You can unlink it: | ||
| brew unlink gnome-common | ||
| ``` | ||
|
||
|
|
||
| You need to run `brew unlink <pkgname>`, then run `brew link autoconf-archive` again. | ||
|
|
||
| After installing/linking `autoconf-archive`, run `./autogen.sh` again. | ||
|
|
||
| ### [macOS] configure failed - gobject-introspection-1.0 is not installed | ||
|
|
||
| gobject-introspection requires libffi, and it's automatically installed with gobject-introspection. However it can't be found because it's [keg-only](https://docs.brew.sh/FAQ.html#what-does-keg-only-mean). You need to set `PKG_CONFIG_PATH` when executing configure. | ||
|
|
||
| ```console | ||
| % ./configure PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig | ||
| ``` | ||
|
|
||
| ### build failed - /usr/bin/ld: cannot find -larrow | ||
|
|
||
| Arrow C++ must be installed to build Arrow GLib. Run `make install` on Arrow C++ build directory. In addtion, on linux, you may need to run `sudo ldconfig`. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an empty new line after a section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.