Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* SUCCESS: X compiled with CCC
@ 2002-03-17  2:21 Peter Petrakis
  2002-03-17  7:01 ` George France
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Petrakis @ 2002-03-17  2:21 UTC (permalink / raw)
  To: 'Axp-List, Debian-Alpha; +Cc: George France

[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]

http://www.alphadriven.org/X/

Is where you can pick up whats attached and the build log, which is huge.
With the help of George France and Jim Gettys I've gotten Xfree86 to compile
with ccc from the 4.2.0 sources.

Basicly I had to set up a cross compile setup that used ccc. Now it seems
that the cross compiling setup in X is not quite complete. There are times
during the build where the compilers switch from ccc to cc, only a handfull
though. I had to hack around the cf/*def files abit. the problem is even
though you've defined a CrossCompile the definitions needed to compile your
bootstrap tools are initialy declared but yet are not expanded when imake
generates the makefiles. Thats why host.def is more than just 2 lines (thats
all it 'should' be, the rest comes from cross.rules). I need to learn more
on how Imake works to fix it cleanly, why not autoconf?  There are some
errors in the build and no I have not installed it nor do i intend to. I
compiled this on a remote system (suse alpha at compaq) and I do not have
ccc installed on my deb box currently nor can I access ftp.compaq.com to get
them.

Attached are three files. the output of 'grep -i error world.log' ,
cross.def, and host.def. To compile X with ccc simply drop the to .def files
into config/cf directory and run make world. The complete build output is
available at alphadriven.org at the link I posted above. You will need to
tweak the cross.def
just alittle bit to suit your system. The changes are obvious.

So anyone interested in continuing this debug please do!!! I will find time
to work on this further though I intend to concentrate the bulk of my time
on evolving MILO
>:-).

I still have time to go out tonight...

LATER!

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..."

[-- Attachment #2: errors.txt.bz2 --]
[-- Type: application/x-compressed, Size: 11285 bytes --]

[-- Attachment #3: cross.def --]
[-- Type: application/octet-stream, Size: 1221 bytes --]

/* $XFree86: xc/config/cf/cross.def,v 1.2 2001/03/30 02:15:17 keithp Exp $ */
/*
 * This file contains redefinitions of some symbols to enable
 * cross compilation: e.g. paths for include files and paths to
 * compiler images.  It will have to be edited to reflect these
 * given your local configuration.
 */
#undef i386Architecture
#define AlphaArchitecture

#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags 	-O2
#define ServerCDebugFlags	-O2
#undef StandardDefines
#define StandardDefines 	-Dlinux -D__alpha__ -D_POSIX_SOURCE \
				-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir /usr/include 
#define PreIncDir 
#undef PostIncDir
#define PostIncDir /usr/lib/gcc-lib/alpha-suse-linux/2.96/include 
#define CcCmd /usr/bin/ccc
#undef CplusplusCmd
#define HasCplusplus YES
#define CplusplusCmd /usr/bin/cxx
#define DoRanlibCmd YES
#define RanlibCmd /usr/bin/ranlib 
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap

#undef LdPostLib
#define LdPostLib	-L/lib

#undef ExtensionOSDefines
#define ExtensionOSDefines

#define ServerXdmcpDefines	/**/

#include <cross.rules> 


[-- Attachment #4: host.def --]
[-- Type: application/octet-stream, Size: 4915 bytes --]

#define CrossCompiling YES
#define ProjectRoot/usr/X11R6

XCOMM $XFree86: xc/config/cf/cross.rules,v 1.6 2001/11/15 23:15:55 alanh Exp $

#ifndef HostCcCmd
#define HostCcCmd cc
#endif

#define HostLinkRule(target, flags, src, libs)  HostCcCmd -I$(BUILDINCDIR) -o target src libs

/* ComplexHostProgramTarget - Compile a program such that we can run
 * it on this host, i.e., don't use the default cross compiler.
 */
#ifndef ComplexHostProgramTarget
#define	ComplexHostProgramTarget(program)				@@\
              CC=HostCcCmd							@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): $(OBJS) $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),$(OBJS),$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
DependTarget()								@@\
									@@\
LintTarget()								@@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* ComplexHostProgramTarget */


#ifndef SimpleHostProgramTarget
#define SimpleHostProgramTarget(program)				@@\
           SRCS = program.c						@@\
									@@\
              CC=HostCcCmd					@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): program.o $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
DependTarget()								@@\
									@@\
LintTarget()								@@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* SimpleHostProgramTarget */

#ifndef SimpleHostProgramTarget_1
#define SimpleHostProgramTarget_1(program)				@@\
           SRCS = program.c						@@\
									@@\
              CC=cc							@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): program.o $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
DependTarget()								@@\
LintTarget()								@@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* SimpleHostProgramTarget_1 */


#ifndef SimpleHostProgramTarget_2
#define SimpleHostProgramTarget_2(program)				@@\
           SRCS = program.c						@@\
									@@\
              CC=cc							@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): program.o $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* SimpleHostProgramTarget_2 */

#ifndef SimpleHostProgramTarget_3
#define SimpleHostProgramTarget_3(program)				@@\
           SRCS = program.c						@@\
									@@\
              CC=cc							@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): program.o $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* SimpleHostProgramTarget_3 */

#ifndef SimpleHostProgramTarget_4
#define SimpleHostProgramTarget_4(program)				@@\
           SRCS = program.c						@@\
									@@\
              CC=cc							@@\
    STD_INCLUDES=							@@\
          CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS)		@@\
EXTRA_LOAD_FLAGS=							@@\
        PROGRAM = program						@@\
									@@\
AllTarget(HostProgramTargetName(program))				@@\
									@@\
HostProgramTargetName(program): program.o $(DEPLIBS)			@@\
	RemoveTargetProgram($@)						@@\
	HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
									@@\
clean::									@@\
	RemoveFile(HostProgramTargetName(program))
#endif /* SimpleHostProgramTarget_4 */

#undef CC
#define CC ccc
#undef CcCmd
#define CcCmd ccc
#undef HostCcCmd
#define HostCcCmd ccc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SUCCESS: X compiled with CCC
  2002-03-17  2:21 SUCCESS: X compiled with CCC Peter Petrakis
@ 2002-03-17  7:01 ` George France
  0 siblings, 0 replies; 2+ messages in thread
From: George France @ 2002-03-17  7:01 UTC (permalink / raw)
  To: axp-list, Peter Petrakis

Hello Peter,

Well Done.

Best Regards,


--George




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-17  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-17  2:21 SUCCESS: X compiled with CCC Peter Petrakis
2002-03-17  7:01 ` George France

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