Build Error

Home Forums Forum Build Error

This topic contains 1 reply, has 1 voice, and was last updated by  Robert Nediyakalaparambil 9 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5171

    Robert Nediyakalaparambil

    Dear Friends

    I have this issue on second build:

    =====================================

    root@truth:/media/matrix/Ports/ellcc# ./build
    cd llvm-build ; \
    ../llvm/configure \
    CC=/media/matrix/Ports/ellcc/bin/ecc CFLAGS=”” \
    CPP=”/media/matrix/Ports/ellcc/bin/ecc -E” \
    CXX=/media/matrix/Ports/ellcc/bin/ecc++ CXXFLAGS=”” \
    CXXCPP=”/media/matrix/Ports/ellcc/bin/ecc++ -E” \
    AR=ar RANLIB=ranlib \
    –bindir=/media/matrix/Ports/ellcc/bin –prefix=/media/matrix/Ports/ellcc \
    \
    –enable-shared=no -enable-pic=no –enable-keep-symbols \
    –enable-optimized
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether /media/matrix/Ports/ellcc/bin/ecc accepts -g… yes
    checking for /media/matrix/Ports/ellcc/bin/ecc option to accept ISO C89… unsupported
    checking whether we are using the GNU C++ compiler… yes
    checking whether /media/matrix/Ports/ellcc/bin/ecc++ accepts -g… yes
    checking how to run the C preprocessor… /media/matrix/Ports/ellcc/bin/ecc -E
    configure: error: C preprocessor “/media/matrix/Ports/ellcc/bin/ecc -E” fails sanity check
    See `config.log’ for more details.
    make: *** [llvm.configure] Error 1

    ===================================================

    I have checked out svn twice but the builds failed both times…

    This is the last line of the gcc-4.7 build, I think the ADA/gnat from gcc-4.6 kicks in:

    ===================================================
    gnatmake -a -A../../../../../src/ncurses/Ada95/samples -A../src -A../../../../../src/ncurses/Ada95/samples/../src tour -cargs -gnatpn -O3 -I../../../../../src/ncurses/Ada95/samples -largs -L../lib -lAdaCurses -L../../lib -lform -lmenu -lpanel -lncurses
    gcc-4.6 -c -I./ -I../../../../../src/ncurses/Ada95/samples -I../src -I../../../../../src/ncurses/Ada95/samples/../src -gnatpn -O3 -I../../../../../src/ncurses/Ada95/samples -I- /media/matrix/Ports/ellcc/libecc/src/ncurses/Ada95/samples/tour.adb
    gcc-4.6 -c -I./ -I../../../../../src/ncurses/Ada95/samples -I../src -I../../../../../src/ncurses/Ada95/samples/../src -gnatpn -O3 -I../../../../../src/ncurses/Ada95/samples -I- /media/matrix/Ports/ellcc/libecc/src/ncurses/Ada95/samples/sample.adb
    terminal_interface-curses-mouse.ads:180:10: size for “Event_Mask” too small, minimum allowed is 64
    gnatmake: “/media/matrix/Ports/ellcc/libecc/src/ncurses/Ada95/samples/sample.adb” compilation error
    make[4]: *** [tour] Error 4
    make[4]: Leaving directory `/media/matrix/Ports/ellcc/libecc/ncurses-build/arm/linux/Ada95/samples’
    make[3]: *** [all] Error 2
    make[3]: Leaving directory `/media/matrix/Ports/ellcc/libecc/ncurses-build/arm/linux/Ada95′
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/media/matrix/Ports/ellcc/libecc/ncurses-build/arm/linux’
    make[1]: *** [arm.ncurses.build] Error 2
    make[1]: Leaving directory `/media/matrix/Ports/ellcc/libecc’
    make: *** [arm] Error 2

    ====================
    I am pasting my config log here:

    ======================

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

    It was created by LLVM configure 3.5.0svn, which was
    generated by GNU Autoconf 2.60. Invocation command line was

    $ ../llvm/configure CC=/media/matrix/Ports/ellcc/bin/ecc CFLAGS= CPP=/media/matrix/Ports/ellcc/bin/ecc -E CXX=/media/matrix/Ports/ellcc/bin/ecc++ CXXFLAGS= CXXCPP=/media/matrix/Ports/ellcc/bin/ecc++ -E AR=ar RANLIB=ranlib –bindir=/media/matrix/Ports/ellcc/bin –prefix=/media/matrix/Ports/ellcc –enable-shared=no -enable-pic=no –enable-keep-symbols –enable-optimized

    ## ——— ##
    ## Platform. ##
    ## ——— ##

    hostname = truth
    uname -m = x86_64
    uname -r = 3.2.0-60-generic
    uname -s = Linux
    uname -v = #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014

    /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/lib/lightdm/lightdm
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games

    ## ———– ##
    ## Core tests. ##
    ## ———– ##

    configure:2132: checking for C compiler version
    configure:2139: /media/matrix/Ports/ellcc/bin/ecc –version >&5
    clang version 3.5.0 (http://ellcc.org/svn/ellcc/trunk/llvm/tools/clang 4098)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    configure:2142: $? = 0
    configure:2149: /media/matrix/Ports/ellcc/bin/ecc -v >&5
    clang version 3.5.0 (http://ellcc.org/svn/ellcc/trunk/llvm/tools/clang 4098)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.4
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.1
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
    Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
    Candidate multilib: .;@m64
    Selected multilib: .;@m64
    configure:2152: $? = 0
    configure:2159: /media/matrix/Ports/ellcc/bin/ecc -V >&5
    ecc: error: argument to ‘-V’ is missing (expected 1 value)
    ecc: error: no input files
    configure:2162: $? = 1
    configure:2185: checking for C compiler default output file name
    configure:2212: /media/matrix/Ports/ellcc/bin/ecc conftest.c >&5
    configure:2215: $? = 0
    configure:2261: result: a.out
    configure:2266: checking whether the C compiler works
    configure:2276: ./a.out
    configure:2279: $? = 0
    configure:2296: result: yes
    configure:2303: checking whether we are cross compiling
    configure:2305: result: no
    configure:2308: checking for suffix of executables
    configure:2315: /media/matrix/Ports/ellcc/bin/ecc -o conftest conftest.c >&5
    configure:2318: $? = 0
    configure:2342: result:
    configure:2348: checking for suffix of object files
    configure:2374: /media/matrix/Ports/ellcc/bin/ecc -c conftest.c >&5
    configure:2377: $? = 0
    configure:2400: result: o
    configure:2404: checking whether we are using the GNU C compiler
    configure:2433: /media/matrix/Ports/ellcc/bin/ecc -c conftest.c >&5
    configure:2439: $? = 0
    configure:2446: test -z “$ac_c_werror_flag” || test ! -s conftest.err
    configure:2449: $? = 0
    configure:2456: test -s conftest.o
    configure:2459: $? = 0
    configure:2473: result: yes
    configure:2478: checking whether /media/matrix/Ports/ellcc/bin/ecc accepts -g
    configure:2508: /media/matrix/Ports/ellcc/bin/ecc -c -g conftest.c >&5
    configure:2514: $? = 0
    configure:2521: test -z “$ac_c_werror_flag” || test ! -s conftest.err
    configure:2524: $? = 0
    configure:2531: test -s conftest.o
    configure:2534: $? = 0
    configure:2664: result: yes
    configure:2681: checking for /media/matrix/Ports/ellcc/bin/ecc option to accept ISO C89
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -c conftest.c >&5
    conftest.c:11:10: fatal error: ‘stdarg.h’ file not found
    #include <stdarg.h>
    ^
    1 error generated.
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -qlanglvl=extc89 -c conftest.c >&5
    ecc: error: unknown argument: ‘-qlanglvl=extc89’
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -qlanglvl=ansi -c conftest.c >&5
    ecc: error: unknown argument: ‘-qlanglvl=ansi’
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -std -c conftest.c >&5
    ecc: error: unknown argument: ‘-std’
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -Ae -c conftest.c >&5
    ecc: warning: argument unused during compilation: ‘-Ae’
    conftest.c:11:10: fatal error: ‘stdarg.h’ file not found
    #include <stdarg.h>
    ^
    1 error generated.
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -Aa -D_HPUX_SOURCE -c conftest.c >&5
    ecc: warning: argument unused during compilation: ‘-Aa’
    conftest.c:11:10: fatal error: ‘stdarg.h’ file not found
    #include <stdarg.h>
    ^
    1 error generated.
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2755: /media/matrix/Ports/ellcc/bin/ecc -Xc -D__EXTENSIONS__ -c conftest.c >&5
    ecc: warning: argument unused during compilation: ‘-Xc’
    conftest.c:11:10: fatal error: ‘stdarg.h’ file not found
    #include <stdarg.h>
    ^
    1 error generated.
    configure:2761: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #include <stdarg.h>
    | #include <stdio.h>
    | #include <sys/types.h>
    | #include <sys/stat.h>
    | /* Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
    | struct buf { int x; };
    | FILE * (*rcsopen) (struct buf *, struct stat *, int);
    | static char *e (p, i)
    | char **p;
    | int i;
    | {
    | return p[i];
    | }
    | static char *f (char * (*g) (char **, int), char **p, …)
    | {
    | char *s;
    | va_list v;
    | va_start (v,p);
    | s = g (p, va_arg (v,int));
    | va_end (v);
    | return s;
    | }
    |
    | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
    | function prototypes and stuff, but not ‘\xHH’ hex character constants.
    | These don’t provoke an error unfortunately, instead are silently treated
    | as ‘x’. The following induces an error, until -std is added to get
    | proper ANSI mode. Curiously ‘\x00′!=’x’ always comes out true, for an
    | array size at least. It’s necessary to write ‘\x00’==0 to get something
    | that’s true only with -std. */
    | int osf4_cc_array [‘\x00’ == 0 ? 1 : -1];
    |
    | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    | inside strings and character constants. */
    | #define FOO(x) ‘x’
    | int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
    |
    | int test (int i, double x);
    | struct s1 {int (*f) (int a);};
    | struct s2 {int (*f) (double a);};
    | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    | int argc;
    | char **argv;
    | int
    | main ()
    | {
    | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
    | ;
    | return 0;
    | }
    configure:2804: result: unsupported
    configure:2935: checking for C++ compiler version
    configure:2942: /media/matrix/Ports/ellcc/bin/ecc++ –version >&5
    clang version 3.5.0 (http://ellcc.org/svn/ellcc/trunk/llvm/tools/clang 4098)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    configure:2945: $? = 0
    configure:2952: /media/matrix/Ports/ellcc/bin/ecc++ -v >&5
    clang version 3.5.0 (http://ellcc.org/svn/ellcc/trunk/llvm/tools/clang 4098)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.4
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.1
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
    Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
    Candidate multilib: .;@m64
    Selected multilib: .;@m64
    configure:2955: $? = 0
    configure:2962: /media/matrix/Ports/ellcc/bin/ecc++ -V >&5
    ecc: error: argument to ‘-V’ is missing (expected 1 value)
    ecc: error: no input files
    configure:2965: $? = 1
    configure:2968: checking whether we are using the GNU C++ compiler
    configure:2997: /media/matrix/Ports/ellcc/bin/ecc++ -c conftest.cpp >&5
    configure:3003: $? = 0
    configure:3010: test -z “$ac_cxx_werror_flag” || test ! -s conftest.err
    configure:3013: $? = 0
    configure:3020: test -s conftest.o
    configure:3023: $? = 0
    configure:3037: result: yes
    configure:3042: checking whether /media/matrix/Ports/ellcc/bin/ecc++ accepts -g
    configure:3072: /media/matrix/Ports/ellcc/bin/ecc++ -c -g conftest.cpp >&5
    configure:3078: $? = 0
    configure:3085: test -z “$ac_cxx_werror_flag” || test ! -s conftest.err
    configure:3088: $? = 0
    configure:3095: test -s conftest.o
    configure:3098: $? = 0
    configure:3228: result: yes
    configure:3256: checking how to run the C preprocessor
    configure:3386: result: /media/matrix/Ports/ellcc/bin/ecc -E
    configure:3415: /media/matrix/Ports/ellcc/bin/ecc -E conftest.c
    In file included from conftest.c:12:
    /usr/include/limits.h:125:16: fatal error: ‘limits.h’ file not found
    # include_next <limits.h>
    ^
    1 error generated.
    configure:3421: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | Syntax error
    configure:3415: /media/matrix/Ports/ellcc/bin/ecc -E conftest.c
    In file included from conftest.c:12:
    /usr/include/limits.h:125:16: fatal error: ‘limits.h’ file not found
    # include_next <limits.h>
    ^
    1 error generated.
    configure:3421: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME “LLVM”
    | #define PACKAGE_TARNAME “llvm”
    | #define PACKAGE_VERSION “3.5.0svn”
    | #define PACKAGE_STRING “LLVM 3.5.0svn”
    | #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    | #define LLVM_VERSION_MAJOR 3
    | #define LLVM_VERSION_MINOR 5
    | #define LLVM_VERSION_PATCH 0
    | /* end confdefs.h. */
    | #ifdef __STDC__
    | # include <limits.h>
    | #else
    | # include <assert.h>
    | #endif
    | Syntax error
    configure:3497: error: C preprocessor “/media/matrix/Ports/ellcc/bin/ecc -E” fails sanity check
    See `config.log’ for more details.

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

    ac_cv_c_compiler_gnu=yes
    ac_cv_cxx_compiler_gnu=yes
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value=/media/matrix/Ports/ellcc/bin/ecc
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=set
    ac_cv_env_CPP_value=’/media/matrix/Ports/ellcc/bin/ecc -E’
    ac_cv_env_CXXCPP_set=set
    ac_cv_env_CXXCPP_value=’/media/matrix/Ports/ellcc/bin/ecc++ -E’
    ac_cv_env_CXXFLAGS_set=set
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=set
    ac_cv_env_CXX_value=/media/matrix/Ports/ellcc/bin/ecc++
    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_objext=o
    ac_cv_prog_CPP=’/media/matrix/Ports/ellcc/bin/ecc -E’
    ac_cv_prog_cc_c89=no
    ac_cv_prog_cc_g=yes
    ac_cv_prog_cxx_g=yes

    ## —————– ##
    ## Output variables. ##
    ## —————– ##

    ALL_BINDINGS=”
    ALL_TARGETS=”
    AR=’ar’
    ARCH=”
    BINDINGS_TO_BUILD=”
    BINPWD=”
    BINUTILS_INCDIR=”
    BUILD_CC=”
    BUILD_CXX=”
    BUILD_EXEEXT=”
    BZIP2=”
    CAT=”
    CC=’/media/matrix/Ports/ellcc/bin/ecc’
    CFLAGS=”
    CIRCO=”
    CLANG_PLUGIN_SUPPORT=”
    CLANG_SRC_ROOT=”
    CMP=”
    COVERED_SWITCH_DEFAULT=”
    CP=”
    CPP=’/media/matrix/Ports/ellcc/bin/ecc -E’
    CPPFLAGS=”
    CVSBUILD=”
    CXX=’/media/matrix/Ports/ellcc/bin/ecc++’
    CXXCPP=’/media/matrix/Ports/ellcc/bin/ecc++ -E’
    CXXFLAGS=”
    DATE=”
    DEBUG_RUNTIME=”
    DEBUG_SYMBOLS=”
    DEFS=”
    DISABLE_ASSERTIONS=”
    DOT=”
    DOTTY=”
    DOXYGEN=”
    ECHO_C=”
    ECHO_N=’-n’
    ECHO_T=”
    EGREP=”
    ENABLE_CLANG_ARCMT=”
    ENABLE_CLANG_REWRITER=”
    ENABLE_CLANG_STATIC_ANALYZER=”
    ENABLE_CXX1Y=”
    ENABLE_DOCS=”
    ENABLE_DOXYGEN=”
    ENABLE_EMBED_STDCXX=”
    ENABLE_EXPENSIVE_CHECKS=”
    ENABLE_LIBCPP=”
    ENABLE_OPTIMIZED=”
    ENABLE_PIC=”
    ENABLE_POLLY=”
    ENABLE_PROFILING=”
    ENABLE_PTHREADS=”
    ENABLE_SHARED=”
    ENABLE_SPLIT_DWARF=”
    ENABLE_TERMINFO=”
    ENABLE_TIMESTAMPS=”
    ENABLE_VISIBILITY_INLINES_HIDDEN=”
    ENABLE_WERROR=”
    EXEEXT=”
    EXPENSIVE_CHECKS=”
    EXTRA_LD_OPTIONS=”
    EXTRA_OPTIONS=”
    FDP=”
    FIND=”
    GAS=”
    GRAPHVIZ=”
    GREP=”
    GROFF=”
    GV=”
    GZIPBIN=”
    HAVE_DLOPEN=”
    HAVE_LIBZ=”
    HAVE_LINK_VERSION_SCRIPT=”
    HAVE_PTHREAD=”
    HAVE_TERMINFO=”
    HOST_ARCH=”
    HOST_OS=”
    HUGE_VAL_SANITY=”
    INSTALL_DATA=”
    INSTALL_PROGRAM=”
    INSTALL_SCRIPT=”
    INTERNAL_PREFIX=”
    JIT=”
    KEEP_SYMBOLS=”
    LDFLAGS=”
    LIBOBJS=”
    LIBS=”
    LIBXML2_INC=”
    LIBXML2_LIBS=”
    LINKALL=”
    LLVM_BINDIR=”
    LLVM_CONFIGTIME=”
    LLVM_COPYRIGHT=’Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.’
    LLVM_CROSS_COMPILING=”
    LLVM_DATADIR=”
    LLVM_DOCSDIR=”
    LLVM_ENABLE_THREADS=”
    LLVM_ENABLE_ZLIB=”
    LLVM_ENUM_ASM_PARSERS=”
    LLVM_ENUM_ASM_PRINTERS=”
    LLVM_ENUM_DISASSEMBLERS=”
    LLVM_ENUM_TARGETS=”
    LLVM_ETCDIR=”
    LLVM_HAS_POLLY=”
    LLVM_INCLUDEDIR=”
    LLVM_INFODIR=”
    LLVM_MANDIR=”
    LLVM_NATIVE_ARCH=”
    LLVM_ON_UNIX=”
    LLVM_ON_WIN32=”
    LLVM_PREFIX=”
    LLVM_VERSION_MAJOR=’3′
    LLVM_VERSION_MINOR=’5′
    LLVM_VERSION_PATCH=’0′
    LLVM_VERSION_SUFFIX=’svn’
    LN_S=”
    LTLIBOBJS=”
    MKDIR=”
    MMAP_FILE=”
    MV=”
    NEATO=”
    NM=”
    NOLINKALL=”
    NO_MAYBE_UNINITIALIZED=”
    NO_MISSING_FIELD_INITIALIZERS=”
    NO_UNINITIALIZED=”
    NO_VARIADIC_MACROS=”
    OBJEXT=’o’
    OCAMLC=”
    OCAMLDEP=”
    OCAMLDOC=”
    OCAMLOPT=”
    OCAML_LIBDIR=”
    OPTIMIZE_OPTION=”
    OS=’linux’
    PACKAGE_BUGREPORT=’http://llvm.org/bugs/’
    PACKAGE_NAME=’LLVM’
    PACKAGE_STRING=’LLVM 3.5.0svn’
    PACKAGE_TARNAME=’llvm’
    PACKAGE_VERSION=’3.5.0svn’
    PATH_SEPARATOR=’:’
    PDFROFF=”
    PYTHON=”
    RANLIB=’ranlib’
    RDYNAMIC=”
    RM=”
    RPATH=”
    SED=”
    SHELL=’/bin/bash’
    SHLIBEXT=”
    TAR=”
    TARGETS_TO_BUILD=”
    TARGETS_WITH_JIT=”
    TARGET_HAS_JIT=”
    TARGET_OS=”
    TWOPI=”
    USE_INTEL_JITEVENTS=”
    USE_OPROFILE=”
    USE_UDIS86=”
    XDOT=”
    XML2CONFIG=”
    ZIP=”
    ac_ct_CC=”
    ac_ct_CXX=”
    bindir=’/media/matrix/Ports/ellcc/bin’
    build=”
    build_alias=”
    build_cpu=”
    build_os=”
    build_vendor=”
    datadir=’${datarootdir}’
    datarootdir=’${prefix}/share’
    docdir=’${datarootdir}/doc/${PACKAGE_TARNAME}’
    dvidir=’${docdir}’
    exec_prefix=’NONE’
    host=”
    host_alias=”
    host_cpu=”
    host_os=”
    host_vendor=”
    htmldir=’${docdir}’
    ifGNUmake=”
    includedir=’${prefix}/include’
    infodir=’${datarootdir}/info’
    libdir=’${exec_prefix}/lib’
    libexecdir=’${exec_prefix}/libexec’
    localedir=’${datarootdir}/locale’
    localstatedir=’${prefix}/var’
    mandir=’${datarootdir}/man’
    oldincludedir=’/usr/include’
    pdfdir=’${docdir}’
    prefix=’/media/matrix/Ports/ellcc’
    program_prefix=’NONE’
    program_transform_name=’s,x,x,’
    psdir=’${docdir}’
    sbindir=’${exec_prefix}/sbin’
    sharedstatedir=’${prefix}/com’
    subdirs=”
    sysconfdir=’${prefix}/etc’
    target=”
    target_alias=”
    target_cpu=”
    target_os=”
    target_vendor=”

    ## ———– ##
    ## confdefs.h. ##
    ## ———– ##

    #define PACKAGE_NAME “LLVM”
    #define PACKAGE_TARNAME “llvm”
    #define PACKAGE_VERSION “3.5.0svn”
    #define PACKAGE_STRING “LLVM 3.5.0svn”
    #define PACKAGE_BUGREPORT “http://llvm.org/bugs/”
    #define LLVM_VERSION_MAJOR 3
    #define LLVM_VERSION_MINOR 5
    #define LLVM_VERSION_PATCH 0

    configure: exit 1

    #5183

    Robert Nediyakalaparambil

    Building ellcc with ellcc itself seems to work:

    I did the following:

    PATH=$PATH:/media/matrix/Ports/BIN/x86/ellcc/bin
    export PATH

    PATH=$PATH:/media/matrix/Ports/BIN/x86/ellcc/libecc/include
    export PATH

    CFLAGS=”-target x86_64-ellcc-linux”
    export CFLAGS

    CXXFLAGS=”-target x86_64-ellcc-linux”
    export CXXFLAGS

    CPPFLAGS=”-target x86_64-ellcc-linux”
    export CPPFLAGS

    ./build

    Currently it is building and will let you know the result. Rich seems to have mentioned in one of his replies to Marty that specifying a target will tell ecc to explicitly make use of ecc supplied headers. Will update when build is done.

    The second path export is not required.

    If this works, I would recommend others to use Rich’s prebuilt binaries instead of GCC to build ellcc. On ubuntu 12.04 I had to get gcc 4.7 via a ppa for example, hunting for the right packages and bloating your system can be a pain at times…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.