Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Peter Petrakis" <voodoo@alphadriven.org>
To: <axp-list@redhat.com>
Subject: error logs RE: compiling X with ccc
Date: Mon, 11 Mar 2002 17:24:27 -0500	[thread overview]
Message-ID: <ODEEIIAMNNHHFAMGOBAPIEOJCAAA.voodoo@alphadriven.org> (raw)
In-Reply-To: <ODEEIIAMNNHHFAMGOBAPKEOHCAAA.voodoo@alphadriven.org>

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

<!-- kaboom -->

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 <sys/types.h>
-^
cc: Info: imake.c, line 191: This top level include file appears to be
unused. (unusedtop)
#include <sys/stat.h>
-^
cc: Info: imake.c, line 230: This top level include file appears to be
unused. (unusedtop)
#include <stdlib.h>
-^
cc: Info: imake.c, line 259: This top level include file appears to be
unused. (unusedtop)
#include <stdio.h>
-^
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
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> 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
> "<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>




  reply	other threads:[~2002-03-11 22:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-11 19:43 compiling X with ccc Peter Petrakis
2002-03-11 22:24 ` Peter Petrakis [this message]
2002-03-11 23:30   ` error logs " Uncle George
2002-03-12  0:24     ` Peter Petrakis
2002-03-12  1:25       ` Uncle George
2002-03-12  1:36         ` Peter Petrakis
2002-03-12  2:42           ` Uncle George
2002-03-12  1:30       ` W Bauske
2002-03-12  1:50       ` Uncle George
2002-03-12  1:56       ` Uncle George
2002-03-12  0:23   ` W Bauske
2002-03-12  0:49   ` Michal Jaegermann
2002-03-12  1:33     ` yeah baby :-) " Peter Petrakis
2002-03-12  2:06       ` Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox