Open davydden opened 6 years ago
@Andersbakken ping.
This looks very odd. Can you run this command on librtags.a
lipo -info ./src/librtags.a
Can you also try to blow away the whole build directory and rebuild? It seems like it's possible that different sources were compiled with different compilers or flags.
lipo -info ./src/librtags.a
$ lipo -info librtags.a
input file librtags.a is not a fat file
Non-fat file: librtags.a is architecture: x86_64
Can you also try to blow away the whole build directory and rebuild? It seems like it's possible that different sources were compiled with different compilers or flags.
Not in my case, i build with spack which makes sure that environment is clean and out-of-source build folder is freshly created.
p.s. i build with
'-DCMAKE_EXPORT_COMPILE_COMMANDS=1',
'-DRTAGS_NO_ELISP_FILES=1'
if that makes a difference.
here is configure/build log:
Have you tried with the system clang?
I don't really see anything obviously wrong here. Clearly the linker somehow doesn't like the architecture even though it seems like it's x86_64 on both sides.
It sounds a little bit like this:
https://github.com/tpoechtrager/osxcross/issues/11
But the thing that seems to resolve that issue seems not be the case for you since you are using the ar from your clang build.
Anders
On Wed, Mar 14, 2018 at 3:06 PM, Denis Davydov notifications@github.com wrote:
here is configure/build log:
spack-build.out.zip https://github.com/Andersbakken/rtags/files/1813269/spack-build.out.zip
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/1148#issuecomment-373190873, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEdSqegyM_Ol-_gigt5NMlKCe1GMCqtks5teZRbgaJpZM4Ry5qT .
Have you tried with the system clang?
it is system clang. It just goes through compiler wrappers which add a few things.
Please mark appropriate
Problem description
Linking fails on macOS High Sierra when building
rtags
from Spack package manager with llvm 4.0 build via Apple's clang 9.0.0.Expected behavior
links
Actual behavior
and a couple of others.
Environment
Your operating system: macOS 10.13.3
LLVM/Clang version: Apple clang 9.0.0