2012/12/14 Michael Wood <esiot...@gmail.com>: > Hi > > On 14 December 2012 09:35, Bernard Evensrud <bevens...@gmail.com> wrote: >>> On Thu, 13 Dec 2012, Bernard Evensrud wrote: >>> >>>> Also the error, "compiler cannot create executables", I do not understand. >>>> It does not say why it cannot... > [...] >> I removed the --host option as suggested. Here is the start of config.log >> file: > [...] >> cc1: Invalid option `-W1,-elf2flt' > > In your original message you had: > > "export LDFLAGS=-Wl,-elf2flt" > > but in config.log it has a 1 instead of a l! Where does that come from? > > -- > Michael Wood <esiot...@gmail.com> > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html
I am impressed you spotted this. Yes, according to the cpu manual (Moxa Art ARM), it does say W1. So I tried this only to test. Even I know -Wl is the correct way. Here is the correct config.log: ------------------------- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by curl configure -, which was generated by GNU Autoconf 2.64. Invocation command line was $ ./configure --disable-shared --disable-ares --disable-cookies --disable-crypto-auth --disable-ipv6 --disable-verbose --without-libidn --without-zlib --disable-ldap --disable-thread --disable-shared --host=arm-elf --without-ssl --without-libssh2 ## --------- ## ## Platform. ## ## --------- ## hostname = kjs-orbitgmt uname -m = x86_64 uname -r = 3.5.0-17-generic uname -s = Linux uname -v = #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 /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 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/arm-elf/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2730: checking whether to enable maintainer-specific portions of Makefiles configure:2739: result: no configure:2756: checking whether to enable debug build options configure:2775: result: no configure:2779: checking whether to enable compiler optimizer configure:2800: result: (assumed) yes configure:2812: checking whether to enable strict compiler warnings configure:2831: result: no configure:2835: checking whether to enable compiler warnings as errors configure:2854: result: no configure:2858: checking whether to enable curl debug memory tracking configure:2877: result: no configure:2891: checking whether to enable hiding of library internal symbols configure:2912: result: yes configure:2923: checking whether to enable c-ares for DNS lookups configure:2945: result: no configure:2967: checking for sed configure:2986: found /bin/sed configure:2999: result: /bin/sed configure:3016: checking for grep configure:3035: found /bin/grep configure:3048: result: /bin/grep configure:3064: checking for egrep configure:3067: result: /bin/grep -E configure:3271: checking for a BSD-compatible install configure:3339: result: /usr/bin/install -c configure:3350: checking whether build environment is sane configure:3387: result: yes configure:3449: checking for gawk configure:3465: found /usr/bin/gawk configure:3476: result: gawk configure:3487: checking whether make sets $(MAKE) configure:3509: result: yes configure:3583: checking for arm-elf-strip configure:3599: found /usr/local/bin/arm-elf-strip configure:3610: result: arm-elf-strip configure:3687: checking curl version configure:3689: result: 7.28.1 configure:3733: checking build system type configure:3747: result: x86_64-unknown-linux-gnu configure:3767: checking host system type configure:3780: result: arm-unknown-elf configure:3818: checking for style of include used by make configure:3846: result: GNU configure:3882: checking for arm-elf-gcc configure:3909: result: /usr/local/bin/arm-elf-gcc configure:4178: checking for C compiler version configure:4187: /usr/local/bin/arm-elf-gcc --version >&5 2.95.3 configure:4198: $? = 0 configure:4187: /usr/local/bin/arm-elf-gcc -v >&5 Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/) configure:4198: $? = 0 configure:4187: /usr/local/bin/arm-elf-gcc -V >&5 arm-elf-gcc: argument to `-V' is missing configure:4198: $? = 1 configure:4187: /usr/local/bin/arm-elf-gcc -qversion >&5 arm-elf-gcc: unrecognized option `-qversion' arm-elf-gcc: No input files configure:4198: $? = 1 configure:4219: checking for C compiler default output file name configure:4241: /usr/local/bin/arm-elf-gcc -Os -Wl,-elf2flt conftest.c >&5 configure:4245: $? = 0 configure:4282: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "curl" | #define PACKAGE_TARNAME "curl" | #define PACKAGE_VERSION "-" | #define PACKAGE_STRING "curl -" | #define PACKAGE_BUGREPORT "a suitable curl mailing list: http://curl.haxx.se/mail/" | #define PACKAGE_URL "" | #define PACKAGE "curl" | #define VERSION "-" | #define OS "arm-unknown-elf" | /* end confdefs.h. */ | #include <stdio.h> | int main (void) | { | FILE *f = fopen ("conftest.out", "w"); | return ferror (f) || fclose (f) != 0; | | ; | return 0; | } configure:4288: error: in `/home/bernard/curl-7.28.1': configure:4292: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/local/bin/arm-elf-gcc ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html