cygwinのgccによるコンパイルうまくいかない
cygwinをsetup.exeからminimum installしました。
追加的にgcc emacs xwindow system xwin terminalをインストールしました。
そしてターミナルを起動してgcc test.c -o test.exe
と入力すると/home/test.c:1: error: bad value (generic) for -mtune= switch
と、エラーが出てうまくコンパイル出来ません。
mtune=generic,native,i386...k6,athlon-xp..c6-2などいろいろ試しましたが全て失敗。
どうやったらコンパイルが出来るようになるか教えてください!
環境:
>gcc -v
>Using built-in specs.
COLLECT_GCC=gcc
Target: i686-pc-cygwin
コンフィグオプション: /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure --srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
スレッドモデル: posix
gcc version 4.5.3 (GCC)
test.cのsource
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
printf("Hello World!\n");
return 0;
[EOF]
素人なので解決するために他に足りない情報があればおしえてくださいね。
補足
Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print `checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR --enable and --with options recognized: --with-gdbm use GDBM library (data base manager) [default yes] --with-bdbm use Berkeley DB library (data base manager) [default no] --with-regex use Regex library [default yes] --with-assoc use an assoc library [default yes] --with-tnt use TNT parser [default yes] --with-itsdb use a [incr tsdb()] interface [default no] --enable-prof enable profiling (no or 0-5) [default 1] --enable-passive-prof enable passive profiling [default yes] --enable-memchk enable memory checking [default yes] --enable-xconstr enable complex constraints [default yes] --enable-tthash enable type table hash [default yes] --enable-rulehash enable TNT rule table hash [default no] --enable-hashprof enable hash profiling [default no] --enable-unifyprof enable unification profiling [default no] --enable-copyprof enable copying profiling [default no] --enable-unify enable compiled unification [default yes] --enable-blockcopy enable block copying [default yes] --enable-extinst enable extended instructions [default yes] --enable-debug turn on debugging [default no] --enable-debugmem turn on debugging memory [default no] --enable-debuglabel I don't know... [default yes] --enable-string-gc enable string garbage collection [default yes] --enable-assert enable assertions [default no] ./configure --helpの結果です。 何故か--with-CCがありません・・・。