Skip to content
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

Mac OS X build error due to -Bsymbolic-functions #91

Closed
tschoonj opened this issue Dec 28, 2016 · 1 comment
Closed

Mac OS X build error due to -Bsymbolic-functions #91

tschoonj opened this issue Dec 28, 2016 · 1 comment

Comments

@tschoonj
Copy link
Contributor

Experienced behavior

On Mac OS X El Capitan, the build process fails while generating libgraphene-1.0.dylib due to an unrecognized linker flag -Bsymbolic-functions, which is apparently not supported by clang.

Full output:

clang    -o src/libgraphene-1.0.dylib 'src/graphene-1.0@sha/graphene-alloc.c.o' 'src/graphene-1.0@sha/graphene-box.c.o' 'src/graphene-1.0@sha/graphene-euler.c.o' 'src/graphene-1.0@sha/graphene-frustum.c.o' 'src/graphene-1.0@sha/graphene-matrix.c.o' 'src/graphene-1.0@sha/graphene-plane.c.o' 'src/graphene-1.0@sha/graphene-point.c.o' 'src/graphene-1.0@sha/graphene-point3d.c.o' 'src/graphene-1.0@sha/graphene-quad.c.o' 'src/graphene-1.0@sha/graphene-quaternion.c.o' 'src/graphene-1.0@sha/graphene-ray.c.o' 'src/graphene-1.0@sha/graphene-rect.c.o' 'src/graphene-1.0@sha/graphene-size.c.o' 'src/graphene-1.0@sha/graphene-sphere.c.o' 'src/graphene-1.0@sha/graphene-triangle.c.o' 'src/graphene-1.0@sha/graphene-vectors.c.o' 'src/graphene-1.0@sha/graphene-gobject.c.o' 'src/graphene-1.0@sha/graphene-simd4f.c.o' 'src/graphene-1.0@sha/graphene-simd4x4f.c.o' '-shared' '-install_name' '/private/tmp/graphene-20161228-17028-1bw9frc/graphene-1.5.2/build/src/libgraphene-1.0.dylib' '-pthread' '-Wl,-Bsymbolic-functions' '-lm' '-L/usr/local/Cellar/glib/2.50.2/lib' '-L/usr/local/opt/gettext/lib' '-lgobject-2.0' '-lglib-2.0' '-lintl' '-Wl,-rpath,/private/tmp/graphene-20161228-17028-1bw9frc/graphene-1.5.2/build/src' 
clang: warning: argument unused during compilation: '-pthread'
ld: unknown option: -Bsymbolic-functions
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected behavior

The correct building of libgraphene-1.0.dylib

Steps to reproduce

On Mac OS X, using graphene 1.5.2
Commands used:

mkdir build
cd build
meson ..
ninja

Operating system in use

Mac OS X El Capitan

SIMD implementation in use

No clue

@ebassi ebassi closed this as completed in 813c909 Dec 28, 2016
@ebassi
Copy link
Owner

ebassi commented Dec 28, 2016

Thanks for the really detailed bug report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants