Cross Compile Error C Compiler Cannot Create Executables
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow configure error c compiler cannot create executables cross compile the company Business Learn more about hiring developers or posting ads with us Stack
Error C Compiler Cannot Create Executables Ubuntu
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of checking for c compiler default output file name configure error c compiler cannot create executables 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up autotools: C compiler cannot create executables up vote 4 down vote favorite I am building an x86_64-elf kernel
Configure Error C Compiler Cannot Create Executables See Config Log For More Details
on OS X. My build system is autotools. I successfully compiled gcc to cross-compile for x86_64-elf on OS X. When I run the configure script generated from autotools I have an issue: configure: error: C compiler cannot create executables See `config.log' for more details So I look at config.log and see: cannot find crt0.o: No such file or directory collect2: error: ld returned 1 exit status This makes perfect sense. The cross-compiler configure error c compiler cannot create executables solaris won't generate an executable because there is no associated runtime. But I don't need or want my compiler to generate an executable, I'm going to link it appropriately for my bootloader. How do I tell autotools to not check this? cross-compiling autotools osdev share|improve this question asked Apr 12 '12 at 14:16 dschatz 577620 Can't you just set the CC variable in your configure.ac script? It might not work however, as other tests may create executable files that the script tries to run. –Joachim Pileborg Apr 12 '12 at 14:22 I set the CC variable when I run configure, its really bad form to set it in configure.ac. Regardless, that doesn't answer the question of how I get it to stop checking if the compiler can create executables. –dschatz Apr 12 '12 at 14:34 Tell configure that you are cross-compiling. Use ./configure --host=x86_64-unknown-linux. If the build type is different from the host type, certain tests may be skipped. –jørgensen Apr 12 '12 at 16:00 I am doing that, --host=x86_64-elf, it still fails. –dschatz Apr 12 '12 at 17:44 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote Make sure that you are specifying the following gcc flags when you run the
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this
Configure Error C Compiler Cannot Create Executables Gentoo
site About Us Learn more about Stack Overflow the company Business Learn more
Configure Error C Compiler Cannot Create Executables Macports
about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu configure error c compiler cannot create executables solaris 10 is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The http://stackoverflow.com/questions/10125410/autotools-c-compiler-cannot-create-executables best answers are voted up and rise to the top how to fix configure: error: C compiler cannot create executables up vote 0 down vote favorite used ./configure DFLAGS="-03" and this is the config.log checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a http://askubuntu.com/questions/647583/how-to-fix-configure-error-c-compiler-cannot-create-executables thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/mike/cpuminer-2.4.2': configure: error: C compiler cannot create executables my system is ubuntu 14.04 and the system details say the os is 32 bit. any help would be great as the compiler fails on anytime I try to use it, not just with this install. config.log output: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by cpuminer configure 2.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure CFLAGS=-03 ## --------- ## ## Platform. ## ## --------- ## hostname = mike-Dell-DM051 uname -m = i686 uname -r = 3.13.0-57-generic uname -s = Linux uname -v = #95-Ubuntu SMP Fri Jun 19 09:27:48 UTC 2015 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /b
topics Unanswered topics Welcome to the wolfSSL Forums! https://www.wolfssl.com/forums/topic413-solved-problems-crosscompiling-cyassl-embedded-ssl-for-kinetis.html Please post questions or comments you have about wolfSSL http://serverfault.com/questions/580489/configure-error-c-compiler-cannot-create-executables-while-build-ruby-from-sou products here. It is helpful to be as descriptive as possible when asking your questions. References Stable Releases - download stable product releases. Development Branch - latest development branch on GitHub. wolfSSL Manual - wolfSSL (formerly CyaSSL) error c product manual and API reference. [SOLVED] Problems cross-compiling cyaSSL embedded SSL for Kinetis wolfSSL - Embedded SSL Library →wolfSSL (formerly CyaSSL) →[SOLVED] Problems cross-compiling cyaSSL embedded SSL for Kinetis Pages 1 You must login or register to post a reply RSS topic feed Posts: 8 1 Topic error c compiler by OscarCirpro 2013-07-25 23:29:37 OscarCirpro Member Offline Registered: 2013-07-25 Posts: 1 Topic: [SOLVED] Problems cross-compiling cyaSSL embedded SSL for Kinetis Hello,I’m trying to cross-compile cyaSSL embedded SSL for kinetis under cygwin with no success. I’m using the arm GNU toolchain provided by code warrior 10.3.I run the following commands prior configure:export CC=arm-none-eabi-gcc.exeexport AR=arm-none-eabi-ar.exeexport RANLIB=arm-none-eabi-ranlib.exeexport LD=arm-none-eabi-ld.exeexport CFLAGS="-mthumb -march=armv7e-m -mfloat-abi=softfp -mfpu=fpv4-sp-d16"Then I run configure with the next command:./configure --target=arm-none-eabiThen the output is:$ ./configure --target=arm-none-eabichecking build system type... i686-pc-cygwinchecking host system type... i686-pc-cygwinchecking target system type... arm-none-eabichecking for gcc... arm-none-eabi-gcc.exechecking whether the C compiler works... noconfigure: error: in `/home/ogarcia/programas/cyassl-2.7.0':configure: error: C compiler cannot create executablesSee `config.log' for more detailsI attach the config.log file.I can see the problem in config.log. Wich I think is the next one:c:/cygwin/home/bin/arm-none-eabi-gcc-4_6_2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m/softfp\libc.a(lib_a-exit.o): In function `exit':^Mexit.c:(.text.exit+0x16): undefined reference to `_exit'In fact, I’m not able to compile the
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top configure: error: C compiler cannot create executables while build ruby from source [closed] up vote 2 down vote favorite I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I am trying to build Ruby from source as describe here: https://www.ruby-lang.org/en/installation/#building-from-source Here what i am getting: ubuntu@saucy1:~/ruby-2.1.1$ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/ubuntu/ruby-2.1.1': configure: error: C compiler cannot create executables See `config.log' for more details Updated: The system is brand new and i am using a cloud image of Ubuntu 13.10, Downloaded from http://uec-images.ubuntu.com/saucy/current/saucy-server-cloudimg-amd64-disk1.img I made this cloud virtual machine with open stack software. And i installed gcc via this command: sudo apt-get install gcc Current version of gcc : #gcc -v Using built-in specs. gcc: error: missing argument to ‘-march=’ COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gn