Results 1 to 5 of 5

Thread: problem with gpp compiler

  1. #1
    Join Date
    Jun 2005
    Beans
    1

    Exclamation problem with gpp compiler

    i've tried to compile program with gpp version 2.24-1 but i've this answer at the and of compiling process :

    checking for g++... no
    checking for c++... no
    checking for gpp... gpp
    checking for C++ compiler default output... b.out
    checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.


    and my config.log is :


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

    $ ./configure

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

    hostname = platone
    uname -m = i686
    uname -r = 2.6.10-5-386
    uname -s = Linux
    uname -v = #1 Tue Apr 5 12:12:40 UTC 2005

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

    /bin/arch = i686
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    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
    PATH: /usr/java/jre1.5.0_02/bin


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

    configure:1399: checking for g++
    configure:1428: result: no
    configure:1399: checking for c++
    configure:1428: result: no
    configure:1399: checking for gpp
    configure:1415: found /usr/bin/gpp
    configure:1425: result: gpp
    configure:1441: checking for C++ compiler version
    configure:1444: gpp --version </dev/null >&5
    GPP 2.24
    Copyright (C) 1996-2001 Denis Auroux
    Copyright (C) 2003, 2004 Tristan Miller
    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:1447: $? = 0
    configure:1449: gpp -v </dev/null >&5
    Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
    [-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
    [+s<n> str1 str2 c] [long options] [infile]

    default: #define x y macro(arg,...)
    -C : maximum cpp compatibility (includes -n, +c, +s, ...)
    -T : TeX-like \define{x}{y} \macro{arg}{...}
    -H : HTML-like <#define x|y> <#macro arg|...>
    -X : XHTML-like <#define x|y/> <#macro arg|.../>
    -P : prolog compatible cpp-like mode
    -U : user-defined syntax (specified in 9 following args; see manual)
    -M : user-defined syntax for meta-macros (specified in 7 following args)

    -o : output to outfile
    -O : output to outfile and stdout
    -z : line terminator is CR-LF (MS-DOS style)
    -x : enable #exec built-in macro
    -m : enable automatic mode switching upon including .h/.c files
    -n : send LF characters serving as macro terminators to output
    +c : use next 2 args as comment start and comment end sequences
    +s : use next 3 args as string start, end and quote character

    Long options:
    --include file : process file before infile
    --nostdinc : don't search standard directories for files to include
    --nocurinc : don't search the current directory for files to include
    --curdirinclast : search the current directory last
    --warninglevel n : set warning level
    --includemarker formatstring : keep track of #include directives in output

    --version : display version information and exit
    -h, --help : display this message and exit

    configure:1452: $? = 1
    configure:1454: gpp -V </dev/null >&5
    Usage : gpp [-{o|O} outfile] [-I/include/path] [-Dname=val ...] [-z] [-x] [-m]
    [-n] [-C | -T | -H | -X | -P | -U ... [-M ...]] [+c<n> str1 str2]
    [+s<n> str1 str2 c] [long options] [infile]

    default: #define x y macro(arg,...)
    -C : maximum cpp compatibility (includes -n, +c, +s, ...)
    -T : TeX-like \define{x}{y} \macro{arg}{...}
    -H : HTML-like <#define x|y> <#macro arg|...>
    -X : XHTML-like <#define x|y/> <#macro arg|.../>
    -P : prolog compatible cpp-like mode
    -U : user-defined syntax (specified in 9 following args; see manual)
    -M : user-defined syntax for meta-macros (specified in 7 following args)

    -o : output to outfile
    -O : output to outfile and stdout
    -z : line terminator is CR-LF (MS-DOS style)
    -x : enable #exec built-in macro
    -m : enable automatic mode switching upon including .h/.c files
    -n : send LF characters serving as macro terminators to output
    +c : use next 2 args as comment start and comment end sequences
    +s : use next 3 args as string start, end and quote character

    Long options:
    --include file : process file before infile
    --nostdinc : don't search standard directories for files to include
    --nocurinc : don't search the current directory for files to include
    --curdirinclast : search the current directory last
    --warninglevel n : set warning level
    --includemarker formatstring : keep track of #include directives in output

    --version : display version information and exit
    -h, --help : display this message and exit

    configure:1457: $? = 1
    configure:1481: checking for C++ compiler default output
    configure:1484: gpp -O3 -O3 conftest.cc >&5
    2/* confdefs.h. */

    /* end confdefs.h. */

    int
    main ()
    {

    ;
    return 0;
    }
    configure:1487: $? = 0
    configure:1533: result: b.out
    configure:1538: checking whether the C++ compiler works
    configure:1544: ./b.out
    ./configure: line 1545: ./b.out: No such file or directory
    configure:1547: $? = 127
    configure:1556: error: cannot run C++ compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.

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

    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_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_exeext=
    ac_cv_prog_ac_ct_CXX=gpp

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

    CC=''
    CFLAGS=''
    CPPFLAGS='-O3'
    CXX='gpp'
    CXXCPP=''
    CXXFLAGS='-O3'
    DEFS=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EXEEXT=''
    INSTALL_DATA=''
    INSTALL_PROGRAM=''
    INSTALL_SCRIPT=''
    LDFLAGS=''
    LIBOBJS=''
    LIBS=''
    LIBVERSION=''
    LTLIBOBJS=''
    MAKEDEPEND=''
    OBJEXT=''
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    SHELL='/bin/sh'
    VERSION=''
    X_CFLAGS=''
    X_EXTRA_LIBS=''
    X_LIBS=''
    X_PRE_LIBS=''
    ac_ct_CC=''
    ac_ct_CXX='gpp'
    armcc=''
    armcxx=''
    bindir='${exec_prefix}/bin'
    build_alias=''
    datadir='${prefix}/share'
    exec_prefix='NONE'
    host_alias=''
    includedir='${prefix}/include'
    infodir='${prefix}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localstatedir='${prefix}/var'
    mandir='${prefix}/man'
    oldincludedir='/usr/include'
    prefix='NONE'
    program_transform_name='s,x,x,'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

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

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

    configure: exit 1


    why ???


    thank's for all

    g.

  2. #2
    Join Date
    Nov 2006
    Beans
    179

    Re: problem with gpp compiler

    I have the same problem using Xubuntu and 'make'ing Sage-1.7 (math software) from source. I had no problem a couple of days ago with Edgy and Sage 1.61.

    Need this linear algebra power....

    any fixes would be appreciated.......

  3. #3
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: problem with gpp compiler

    ssavelan,

    Make sure build-essential is installed.

  4. #4
    Join Date
    Nov 2006
    Beans
    179

    Talking Re: problem with gpp compiler

    hey, thanks man... that's another thing on the list...

    I like xubuntu because it doesn't have much that I don't want... but I need to add a whole lot of stuff... (just changed from ubuntu_edgy).

    I was just going to post that I had fixed the problem by installing (rather noobishly) all of available g++ versions.. but, hey, that's why I have cable...

    sage is now compiling away.

    build-essential is more of a module tool isn't it? We were using it a few hours ago (on another machine) to upgrade an ATI driver.

    One of the great things about sage is that it is completely free floating so you can put it anywhere.

  5. #5
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: problem with gpp compiler

    ssavelan,

    build-essential is a "meta-package". It doesn't install anything itself, but it depends on stuff that, uhh, is essential to building.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •