Root installation with gcc4.9.2 in osX 10.10.3

I have gcc installed via Homebrew:

[code]$ gcc --version
gcc (Homebrew gcc49 4.9.2_1 --with-fortran --with-all-languages) 4.9.2

Trying to install root using the following configuration:
./configure --prefix= --with-cc=gcc --with-cxx=g++ --with-ld=g++ --with-f77=gfortran --disable-cocoa --disable-vc --disable-fink --enable-builtin-freetype[/code]

It is not working. Could you please help?

I already see error in config.log

-------- Derminining support for --no-ctors-in-init-array echo 'int main(int,char*[]){return 0;}' >> conftest.cxx gcc -O2 -DNDEBUG -m64 -mmacosx-version-min=10.10 -Wl,--no-ctors-in-init-array conftest.cxx -o conftest ld: unknown option: --no-ctors-in-init-array collect2: error: ld returned 1 exit status make: *** [conftest] Error 1 not supported ----------
after make -j 4, I get the following error (included only the last few lines)

0 0x10a5b1f64 __assert_rtn + 144 1 0x10a5d9af5 mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 3175 2 0x10a5bd4a1 mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 375 3 0x10a5ed622 archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 758 4 0x10a5ed176 archive::File<x86_64>::justInTimeforEachAtom(char const*, ld::File::AtomHandler&) const + 122 5 0x10a602957 ld::tool::InputFiles::searchLibraries(char const*, bool, bool, bool, ld::File::AtomHandler&) const + 215 6 0x10a60b790 ld::tool::Resolver::resolveUndefines() + 160 7 0x10a60da35 ld::tool::Resolver::resolve() + 79 8 0x10a5b2aff main + 710 9 0x7fff8a9205c9 start + 1 A linker snapshot was created at: /tmp/llvm-tblgen-2015-04-20-103655.ld-snapshot ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-242/src/ld/parsers/macho_relocatable_file.cpp, line 1748. collect2: error: ld returned 1 exit status make[3]: *** [/Users/tsr/HepTools/Sources/root-6.02.08/interpreter/llvm/obj/Release/bin/llvm-tblgen] Error 1 make[2]: *** [TableGen/.makeall] Error 2 make[1]: *** [all] Error 1 make: *** [interpreter/llvm/inst/lib/libclangSema.a] Error 2 make: *** Waiting for unfinished jobs....

Hi,

Looks like your linker and your gcc don’t work together. I don’t think we can fix that on the ROOT side… Maybe contact the homebrew GCC people? Or install a newer binutils from homebrew?

Axel.