Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help CCC configuration (Alpha)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
l_tincani
n00b
n00b


Joined: 15 Nov 2004
Posts: 34

PostPosted: Mon Nov 29, 2004 9:11 pm    Post subject: Help CCC configuration (Alpha) Reply with quote

I cant configure correctly ccc with gcc 3.2...


Code:

bash-2.05b# ebuild /var/db/pkg/dev-lang/ccc-6.5.9.001-r3/ccc-6.5.9.001-r3.ebuild config
 * Copying crtbegin/crtend from gcc
 * Attempting configuration of ccc
Warning: unknown distribution
Gentoo Base System version 1.4.16
Using /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3 (4).

The Compaq C Compiler failed its installation verification
procedure. Please submit a problem report to The University of New
Hampshire (UNH). UNH, in partnership with Compaq, is developing an
innovative support network for Alpha Linux developers. UNH supports a
web site and forums for Alpha Linux developers to exchange information
and ask questions.  To report problems experienced with Compaq C for
Linux Alpha and its components, use the UNH website:

       http://www.iol.unh.edu/linux/alpha/development

UNH has a direct connection to Compaq's compiler and tools development
organization for fast resolution of identified technical problems.
You may not receive a personal reply to your query, but we appreciate
your input on the product.

When submitting your problem, please include the following:

      o All output generated by this installation procedure
      o The name and version of your Linux distribution
      o The name of the compiler RPM kit
      o The command you used to install the kit
      o The version of GCC installed on your system

comp.config contains:      -SD/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include -SD/usr/local/include -SD/usr/include -SD/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/include  |
 -SysIncDir /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include   -SysIncDir /usr/local/include -SysIncDir /usr/include -SysIncDir /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/include -L/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/lib   -L/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3 -L/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/../../..

/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/lnxcc -V
Compaq C V6.5-001 on Linux 2.4.21-alpha-r12 alpha
Compiler Driver V6.5-002 (Linux) cc Driver

cat /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/.version
Installed as ccc-6.5.9.001-6
Warning: unknown distribution
Gentoo Base System version 1.4.16
Using /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3 (4).
Using /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3.
 
Test program compilation:
#include <stddef.h>
#include <stdio.h>
int main(void)
{
    printf("Hello world.\n");
    return 0;
}
 
+ /usr/bin/ccc -c /tmp/ccc_install27560.c -o /tmp/ccc_install27560.o
cc: Error: /usr/include/gconv.h, line 72: Ill-formed parameter type list. (parmtyplist)
                            unsigned char **, size_t *, int, int);
----------------------------------------------^
cc: Error: /usr/include/gconv.h, line 88: Ill-formed parameter type list. (parmtyplist)
                                  size_t *);
----------------------------------^
cc: Error: /usr/include/gconv.h, line 97: Ill-formed parameter type list. (parmtyplist)
                                        size_t *);
----------------------------------------^
cc: Error: /usr/include/gconv.h, line 174: Missing type specifier or type qualifier. (missingtype)
  size_t __nsteps;
