4.8.2 fails at strip
Andrew Pinski
pinskia@gmail.com
Sun Dec 1 20:40:00 GMT 2013
On Sat, Nov 30, 2013 at 6:22 AM, Kevin Ingwersen
<ingwie2000@googlemail.com> wrote:
> Hey hey!
>
> I have just tried to build a new GCC, and this time put the binutils folder inside as well, because I simply needed newones as well. But when it is at making the dynamic libraries, it suddenly does this:
>
> for mlib in $MLIBS ; do \
> /Users/Ingwie/Downloads/gcc-4.8.2-build/./binutils/strip-new -o libgcc_ext.10.4.dylib_T${mlib} \
> -R ../../../gcc-4.8.2/./libgcc/config/i386/libgcc-darwin.10.4.ver -c -urx \
> ../${mlib}/libgcc/${mlib}/libgcc_s.dylib || exit 1 ; \
> done
> /Users/Ingwie/Downloads/gcc-4.8.2-build/./binutils/strip-new: invalid option -- c
> Usage: /Users/Ingwie/Downloads/gcc-4.8.2-build/./binutils/strip-new <option(s)> in-file(s)
> Removes symbols and sections from files
> The options are:
> -I --input-target=<bfdname> Assume input file is in format <bfdname>
> -O --output-target=<bfdname> Create an output file in format <bfdname>
> -F --target=<bfdname> Set both input and output format to <bfdname>
> -p --preserve-dates Copy modified/access timestamps to the output
> -D --enable-deterministic-archives
> Produce deterministic output when stripping archives
> -U --disable-deterministic-archives
> Disable -D behavior (default)
> -R --remove-section=<name> Remove section <name> from the output
> -s --strip-all Remove all symbol and relocation information
> -g -S -d --strip-debug Remove all debugging symbols & sections
> --strip-dwo Remove all DWO sections
> --strip-unneeded Remove all symbols not needed by relocations
> --only-keep-debug Strip everything but the debug information
> -N --strip-symbol=<name> Do not copy symbol <name>
> -K --keep-symbol=<name> Do not strip symbol <name>
> --keep-file-symbols Do not strip file symbol(s)
> -w --wildcard Permit wildcard in symbol comparison
> -x --discard-all Remove all non-global symbols
> -X --discard-locals Remove any compiler-generated symbols
> -v --verbose List all object files modified
> -V --version Display this program's version number
> -h --help Display this output
> --info List object formats & architectures supported
> -o <file> Place stripped output into <file>
> /Users/Ingwie/Downloads/gcc-4.8.2-build/./binutils/strip-new: supported targets: mach-o-x86-64 mach-o-i386 mach-o-le mach-o-be mach-o-fat pef pef-xlib sym srec symbolsrec verilog tekhex binary ihex
> make[3]: *** [libgcc_ext.10.4.dylib] Error 1
> make[2]: *** [all-stage1-target-libgcc] Error 2
> make[1]: *** [stage1-bubble] Error 2
> make: *** [all] Error 2
>
> So the -c flag is not supported by the binutils I choose.
> How can I get around this?
This really belongs going to gcc-help@. The GNU binutils is not
supported for building a Darwin GCC. Use cctools instead.
Thanks,
Andrew Pinski
>
> Kind regards, Ingwie
More information about the Gcc-help
mailing list