From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id A5ECF3F26A for ; Mon, 11 Mar 2002 17:30:01 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2BMU0F10165 for ; Mon, 11 Mar 2002 17:30:00 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2BMU0Q23665 for axp-list@listman.redhat.com; Mon, 11 Mar 2002 17:30:00 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2BMU0R23653 for ; Mon, 11 Mar 2002 17:30:00 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g2BMU0F10154 for ; Mon, 11 Mar 2002 17:30:00 -0500 Received: from technolust.cx (technolust.cx [66.92.82.226]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g2BMScc09492 for ; Mon, 11 Mar 2002 17:28:38 -0500 Received: from whichblade (pool-141-154-179-87.wma.east.verizon.net [141.154.179.87]) by technolust.cx (8.9.3/8.8.7) with ESMTP id RAA08923 for ; Mon, 11 Mar 2002 17:29:59 -0500 From: "Peter Petrakis" To: Subject: error logs RE: compiling X with ccc Date: Mon, 11 Mar 2002 17:24:27 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: It fails compiling imake of all things . I suppose the default CC settings need to be tuned specificly for ccc. First, my host.def file, next the actual error message. I can take that same command and substitute gcc for ccc and it will compile fine. I am unfamilar with linker errors and the flags that correct that furthmore I am baffeled why ccc choses to ignore the include files. Any ideas? Peter #define UseCompaqMathLibrary YES #define CcCmd ccc #define DefaultGcc2AxpOpt -O0 -g -mcpu=ev6 #define DefaultGcc2PpcOpt -O2 -mcpu=750 #define DefaultGcc2i386Opt -O2 #if defined(AlphaArchitecture) # define LibraryCDebugFlags -O0 -g -mcpu=ev6 #elif defined(PpcArchitecture) # define LibraryCDebugFlags -O2 -mcpu=750 #else # define LibraryCDebugFlags -O0 -g #endif #define BuildXFree86ConfigTools NO /* #define XF86CardDrivers tdfx i810 mga ati glint vga */ #define XF86CardDrivers mga #define DriDrivers ffb mga radeon mach64 #define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wnested-externs #define DefaultCCOptions -ansi GccWarningOptions -pipe -g #define NormalLibGlx NO #define BuildXF86DRI YES /* To do profiling of the dynamically loaded 'xyz_dri.so' object, turn * this on. * Use 'xc/lib/GL/makeprofile.sh' to make it work. */ /* #define GlxSoProf YES */ #ifdef GlxSoProf # undef DefaultCCOptions # define DefaultCCOptions -ansi GccWarningOptions -pipe -g -p #endif /* Optionally turn these on for debugging */ /* #define GlxBuiltInTdfx YES */ /* #define GlxBuiltInI810 YES */ /* #define GlxBuiltInMga YES */ /* #define GlxBuiltInR128 YES */ /* #define GlxBuiltInRadeon YES */ /* #define DoLoadableServer NO */ /* Optionally turn this on to change the place where you install the build. * Warning: trailing blanks will cause build failures. */ #define ProjectRoot /usr/X11R6-DRI /* Optionally turn this on to force the kernel modules to build */ #define BuildXF86DRM YES #define XF86AFB NO #define XnestServer NO #define XVirtualFramebufferServer NO /* * Don't change anything below or the build will fail. */ #define BuildServersOnly YES #define BuildLibrariesForXServers NO #define BuildLibrariesForConfigTools NO #define BuildXIE NO #define BuildPexExt NO #define XprtServer NO #define SharedLibFont NO ccc -O0 -g -mcpu=ev6 -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmissi ng-prototypes -Wmissing-declarations -Wnested-externs -pipe -g -I../../inc lude -I../../exports/include/X11 -I../.. -I../../exports/include -I/usr/X11 R6-DRI/include -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURC E -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO= 15 -DNARROWPROTO -DCPP_PROGRAM="\"/lib/cpp\"" -DHAS_MERGE_CONSTANTS=`if ccc -fmerge-constants -xc /dev/null -S -o /dev/null 2> /dev/null 1> /dev/null; then echo 1; else echo 0; fi` -c -o imake.o imake.c cc: Info: imake.c, line 1610: In this statement, the unsigned expression "fwrite(...)" is being compared with an equality operator to a constant whose value is negative. This might not be what you intended. (questcompare1) if (fwrite(buf, sizeof(char), cnt, fd) == -1) ------------^ cc: Info: imake.c, line 156: This top level include file appears to be unused. (unusedtop) #include "Xosdefs.h" -^ cc: Info: imake.c, line 169: This top level include file appears to be unused. (unusedtop) #include -^ cc: Info: imake.c, line 191: This top level include file appears to be unused. (unusedtop) #include -^ cc: Info: imake.c, line 230: This top level include file appears to be unused. (unusedtop) #include -^ cc: Info: imake.c, line 259: This top level include file appears to be unused. (unusedtop) #include -^ rm -f imake ccc -o imake -O0 -g -mcpu=ev6 -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmis sing-prototypes -Wmissing-declarations -Wnested-externs -pipe -g imake.o -Wl,-rpath-link,../../exports/lib imake.o: In function `get_libc_version': :1010: undefined reference to `alloca' :1010: undefined reference to `alloca' :1010: undefined reference to `alloca' collect2: ld returned 1 exit status make[2]: *** [imake] Error 1 make[2]: Leaving directory `/mnt/home/voodoo/Xfree/build/config/imake' make[1]: *** [imake.bootstrap] Error 2 make[1]: Leaving directory `/mnt/home/voodoo/Xfree/build' make: *** [World] Error 2 -- www.linuxalpha.org www.alphadriven.org Peter Petrakis Warrior/Engineer voodoo@alphadriven.org " Who the hell are you!? Name's Ash Housewares..." > -----Original Message----- > From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com]On > Behalf Of Peter Petrakis > Sent: Monday, March 11, 2002 2:43 PM > To: 'Axp-List > Subject: compiling X with ccc > > > I have had partial success with this in the past but the contortions > I had to go through to get it past the point of where it failed > was down right midevil. basicly there is a single tool that > fails to build before you even get to the actual X sources. I > don't remember > how I worked around it but it wasnt easy :-) and I never did achieve a > successfull > clean compile with ccc. I had unresolved symbols that had no > business being > unresolved like printf. The errors messages for when that ancient tool > failed to compile where indecipherable to me at the time (6+ > months ago). If > anyone wants to take a crack at it simply change the HOSTCC (i think thats > it) option in the host.def file to ccc and let it run. It will fail rather > quickly. Those of you who > are unfamiliar with compiling X from scratch I recommend that you take a > look at the nice spec files that Mike has in his personal RPMS and the DRI > project has a nice little tutorial. ftp://people.redhat.com/mharris/ and > http://dri.sourceforge.net/doc/DRIcompile.html respectivly. > > Peter > -- > www.linuxalpha.org www.alphadriven.org > Peter Petrakis Warrior/Engineer voodoo@alphadriven.org > " Who the hell are you!? Name's Ash Housewares..." > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list >