Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is anybody except me wanting ccc?
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
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2396

PostPosted: Thu Aug 03, 2006 1:28 pm    Post subject: is anybody except me wanting ccc? Reply with quote

hello everybody.

for about a year now i am trying to get ccc (compaq c compiler for linux/alpha) working without success.
and yes, i know the great gcc.
is anybody around who has a working ccc? (or cxx or cfal or compaq-jre or compaq-jdk)

kind regards
--alex
Back to top
View user's profile Send private message
Kloeri
Retired Dev
Retired Dev


Joined: 02 Sep 2002
Posts: 144

PostPosted: Fri Aug 04, 2006 8:15 pm    Post subject: Reply with quote

I don't think you'll have much luck using compaq-tools to be honest. Lots of packages are using gnu extensions not supported by ccc and gcc has probably catched up (or superceded) ccc in most areas by now as ccc hasn't been actively maintained for quite some time.

PS. The Gentoo/Alpha team haven't supported compaq-tools for at least 2 years by now, so anybody wanting to use compaq-tools are on their own when it comes to bugfixing. And please don't expect us to add ccc patches to the tree either, even if we're offered patches.
Back to top
View user's profile Send private message
DiskMan84
n00b
n00b


Joined: 04 Feb 2006
Posts: 3
Location: Kansas City, Mo.

PostPosted: Sun Sep 24, 2006 8:23 am    Post subject: Reply with quote

You'll find a lot of different distro's have issues with Alpha support. You may notice in time that a some programs such as prelink don't even work but are still included!

Compaq C is a pretty good compiler and depending on the situation, can give you boosts in speed upwards of 50% with 30% being the norm incomparison to GCC-3x. Compaq C really shines when it comes to programs that use a lot of floating point calcs, the more, the faster it will run generally. GCC-4.0.1 is a better deal and actually has a speed hit of about 10%.

A lot of programs can be built with Compaq C, but most desktop setups use GCC Extensions... Most of my server applications and system libs [not incl. GLIBC] are compiled with Compaq C, programs such as ffmpeg, apache, pure-ftp, bind, mysql [buggy to build with ccc and gcc], postfix, dovecot, sendmail, xinetd, slocate, cups, python, tcl, php, mnosearch, perl, gimp, samba, etc. You just have to make sure you use the -ansi_alias flag to relax CCC when it comes to GCC Extensions.

When it comes to installing Compaq C, you will run into three problems... none if you're lucky:

1) Running the config script for setting it up... Works with older versions of GCC, but once configured, you can use any GCC compiler...

2) GLIBC headers... depending on what version of GLIBC you have installed, you will need different patches for the header files... namely features.h and pthreads.h... If you find the corresponding patch for your GLIBC version, you can simply open the header files in question and modify other wise a lot of programs that you build using it will generate numerous header include errors... [you may wish to check over at alphacore.info, the forums section has several members that have various GLIBC patches that can get you up and running]. Another easy way around the GLIBC problem is to simply install GLIBC-COMPAT... its an old build of GLIBC-2.2 and simply build against that. That's what I did for several years by simply including -L/usr/alpha-glibc21-linuxalpha-glibc21-linux/lib -I/usr/alpha-glibc21-linux/include to my build cflags to point the compiler to use that version of GLIBC to build against].

3) A lot of poorly written code and code using GCC Ext. will not build but most of will be programs that do not follow the Standard ANSI C/C++ protocol. Some can be easily fixed, such as Xfce. My entire install of Xfce is compiled with CCC, but others are deal breakers. For example, KDE and Gnome use GCC Extensions big time while programs such as Fluxbox or simply poorly written...

Here are some nice screencaps of my RH7.2 install:
http://southkc.net/tmp/kde-3.5.1
http://southkc.net/tmp/xfce-4.2
_________________
AlphaPC 164SX
512mb RAM
ATI Radeon 7500 w/64mb

Redhat 7.2 [Alpha]
Kernel-2.6.13.1
Xfree86-4.5
GLIBC-2.3.2
KDE-3.5.1/Xfce-4.2.3.2/Gnome-2.8.2/Fluxbox
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