linux - Compilng libgcc xgcc error -


i'm trying install cross compiler, this tutorial, , when want make libgcc put make all-target-libgcc in terminal. make throws error

checking whether ln -s works... yes checking i586-elf-gcc...  /usr/src/build-gcc/./gcc/xgcc -b/usr/src/build-gcc/./gcc/         -b/usr/local/cross/i586-elf/bin/ -b/usr/local/cross/i586-elf/lib/ -isystem /usr/local/cross/i586-elf/include -isystem /usr/local/cross/i586-elf/sys-include    checking suffix of object files... configure: error: in `/usr/src/build-gcc/i586-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile see `config.log' more details. make: *** [configure-target-libgcc] error 1 

in config.log found

target: i586-elf configured with: ../gcc-4.8.0/configure --target=i586-elf --prefix=/usr/local/cross --        disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../gcc-4.8.0/configure --target=i586-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers : (reconfigured) ../gcc-4.8.0/configure --target=i586-elf --prefix=/usr/local/cross --disable-nls --enable-languages=c,c++ --without-headers thread model: single gcc version 4.8.0 (gcc)  configure:3358: $? = 0 configure:3347:  /usr/src/build-gcc/./gcc/xgcc -b/usr/src/build-gcc/./gcc/ -    b/usr/local/cross/i586-elf/bin/ -b/usr/local/cross/i586-elf/lib/ -isystem /usr/local/cross/i586-elf/include -isystem /usr/local/cross/i586-elf/sys-include    -v >&5 xgcc: error: unrecognized command line option '-v' xgcc: fatal error: no input files 

in fact xgcc don't have '-v' option. i'm searching way how compile libgcc.

thanks in advance

here's problem: before attempted build libgcc described, built extreme bare-bones cross compiler. now, part of standard tests configure script runs test compiler see if produce working executable file under normal conditions. bare bones compiler can't. fortunately, libgcc, don't need produce executable, static library libgcc.a . problem stupid gnu autoconf-generated script doesn't realize that.

i encountered same problem , devised ugly workaround. need comment out section of libgcc/configure file in gcc source directory. here's section commented out version; similar yours:

at line 3484:

{ $as_echo "$as_me:${as_lineno-$lineno}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } # begin phillip edit # if test -z "$ac_file"; :   # $as_echo "$as_me: failed program was:" >&5 # sed 's/^/| /' conftest.$ac_ext >&5  # { { $as_echo "$as_me:${as_lineno-$lineno}: error: in \`$ac_pwd':" >&5 # $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} # { as_fn_set_status 77 # as_fn_error "c compiler cannot create executables # see \`config.log' more details." "$lineno" 5; }; } # fi ac_file='a.out' # end phillip edit ac_exeext=$ac_cv_exeext 

hope helps.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -