Yes, sort of...   I had exactly the same error you referenced, and
several others after getting past that one.  In the makefile, change the
HOSTCC = kgcc and also the other line further down from gcc to kgcc.
Another problem you will encounter is the CFLAG options automatically
generated for rtl are not recgonized by the compiler.  There's a file
generated my the rtl make (I can't remember the name of it) which will
contain the flags.  I edited the flags in that file and made them the same
as the kernel make file and the package compiled and functioned.  

It seems the gcc shipped with rh7.0 doesn't work for the kernel (and many
other packages) anymore.

I finally got it to work, but several other packagesI needed to use didn't
ever compile and link.  My solution was to revert to rh 6.2. 

I heop this helps,
-C. Wayne Wright



--<<< We are committed to exceeding requirements >>>----->-+
C.W. Wright,[EMAIL PROTECTED],      Ph:757-824-1698
http://lidar.wff.nasa.gov                  Fax:603-925-6886      
NASA, Goddard Space Flight Center
Building N-159 Room E117, Code 972,Wallops Flight Facility
Wallops Island, Va. 23337   Telecommute phone: 410-742-7333
-------+-<-------------------------------------------------

On Wed, 11 Oct 2000, Kirk Smith wrote:

> Has anyone succuesfully compiled this?
> 
> I have a fresh install of Red Hat 7.0 (2.2.16).
> 
> I have tried the prepatched kernals and downloading 2.2.17 and
> patching them myself, but both fail at the same point
> (see end of message).
> 
> I assume the "latest" compilers choke on the code (evident by 
> redunt warning messages).  What packages are needed to properly 
> build a new rt-kernal.
> 
> In the past I have successfully compiled rt kernals (under 2.2.14).  I 
> can recompile the current version of the kernal (2.2.16) 
> successfully, I just can't compile 2.2.17 for some reason.
> 
> I have already linked /usr/include/linux to point to /usr/src/linux-
> 2.2.17/include/linux.
> 
> I have also tried using gcc (version 2.96) and egcs (which ever 
> version is with Red Hat 7.0).
> 
> Here is the end of "Make bzImage"
> 
> ...
> make all_targets
> make[2]: Entering directory `/usr/src/linux-2.2.17/arch/i386/mm'
> make[2]: Nothing to be done for `all_targets'.
> make[2]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/mm'
> make[1]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/mm'
> make -C  arch/i386/lib
> make[1]: Entering directory `/usr/src/linux-2.2.17/arch/i386/lib'
> make all_targets
> make[2]: Entering directory `/usr/src/linux-2.2.17/arch/i386/lib'
> cc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -
> D__SMP__ -traditional -c checksum.S -o checksum.o
> checksum.S:231: badly punctuated parameter list in #define
> checksum.S:237: badly punctuated parameter list in #define
> make[2]: *** [checksum.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/lib'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.2..17/arch/i386/lib'
> make: *** [_dir_arch/i386/lib] Error 2
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to