cpunion / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
1 stars 0 forks source link

"strip: invalid option -- c" during llvm make #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I just tried to make LLVM according to
http://code.google.com/p/iphone-dev/wiki/Building.

What is the expected output? What do you see instead?
I get the following error :
# When building multilibbed target libraries, all the required
# libraries are expected to exist in the multilib directory.
MLIBS=` ./xgcc -B./ -B/usr/local/arm-apple-darwin/bin/ -isystem
/usr/local/arm-apple-darwin/include -isystem
/usr/local/arm-apple-darwin/sys-include
-L/home/vivenotj/iphone-dev/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/../ld
--print-multi-lib \
                | sed -e 's/;.*$//' -e '/^\.$/d'` ; \
        for mlib in $MLIBS ; do \
          rm -f ${mlib}/libgcc_s.10.4.dylib || exit 1 ; \
          ln -s ../libgcc_s.10.4.dylib ${mlib}/libgcc_s.10.4.dylib || exit
1 ; \
        done
MLIBS=` ./xgcc -B./ -B/usr/local/arm-apple-darwin/bin/ -isystem
/usr/local/arm-apple-darwin/include -isystem
/usr/local/arm-apple-darwin/sys-include
-L/home/vivenotj/iphone-dev/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/../ld
--print-multi-lib \
                | sed -e 's/;.*$//' -e '/^\.$/d'` ; \
        for mlib in '' $MLIBS ; do \
          strip -o libgcc_s.10.4.dylib_T${mlib} \
            -s
../../../llvm-gcc-4.0-iphone/gcc/config/arm/darwin-libgcc.10.4.ver -c -u \
            ./${mlib}/libgcc_s.1.dylib.tmp || exit 1 ; \
        done
strip: invalid option -- c
Usage: strip <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
  -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-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>
strip: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32
elf32-little elf32-big elf64-x86-64 efi-app-x86_64 elf64-little elf64-big
srec symbolsrec tekhex binary ihex trad-core
make: *** [libgcc_s.10.4.dylib] Error 1

What version of the product are you using? On what operating system?

GNU strip (GNU Binutils for Ubuntu) 2.18
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

Original issue reported on code.google.com by jvive...@gmail.com on 15 Jan 2008 at 11:38

GoogleCodeExporter commented 8 years ago
Well, just don't mind.
I'm an awful noob.
I was in the wrong directory. (./gcc instead of ./)
make just went perfectly well.

Original comment by jvive...@gmail.com on 15 Jan 2008 at 11:57