Thanks for replying!
I’ve bypassed this error by specifying my local xrootd path. But now I got another error which seems very prominent in many of my previous building attempts and it also has something to do with the new arm64 architecture.
Error:
[ 40%] Copying /Users/hangyi/Documents/workspaces/root-src/icons/mb_stop_s.xpm
ld: warning: ignoring file ../../FREETYPE-prefix/src/FREETYPE/objs/.libs/libfreetype.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
[ 40%] Copying /Users/hangyi/Documents/workspaces/root-src/icons/mdi_close.xpm
Undefined symbols for architecture arm64:
"_FT_Attach_File", referenced from:
FTFace::Attach(char const*) in FTFace.cxx.o
"_FT_Attach_Stream", referenced from:
FTFace::Attach(unsigned char const*, unsigned long) in FTFace.cxx.o
"_FT_Done_Face", referenced from:
FTFace::~FTFace() in FTFace.cxx.o
FTFace::~FTFace() in FTFace.cxx.o
FTFace::~FTFace() in FTFace.cxx.o
"_FT_Done_FreeType", referenced from:
FTLibrary::~FTLibrary() in FTLibrary.cxx.o
FTLibrary::~FTLibrary() in FTLibrary.cxx.o
"_FT_Get_Char_Index", referenced from:
FTCharmap::FontIndex(unsigned int) in FTCharmap.cxx.o
"_FT_Get_Kerning", referenced from:
FTFace::KernAdvance(unsigned int, unsigned int) in FTFace.cxx.o
"_FT_Init_FreeType", referenced from:
FTLibrary::Instance() in FTLibrary.cxx.o
FTLibrary::FTLibrary() in FTLibrary.cxx.o
FTLibrary::FTLibrary() in FTLibrary.cxx.o
FTLibrary::Initialise() in FTLibrary.cxx.o
"_FT_Load_Glyph", referenced from:
FTFace::Glyph(unsigned int, int) in FTFace.cxx.o
"_FT_New_Face", referenced from:
FTFace::FTFace(char const*) in FTFace.cxx.o
"_FT_New_Memory_Face", referenced from:
FTFace::FTFace(unsigned char const*, unsigned long) in FTFace.cxx.o
"_FT_Outline_Get_CBox", referenced from:
FTGlyph::FTGlyph(FT_GlyphSlotRec_*, bool) in FTGlyph.cxx.o
"_FT_Render_Glyph", referenced from:
FTBitmapGlyph::FTBitmapGlyph(FT_GlyphSlotRec_*) in FTBitmapGlyph.cxx.o
FTPixmapGlyph::FTPixmapGlyph(FT_GlyphSlotRec_*) in FTPixmapGlyph.cxx.o
FTTextureGlyph::FTTextureGlyph(FT_GlyphSlotRec_*, int, int, int, int, int) in FTTextureGlyph.cxx.o
"_FT_Select_Charmap", referenced from:
FTCharmap::CharMap(FT_Encoding_) in FTCharmap.cxx.o
"_FT_Set_Char_Size", referenced from:
FTSize::CharSize(FT_FaceRec_**, unsigned int, unsigned int, unsigned int) in FTSize.cxx.o
"_FT_Set_Charmap", referenced from:
FTCharmap::FTCharmap(FTFace*) in FTCharmap.cxx.o
FTCharmap::FTCharmap(FTFace*) in FTCharmap.cxx.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libFTGL.so] Error 1
make[1]: *** [graf3d/ftgl/CMakeFiles/FTGL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Steps to reproduce is almost the same expect I added -DXROOTD_ROOT_DIR=/usr/local/Cellar/xrootd/5.0.3
in the build step.
git clone --branch v6-23-01 https://github.com/root-project/root.git root-src
mkdir root-build root-install && cd root-build
cmake -DCMAKE_INSTALL_PREFIX=../root-install -Dtbb=OFF -Dbuiltin_xrootd=OFF -Dimt=OFF -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DXROOTD_ROOT_DIR=/usr/local/Cellar/xrootd/5.0.3 ../root-src | tee build.txt
cmake --build . --target install -j8 | tee install.txt
Build log file: build.txt (10.0 KB)
Install log file: install.txt (606.9 KB)