On Fri, 2016-02-26 at 19:45 +0100, phi gcc wrote: > I grabbed the elfutils-0.165.tar.bz2 > CU82$ tar xf elfutils-0.165.tar.bz2 > CU82$ cd elfutils-0.165 > CU82$ configure > ... > ===================================================================== > elfutils: 0.165 (eu_version: 165) > ===================================================================== > > Prefix : /usr/local > Program prefix ("eu-" recommended) : NONE > Source code location : . > Maintainer mode : > libebl modules subdirectory : elfutils > build arch : x86_64-unknown-linux-gnu > > RECOMMENDED FEATURES (should all be yes) > gzip support : yes > bzip2 support : yes > lzma/xz support : yes > libstdc++ demangle support : yes > File textrel check : yes > Symbol versioning : yes > > NOT RECOMMENDED FEATURES (should all be no) > Experimental thread safety : no > > OTHER FEATURES > Deterministic archives by default : false > Native language support : yes > > EXTRA TEST FEATURES (used with make check) > have bunzip2 installed (required) : yes > debug branch prediction : no > gprof support : no > gcov support : no > run all tests under valgrind : no > gcc undefined behaviour sanitizer : no > use rpath in tests : no > test biarch : no > > > CU82$ make > make --no-print-directory all-recursive > Making all in config > ... > > ldgeneric.o: In function `ld_generic_open_outfile': > /home/phi/elfutils-0.165/src/ldgeneric.c:2669: warning: the use of `mktemp' is d > angerous, better use `mkstemp' or `mkdtemp' > CC elflint.o > CCLD elflint > ./ld: unrecognized option '--sysroot=/' > Try `ld --help' or `ld --usage' for more information. > collect2: error: ld returned 64 exit status > make[2]: *** [elflint] Error 1 > rm i386_ld.o > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > ======================== > > Am I doing something obviously wrong ? I think what is happening is that you have "." (the current directory) in your PATH. So when the build is in src/ it picks up the just build src/ld program. Which isn't really ready, and doesn't understand --sysroot. Best to remove "." from your PATH. Cheers, Mark