Announcement

Collapse
No announcement yet.

configure: error: C compiler cannot create executables ???!!!

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    configure: error: C compiler cannot create executables ???!!!

    trying to build alsa module and im getting weird error

    r i in control postinst postrm ; do \
    if [ -f debian/$i.orig ]; then \
    mv -f debian/$i.orig debian/$i ; \
    fi ; \
    done
    rm -f control-munge
    make mrproper
    make[1]: Entering directory `/usr/src/modules/alsa-driver'
    rm -f .depend *.o snd.map*
    rm -f /*.ver
    rm -f modules/*.o modules/*.ko
    make[2]: Entering directory `/usr/src/modules/alsa-driver/acore'
    make[2]: Leaving directory `/usr/src/modules/alsa-driver/acore'
    make[1]: Leaving directory `/usr/src/modules/alsa-driver'
    rm -f configure-stamp
    rm -f build-stamp
    /usr/bin/make -f debian/rules binary-modules
    make[1]: Entering directory `/usr/src/modules/alsa-driver'
    CC="gcc-4.1" ./configure --prefix=/usr --with-kernel=/lib/modules/2.6.22-ck1/source --with-build=/lib/modules/2.6.22-ck1/source --with-moddir=/lib/modules/2.6.22-ck1/updates/alsa --with-sequencer=yes --with-isapnp=yes --with-debug=detect --with-cards="ca0106"
    checking for gcc... gcc-4.1
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    make[1]: *** [configure-stamp] Error 77
    make[1]: Leaving directory `/usr/src/modules/alsa-driver'
    make: *** [kdist_image] Error 2

    configure: error: C compiler cannot create executables??

    i have build essential installed and i was even able to complie my own kernel..what is goin on..i cant get my soundcard to work if i cant build alsa for it.,

    #2
    Re: configure: error: C compiler cannot create executables !!!

    Originally posted by raffytaffy
    See `config.log' for more details.
    Perhaps you should consult the log?
    For external use only.

    Comment


      #3
      Re: configure: error: C compiler cannot create executables !!!

      Originally posted by SheeEttin
      Originally posted by raffytaffy
      See `config.log' for more details.
      Perhaps you should consult the log?
      where is this log located, i cant find it, ive been trying to

      Comment


        #4
        Re: configure: error: C compiler cannot create executables !!!

        Either your current directory or /usr/src/modules/alsa-driver, I would guess.
        For external use only.

        Comment


          #5
          Re: configure: error: C compiler cannot create executables !!!

          I have no idea what to look for


          This file contains any messages produced by compilers while
          running configure, to aid debugging if configure makes a mistake.

          It was created by configure, which was
          generated by GNU Autoconf 2.60a. Invocation command line was

          $ ./configure --prefix=/usr --with-kernel=/lib/modules/2.6.22-ck1/source --with-build=/lib/modules/2.6.22-ck1/source --with-moddir=/lib/modules/2.6.22-ck1/updates/alsa --with-sequencer=yes --with-isapnp=yes --with-debug=detect --with-cards=ca0106

          ## --------- ##
          ## Platform. ##
          ## --------- ##

          hostname = equinox2
          uname -m = i686
          uname -r = 2.6.22-ck1
          uname -s = Linux
          uname -v = #1 SMP Mon Jul 9 20:19:27 EDT 2007

          /usr/bin/uname -p = unknown
          /bin/uname -X = unknown

          /bin/arch = i686
          /usr/bin/arch -k = unknown
          /usr/convex/getsysinfo = unknown
          /usr/bin/hostinfo = unknown
          /bin/machine = unknown
          /usr/bin/oslevel = unknown
          /bin/universe = unknown

          PATH: /usr/local/sbin
          PATH: /usr/local/bin
          PATH: /usr/sbin
          PATH: /usr/bin
          PATH: /sbin
          PATH: /bin
          PATH: /usr/X11R6/bin


          ## ----------- ##
          ## Core tests. ##
          ## ----------- ##

          configure:1986: checking for gcc
          configure:2013: result: gcc-4.1
          configure:2251: checking for C compiler version
          configure:2258: gcc-4.1 --version >&5
          gcc-4.1 (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
          Copyright (C) 2006 Free Software Foundation, Inc.
          This is free software; see the source for copying conditions. There is NO
          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

          configure:2261: $? = 0
          configure:2268: gcc-4.1 -v >&5
          Using built-in specs.
          Target: i486-linux-gnu
          Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
          Thread model: posix
          gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
          configure:2271: $? = 0
          configure:2278: gcc-4.1 -V >&5
          gcc-4.1: '-V' option must have argument
          configure:2281: $? = 1
          configure:2304: checking for C compiler default output file name
          configure:2331: gcc-4.1 -O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions" conftest.c >&5
          cc1: error: unrecognized command line option "-fno-exceptions""
          configure:2334: $? = 1
          configure:2372: result:
          configure: failed program was:
          | /* confdefs.h. */
          | #define PACKAGE_NAME ""
          | #define PACKAGE_TARNAME ""
          | #define PACKAGE_VERSION ""
          | #define PACKAGE_STRING ""
          | #define PACKAGE_BUGREPORT ""
          | /* end confdefs.h. */
          |
          | int
          | main ()
          | {
          |
          | ;
          | return 0;
          | }
          configure:2379: error: C compiler cannot create executables
          See `config.log' for more details.

          ## ---------------- ##
          ## Cache variables. ##
          ## ---------------- ##

          ac_cv_env_CC_set=set
          ac_cv_env_CC_value=gcc-4.1
          ac_cv_env_CFLAGS_set=set
          ac_cv_env_CFLAGS_value='-O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions" '
          ac_cv_env_CPPFLAGS_set=
          ac_cv_env_CPPFLAGS_value=
          ac_cv_env_CPP_set=
          ac_cv_env_CPP_value=
          ac_cv_env_LDFLAGS_set=
          ac_cv_env_LDFLAGS_value=
          ac_cv_env_build_alias_set=
          ac_cv_env_build_alias_value=
          ac_cv_env_host_alias_set=
          ac_cv_env_host_alias_value=
          ac_cv_env_target_alias_set=
          ac_cv_env_target_alias_value=
          ac_cv_prog_ac_ct_CC=gcc-4.1

          ## ----------------- ##
          ## Output variables. ##
          ## ----------------- ##

          AR=''
          ARCH=''
          AS=''
          CC='gcc-4.1'
          CFLAGS='-O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions" '
          CONFIG_ALPHA=''
          CONFIG_ARCH_PXA=''
          CONFIG_ARCH_S3C2410=''
          CONFIG_ARCH_SA1100=''
          CONFIG_ARM=''
          CONFIG_ARM_AMBA=''
          CONFIG_BROKEN=''
          CONFIG_EXPERIMENTAL=''
          CONFIG_FW_LOADER=''
          CONFIG_GSC=''
          CONFIG_HAVE_PCSP_HOOK=''
          CONFIG_HPET=''
          CONFIG_I2C=''
          CONFIG_I2C_POWERMAC=''
          CONFIG_I2C_SENSOR=''
          CONFIG_INPUT=''
          CONFIG_ISA=''
          CONFIG_ISAPNP=''
          CONFIG_ISAPNP_KERNEL=''
          CONFIG_ISA_DMA_API=''
          CONFIG_L3=''
          CONFIG_MIPS=''
          CONFIG_PARISC=''
          CONFIG_PARPORT=''
          CONFIG_PCI=''
          CONFIG_PCMCIA=''
          CONFIG_PM=''
          CONFIG_PNP=''
          CONFIG_PNP_KERNEL=''
          CONFIG_PPC=''
          CONFIG_PPC_PMAC=''
          CONFIG_PROC_FS=''
          CONFIG_RTC=''
          CONFIG_SBUS=''
          CONFIG_SGI=''
          CONFIG_SND=''
          CONFIG_SND_AC97_BUS=''
          CONFIG_SND_AC97_CODEC=''
          CONFIG_SND_AC97_POWER_SAVE=''
          CONFIG_SND_AD1816A=''
          CONFIG_SND_AD1848=''
          CONFIG_SND_AD1848_LIB=''
          CONFIG_SND_AD1889=''
          CONFIG_SND_ADLIB=''
          CONFIG_SND_ALI5451=''
          CONFIG_SND_ALS100=''
          CONFIG_SND_ALS300=''
          CONFIG_SND_ALS4000=''
          CONFIG_SND_AOA=''
          CONFIG_SND_AOA_FABRIC_LAYOUT=''
          CONFIG_SND_AOA_ONYX=''
          CONFIG_SND_AOA_SOUNDBUS=''
          CONFIG_SND_AOA_SOUNDBUS_I2S=''
          CONFIG_SND_AOA_TAS=''
          CONFIG_SND_AOA_TOONIE=''
          CONFIG_SND_ARMAACI=''
          CONFIG_SND_ASIHPI=''
          CONFIG_SND_ATIIXP=''
          CONFIG_SND_ATIIXP_MODEM=''
          CONFIG_SND_AU1X00=''
          CONFIG_SND_AU8810=''
          CONFIG_SND_AU8820=''
          CONFIG_SND_AU8830=''
          CONFIG_SND_AZT2320=''
          CONFIG_SND_AZT3328=''
          CONFIG_SND_BIT32_EMUL=''
          CONFIG_SND_BT87X=''
          CONFIG_SND_BT87X_OVERCLOCK=''
          CONFIG_SND_CA0106=''
          CONFIG_SND_CMI8330=''
          CONFIG_SND_CMIPCI=''
          CONFIG_SND_CS4231=''
          CONFIG_SND_CS4231_LIB=''
          CONFIG_SND_CS4232=''
          CONFIG_SND_CS4236=''
          CONFIG_SND_CS4281=''
          CONFIG_SND_CS46XX=''
          CONFIG_SND_CS46XX_NEW_DSP=''
          CONFIG_SND_CS5535AUDIO=''
          CONFIG_SND_DARLA20=''
          CONFIG_SND_DARLA24=''
          CONFIG_SND_DATE=''
          CONFIG_SND_DEBUG=''
          CONFIG_SND_DEBUG_DETECT=''
          CONFIG_SND_DEBUG_MEMORY=''
          CONFIG_SND_DT019X=''
          CONFIG_SND_DUMMY=''
          CONFIG_SND_DYNAMIC_MINORS=''
          CONFIG_SND_ECHO3G=''
          CONFIG_SND_EMU10K1=''
          CONFIG_SND_EMU10K1X=''
          CONFIG_SND_ENS1370=''
          CONFIG_SND_ENS1371=''
          CONFIG_SND_ES1688=''
          CONFIG_SND_ES18XX=''
          CONFIG_SND_ES1938=''
          CONFIG_SND_ES1968=''
          CONFIG_SND_ES968=''
          CONFIG_SND_FM801=''
          CONFIG_SND_FM801_TEA575X=''
          CONFIG_SND_FM801_TEA575X_BOOL=''
          CONFIG_SND_GINA20=''
          CONFIG_SND_GINA24=''
          CONFIG_SND_GUSCLASSIC=''
          CONFIG_SND_GUSEXTREME=''
          CONFIG_SND_GUSMAX=''
          CONFIG_SND_GUS_SYNTH=''
          CONFIG_SND_HARMONY=''
          CONFIG_SND_HDA_INTEL=''
          CONFIG_SND_HDSP=''
          CONFIG_SND_HDSPM=''
          CONFIG_SND_HPET=''
          CONFIG_SND_HWDEP=''
          CONFIG_SND_ICE1712=''
          CONFIG_SND_ICE1724=''
          CONFIG_SND_INDIGO=''
          CONFIG_SND_INDIGODJ=''
          CONFIG_SND_INDIGOIO=''
          CONFIG_SND_INTEL8X0=''
          CONFIG_SND_INTEL8X0M=''
          CONFIG_SND_INTERWAVE=''
          CONFIG_SND_INTERWAVE_STB=''
          CONFIG_SND_KERNELDIR=''
          CONFIG_SND_KORG1212=''
          CONFIG_SND_LAYLA20=''
          CONFIG_SND_LAYLA24=''
          CONFIG_SND_LOOPBACK=''
          CONFIG_SND_MAESTRO3=''
          CONFIG_SND_MIA=''
          CONFIG_SND_MIRO=''
          CONFIG_SND_MIXART=''
          CONFIG_SND_MIXER_OSS=''
          CONFIG_SND_MONA=''
          CONFIG_SND_MPU401=''
          CONFIG_SND_MPU401_UART=''
          CONFIG_SND_MSND_PINNACLE=''
          CONFIG_SND_MTPAV=''
          CONFIG_SND_MTS64=''
          CONFIG_SND_MVERSION=''
          CONFIG_SND_NM256=''
          CONFIG_SND_OPL3SA2=''
          CONFIG_SND_OPL3_LIB=''
          CONFIG_SND_OPL4_LIB=''
          CONFIG_SND_OPTI92X_AD1848=''
          CONFIG_SND_OPTI92X_CS4231=''
          CONFIG_SND_OPTI93X=''
          CONFIG_SND_OSSEMUL=''
          CONFIG_SND_PC98_CS4232=''
          CONFIG_SND_PCM=''
          CONFIG_SND_PCM_OSS=''
          CONFIG_SND_PCM_OSS_PLUGINS=''
          CONFIG_SND_PCM_XRUN_DEBUG=''
          CONFIG_SND_PCSP=''
          CONFIG_SND_PCXHR=''
          CONFIG_SND_PDAUDIOCF=''
          CONFIG_SND_PDPLUS=''
          CONFIG_SND_PORTMAN2X4=''
          CONFIG_SND_POWERMAC=''
          CONFIG_SND_POWERMAC_AUTO_DRC=''
          CONFIG_SND_PXA2XX_AC97=''
          CONFIG_SND_PXA2XX_I2SOUND=''
          CONFIG_SND_PXA2XX_PCM=''
          CONFIG_SND_RAWMIDI=''
          CONFIG_SND_RIPTIDE=''
          CONFIG_SND_RME32=''
          CONFIG_SND_RME9652=''
          CONFIG_SND_RME96=''
          CONFIG_SND_RTCTIMER=''
          CONFIG_SND_S3C2410=''
          CONFIG_SND_SA11XX_UDA1341=''
          CONFIG_SND_SB16=''
          CONFIG_SND_SB16_CSP=''
          CONFIG_SND_SB8=''
          CONFIG_SND_SBAWE=''
          CONFIG_SND_SEQUENCER=''
          CONFIG_SND_SEQUENCER_OSS=''
          CONFIG_SND_SEQ_DUMMY=''
          CONFIG_SND_SEQ_RTCTIMER_DEFAULT=''
          CONFIG_SND_SERIALMIDI=''
          CONFIG_SND_SERIAL_U16550=''
          CONFIG_SND_SGALAXY=''
          CONFIG_SND_SONICVIBES=''
          CONFIG_SND_SSCAPE=''
          CONFIG_SND_SUN_AMD7930=''
          CONFIG_SND_SUN_CS4231=''
          CONFIG_SND_SUN_DBRI=''
          CONFIG_SND_SUPPORT_OLD_API=''
          CONFIG_SND_TIMER=''
          CONFIG_SND_TRIDENT=''
          CONFIG_SND_USB_AUDIO=''
          CONFIG_SND_USB_USX2Y=''
          CONFIG_SND_VERBOSE_PRINTK=''
          CONFIG_SND_VERBOSE_PROCFS=''
          CONFIG_SND_VERSION='1.0.13'
          CONFIG_SND_VIA82XX=''
          CONFIG_SND_VIA82XX_MODEM=''
          CONFIG_SND_VIRMIDI=''
          CONFIG_SND_VX222=''
          CONFIG_SND_VXPOCKET=''
          CONFIG_SND_VX_LIB=''
          CONFIG_SND_WAVEFRONT=''
          CONFIG_SND_YMFPCI=''
          CONFIG_SOC_AU1000=''
          CONFIG_SOC_AU1100=''
          CONFIG_SOC_AU1500=''
          CONFIG_SOUND=''
          CONFIG_SOUND_PRIME=''
          CONFIG_SPARC32=''
          CONFIG_SPARC64=''
          CONFIG_SPARC=''
          CONFIG_USB=''
          CONFIG_VIDEO_DEV=''
          CONFIG_VIDEO_V4L1=''
          CONFIG_X86=''
          CONFIG_X86_32=''
          CONFIG_X86_64=''
          CONFIG_X86_PC9800=''
          CPP=''
          CPPFLAGS=''
          CROSS_COMPILE=''
          DEFS=''
          ECHO_C=''
          ECHO_N='-n'
          ECHO_T=''
          EGREP=''
          EXEEXT=''
          EXTRA_INCLUDES=''
          GENKSYMS=''
          GREP=''
          INSTALL_DATA=''
          INSTALL_PROGRAM=''
          INSTALL_SCRIPT=''
          KERNEL_INC=''
          KLD=''
          LDFLAGS=''
          LIBOBJS=''
          LIBS=''
          LTLIBOBJS=''
          MAKE_ADDS=''
          NEW_KBUILD=''
          OBJEXT=''
          PACKAGE_BUGREPORT=''
          PACKAGE_NAME=''
          PACKAGE_STRING=''
          PACKAGE_TARNAME=''
          PACKAGE_VERSION=''
          PATH_SEPARATOR=':'
          RANLIB=''
          SHELL='/bin/bash'
          SRCDIR=''
          ac_ct_CC='gcc-4.1'
          bindir='${exec_prefix}/bin'
          build_alias=''
          c_opts=''
          datadir='${datarootdir}'
          datarootdir='${prefix}/share'
          docdir='${datarootdir}/doc/${PACKAGE}'
          dvidir='${docdir}'
          exec_prefix='NONE'
          host_alias=''
          htmldir='${docdir}'
          includedir='${prefix}/include'
          infodir='${datarootdir}/info'
          kaversion=''
          kextraversion=''
          kpatchlevel=''
          ksublevel=''
          kversion=''
          libdir='${exec_prefix}/lib'
          libexecdir='${exec_prefix}/libexec'
          localedir='${datarootdir}/locale'
          localstatedir='${prefix}/var'
          m_opts=''
          mandir='${datarootdir}/man'
          moddir=''
          moddir_tree=''
          modsubdir=''
          msmp=''
          oldincludedir='/usr/include'
          pdfdir='${docdir}'
          prefix='/usr'
          processor=''
          program_transform_name='s,x,x,'
          psdir='${docdir}'
          sbindir='${exec_prefix}/sbin'
          sharedstatedir='${prefix}/com'
          sysconfdir='${prefix}/etc'
          target_alias=''

          ## ----------- ##
          ## confdefs.h. ##
          ## ----------- ##

          #define PACKAGE_NAME ""
          #define PACKAGE_TARNAME ""
          #define PACKAGE_VERSION ""
          #define PACKAGE_STRING ""
          #define PACKAGE_BUGREPORT ""

          configure: exit 77

          Comment


            #6
            Re: configure: error: C compiler cannot create executables !!!

            infact i cd into alsa dir and tried ./configure and i got the same error. it seems i cant compie period. what is goin on

            Comment


              #7
              Re: configure: error: C compiler cannot create executables !!!

              Not sure if this is causing it or not, but we'll see.

              Open up configure with Kate, hit Ctrl+F, and search for "gcc-4.1 -O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions" conftest.c >&5". Adjust this line so that it reads "gcc-4.1 -O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions conftest.c >&5", i.e. remove the quotes from -fno-exceptions. Then, try it again.
              For external use only.

              Comment


                #8
                Re: configure: error: C compiler cannot create executables !!!

                string not found

                Comment


                  #9
                  Re: configure: error: C compiler cannot create executables !!!

                  Some driver modules require the gcc 3.4 version.

                  Comment


                    #10
                    Re: configure: error: C compiler cannot create executables !!!

                    tried all the gcc versions in synaptic, nothing i do is working, this is crazy

                    Comment


                      #11
                      Re: configure: error: C compiler cannot create executables !!!

                      EUREKA

                      export CFLAGS="-O2 -mtune=k8 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions"

                      Comment


                        #12
                        Re: configure: error: C compiler cannot create executables !!!

                        Does that mean you have it working?
                        For external use only.

                        Comment


                          #13
                          Re: configure: error: C compiler cannot create executables !!!

                          Originally posted by SheeEttin
                          Does that mean you have it working?
                          well i can compile but i run into another problem down the road lol. I am running this command to rebuil alsa source from a how to i found here https://help.ubuntu.com/community/Ho...digySEinBreezy

                          >> sudo module-assistant auto-install alsa-source<<

                          it gets about 50% done and it spits out make errors @ me, ive attached a screenshot of the exact errors im seeing >>

                          Comment


                            #14
                            Re: configure: error: C compiler cannot create executables !!!

                            How about posting (or attaching, or pastebinning) /usr/src/modules/alsa-driver/include/adriver.h, lines 1090 to 1110?
                            For external use only.

                            Comment


                              #15
                              Re: configure: error: C compiler cannot create executables !!!

                              Originally posted by SheeEttin
                              How about posting (or attaching, or pastebinning) /usr/src/modules/alsa-driver/include/adriver.h, lines 1090 to 1110?
                              #endif /* CONFIG_PCI */
                              #endif /* 2.4 */

                              #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0)
                              #ifdef CONFIG_PCI
                              #ifndef CONFIG_HAVE_NEW_PCI_SAVE_STATE
                              void snd_pci_compat_save_state(struct pci_dev *pci);
                              void snd_pci_compat_restore_state(struct pci_dev *pci);
                              static inline void snd_pci_orig_save_state(struct pci_dev *pci, u32 *buffer)
                              {
                              pci_save_state(pci, buffer);
                              }
                              static inline void snd_pci_orig_restore_state(struct pci_dev *pci, u32 *buffer)
                              {
                              pci_restore_state(pci, buffer);
                              }

                              #undef pci_save_state
                              #define pci_save_state snd_pci_compat_save_state
                              #undef pci_restore_state
                              #define pci_restore_state snd_pci_compat_restore_state
                              #endif /* !CONFIG_HAVE_NEW_PCI_SAVE_STATE */

                              Comment

                              Working...
                              X