Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22700 - dev-land/ccc-6.5.9.001 fails to compile a simple program
Summary: dev-land/ccc-6.5.9.001 fails to compile a simple program
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: Alpha Linux
: High normal
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 14:27 UTC by Paul Moore
Modified: 2003-06-16 09:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Simple makefile for the test (Makefile,41 bytes, text/plain)
2003-06-12 14:28 UTC, Paul Moore
Details
Simple test (main.c,120 bytes, text/plain)
2003-06-12 14:28 UTC, Paul Moore
Details
dec cc/cxx compatability. (glibc-2.3.2-decc-compaq.patch,1.39 KB, patch)
2003-06-13 18:16 UTC, Tavis Ormandy (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Moore 2003-06-12 14:27:27 UTC
I tried to compile a simple program using ccc and it failed with the error show
below.  I am sure this is user error, I just don't know what ;)

***
[pmoore@sockpuppet ~/tmp/ccc_test ]make
ccc -o ccc_test main.c
cc: Error: /usr/include/bits/pthreadtypes.h, line 69: Invalid declarator.
(declarator)
  __pthread_cond_align_t __align;
-------------------------^
cc: Error: /usr/include/sys/types.h, line 167: In this declaration, "int64_t"
has no linkage and has a prior declaration in this scope at line number 27 in
file /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include/sys/types.h. (nolinkage)
__extension__ typedef long long int int64_t;
------------------------------------^
cc: Error: /usr/include/sys/types.h, line 176: In this declaration, "u_int64_t"
has no linkage and has a prior declaration in this scope at line number 28 in
file /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/include/sys/types.h. (nolinkage)
__extension__ typedef unsigned long long int u_int64_t;
---------------------------------------------^
make: *** [ccc_test] Error 1
***

Reproducible: Always
Steps to Reproduce:
1. compile an application with ccc
2.
3.

Actual Results:  
It failed as described.

Expected Results:  
Produced a binary.

Portage 2.0.48-r1 (default-alpha-1.4, gcc-3.2.3, glibc-2.2.5-r8,2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-alpha-r2 alpha EV67
GENTOO_MIRRORS="http://kant.zk3.dec.com/gentoo/mirror/sources/
http://www.ibiblio.org/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/my_gentoo"
USE="alpha crypt encode gif jpeg libg++ libwww mikmod ncurses oss pdflib png
quicktime spell truetype xml2 xmms xv zlib gnome-libs gdbm berkdb slang readline
arts tcltk java sdl gpm tcpd pam ssl perl python esd imlib oggvorbis motif
opengl mozilla X qt gtk kde -gnome -nls ev6 ipv6 xinerama mozspellcheck ldap
cups doc"
COMPILER="gcc3"
CHOST="alphaev67-unknown-linux-gnu"
CFLAGS="-mcpu=ev67 -O2 -pipe -g3 "
CXXFLAGS="-mcpu=ev67 -O2 -pipe -g3 "
ACCEPT_KEYWORDS="alpha ~alpha"
MAKEOPTS="-j1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 1 Paul Moore 2003-06-12 14:28:15 UTC
Created attachment 13166 [details]
Simple makefile for the test
Comment 2 Paul Moore 2003-06-12 14:28:37 UTC
Created attachment 13167 [details]
Simple test
Comment 3 Paul Moore 2003-06-12 14:29:30 UTC
I have created two attachments; one is the 'hello world' test I am trying to compile, the other is a simple makefile I used to compile it.
Comment 4 Tavis Ormandy (RETIRED) gentoo-dev 2003-06-13 15:32:06 UTC
glibc 2.3.2 breaks ccc, ive been working on this.
Comment 5 Tavis Ormandy (RETIRED) gentoo-dev 2003-06-13 18:16:38 UTC
Created attachment 13243 [details, diff]
dec cc/cxx compatability.

This simple glibc patch seems to do the job for me, ive built perl and python
with it.

agriffis, any comments?
Comment 6 Tavis Ormandy (RETIRED) gentoo-dev 2003-06-15 01:36:36 UTC
I think ive got this one nailed, reporter: try this,

# emerge sync
# emerge glibc
# emerge clean

and ccc should be working, please REOPEN if not. Thanks!
Comment 7 Paul Moore 2003-06-16 09:29:48 UTC
This fixes the problem for me - thanks.