--^
cc: Error: /usr/include/libio.h, line 351: Ill-formed parameter type list. (parmtyplist)
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
cc: Error: /usr/include/stdio.h, line 355: Ill-formed parameter type list. (parmtyplist)
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
--------------------------------------------^
cc: Error: /usr/include/stdio.h, line 603: In this declaration, "size_t" appears to be used as if it named a type, but there is no declared type of that name visible. (typedefnotdef)
extern size_t fread (void *__restrict __ptr, size_t __size,
-------^
cc: Error: /usr/include/stdio.h, line 609: In this declaration, "size_t" appears to be used as if it named a type, but there is no declared type of that name visible. (typedefnotdef)
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
-------^
cc: Error: /usr/include/stdio.h, line 631: In this declaration, "size_t" appears to be used as if it named a type, but there is no declared type of that name visible. (typedefnotdef)
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
-------^
cc: Error: /usr/include/stdio.h, line 633: In this declaration, "size_t" appears to be used as if it named a type, but there is no declared type of that name visible. (typedefnotdef)
extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
-------^
cc: Error: /usr/include/gconv.h, line 106: In this declaration, "__gconv_trans_fct" does not name a type. (nottypedef)
  __gconv_trans_fct __trans_fct;
--^
cc: Error: /usr/include/gconv.h, line 125: In this declaration, "__gconv_fct" does not name a type. (nottypedef)
  __gconv_fct __fct;
--^
Aborting

If you can correct the problem, you can rerun this script manually
by entering a command in the following format:

    create-comp-config.sh ccc-version [gcc-path]

The current invocation of create-comp-config.sh was:

/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh ccc-6.5.9.001-6 /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3

 * ccc has been configured, you can now use it as usual.



The ccc compiler is installed and seems well configured, infact:
Code:

bash-2.05b# ccc -v
comp.config contains:      -SD/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include -SD/usr/local/include -SD/usr/include -SD/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/include  | -SysIncDir /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include   -SysIncDir /usr/local/include -SysIncDir /usr/include -SysIncDir /usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/include -L/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/lib   -L/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3 -L/usr/lib/gcc-lib/alpha6-unknown-linux-gnu/3.2.3/../../..
ccc: Error: No source or object files specified on the command line


The problem is that I cant compile even a simple "Hallo world"'s program. See
Quote:
Test program compilation:
#include <stddef.h>


I looked to the
Code:

/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh

script and it seems quite old:

Code:

check_gcc_version()
{
# Tested is the list of exact paths we've done the most testing with.
Tested1=/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29
Tested2=/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66
Tested3=/usr/lib/gcc-lib/alpha-unknown-linux/egcs-2.91.66
Tested="$Tested1 $Tested2 $Tested3"

# Experimental is a list of pathnames we've done minimal testing with.
Experimental1=/usr/lib/gcc-lib/alpha-suse-linux/2.95.2
Experimental2=/usr/lib/gcc-lib/alpha-redhat-linux/2.96
Experimental3=/usr/lib/gcc-lib/alpha-turbo-linux/2.96
Experimental="$Experimental1 Experimental2 Experimental3"

# UnknownDistTested is a list of GCC versions that were tested ignoring the
# leading pathnames which tend to differ across distributions.
for dir in $Tested ; do
    UnknownDistTested="$UnknownDistTested `basename $dir`"
done

# UnknownDistExperimental is a list of GCC versions that we've done
# minimal testing with, ignoring the leading pathnames which tend to
# differ across distributions.
for dir in $Experimental ; do
    UnknownDistExperimental="$UnknownDistExperimental `basename $dir`"
done

# Decide the status of the chosen version of gcc, and report it on
# stderr and record it in .version if not specifically something we tested with.
# Note the leading and trailing blanks in strings are required to avoid having
# grep report success for a partial match on a pathname, e.g.
# echo "/usr/lib /usr/foo" | grep "/usr" would match, but
# echo " /usr/lib /usr/foo " | grep " /usr " would not.

if echo " $Tested " | grep -q " ${GCC_PATH} " ; then
    cat - <<- EOF | tee -a ${CCC_ROOT}/bin/.version 1>&2
        Using ${GCC_PATH}.
        EOF
elif echo " $UnknownDistTested " | grep -q " ${GCC_VER} " ; then
    # GCC version tested, different path.
    cat - <<- EOF | tee -a ${CCC_ROOT}/bin/.version 1>&2
        Using ${GCC_PATH} (1).
        EOF
elif echo " ${Experimental} " | grep -q " ${GCC_PATH} " ; then
    # Recently begun testing
    cat - <<- EOF | tee -a ${CCC_ROOT}/bin/.version 1>&2
        Using ${GCC_PATH} (2).
        EOF
elif echo " ${UnknownDistExperimental} " | grep -q " ${GCC_VER} " ; then
    # GCC version recently begun testing, different path.
    cat - <<- EOF | tee -a ${CCC_ROOT}/bin/.version 1>&2
        Using ${GCC_PATH} (3).
        EOF
else
    # Neither GCC version nor path look familiar.
    cat - <<- EOF | tee -a ${CCC_ROOT}/bin/.version 1>&2
        Using ${GCC_PATH} (4).
        EOF
fi

}



The problem seems to be that ccc is incompatible with the new definitions of the glibc, is it?

How can I solve this problem?

I would like to use only gcc but, since I need cfal (Fortran90) , I need ccc (and cxx) running on my alpha ev6 machine.

PS: I'm using the 2004.3 profile.

Thanks

L
Back to top
View user's profile Send private message
Kloeri
Retired Dev
Retired Dev


Joined: 02 Sep 2002
Posts: 144

PostPosted: Mon Dec 13, 2004 4:11 pm    Post subject: Reply with quote

Unfortunately ccc and cxx isn't really supported at the moment. Lack of developers and available boxes for building/testing forces us to focus our efforts a bit - in the process leaving ccc behind.

This means we'll only look at ccc if bugs are filed at http://bugs.gentoo.org

Regards,
Bryan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum