Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources-2.4.19-r10 suddenly wont compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
leej
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 280

PostPosted: Mon Dec 23, 2002 3:52 pm    Post subject: gentoo-sources-2.4.19-r10 suddenly wont compile Reply with quote

I've been running this kernel for at least a month and have compiled it on numerous occasions. I'm wondering if my latest gcc is causing the problem. It's the first time I've ever had a problem compiling gentoo-sources since I started using it around April.

Code:

# epm -q gcc gentoo-sources make autoconf
gcc-3.2.1-r6
gentoo-sources-2.4.19-r10
make-3.80
autoconf-2.54


Kernel error output follows:

Code:

make dep && make clean bzImage modules modules_install
gcc -Wall -Wstrict-prototypes -Os -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
make[1]: Entering directory `/usr/src/linux-2.4.19-gentoo-r10/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r10/arch/i386/boot'
scripts/mkdep -- init/*.c > .depend
scripts/mkdep -- `find /usr/src/linux-2.4.19-gentoo-r10/include/asm /usr/src/linux-2.4.19-gentoo-r10/include/linux /usr/src/linux-2.4.19-gentoo-r10/include/scsi /usr/src/linux-2.4.19-gentoo-r10/include/net /usr/src/linux-2.4.19-gentoo-r10/include/math-emu -name SCCS -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
find: /usr/src/linux-2.4.19-gentoo-r10/include/asm: No such file or directory
make _sfdep_kernel _sfdep_drivers _sfdep_mm _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib _sfdep_grsecurity _sfdep_crypto _sfdep_arch/i386/kernel _sfdep_arch/i386/mm _sfdep_arch/i386/lib _FASTDEP_ALL_SUB_DIRS="kernel drivers mm fs net ipc lib grsecurity crypto arch/i386/kernel arch/i386/mm arch/i386/lib"
make[1]: Entering directory `/usr/src/linux-2.4.19-gentoo-r10'
make -C kernel fastdep
make[2]: Entering directory `/usr/src/linux-2.4.19-gentoo-r10/kernel'
make[2]: *** No rule to make target `/usr/src/linux-2.4.19-gentoo-r10/include/linux/autoconf.h', needed by `/usr/src/linux-2.4.19-gentoo-r10/include/linux/modules/signal.ver'.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r10/kernel'
make[1]: *** [_sfdep_kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19-gentoo-r10'
make: *** [dep-files] Error 2


Has anybody else run into this? None of my .config options have changed since last time it was compiled either - making dependeny errors very odd indeed.
Back to top
View user's profile Send private message
HogRider
Apprentice
Apprentice


Joined: 29 May 2002
Posts: 160

PostPosted: Tue Dec 31, 2002 3:46 am    Post subject: Reply with quote

Make 'clean' then 'dep'
_________________
Mike

"Computers are like air conditioners, they stop working properly if you open Windows"
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Dec 31, 2002 3:55 am    Post subject: Reply with quote

If it does not work, move your .config to another dir, make mrproper, move .config back, make dep, make bzImage, make modules, make modules_install


HogRider wrote:
Make 'clean' then 'dep'

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
HogRider
Apprentice
Apprentice


Joined: 29 May 2002
Posts: 160

PostPosted: Tue Dec 31, 2002 4:29 am    Post subject: Reply with quote

Don't forget 'make oldconfig' before 'make dep' (updates Makefile)

Bloody Bastard wrote:
If it does not work, move your .config to another dir, make mrproper, move .config back, make dep, make bzImage, make modules, make modules_install


HogRider wrote:
Make 'clean' then 'dep'

_________________
Mike

"Computers are like air conditioners, they stop working properly if you open Windows"
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
Back to top
View user's profile Send private message
leej
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 280

PostPosted: Tue Dec 31, 2002 10:15 am    Post subject: Reply with quote

Thanks for the reply HogRider and BloodyBastard. Of course, I'd already tried those things. The problem was down to the Processor Type selected in make menuconfig:

It seems my latest GCC (gcc-3.2.1-r6) wont compile the kernel when the following is selected: Athlon/Duron/K7/(>gcc31). Even though I selected this when installing 1.4rc1 from scratch (with gentoo-sources 2.4.19-r10) some months ago. Changing it to Athlon/Duron/K7 (without the >gcc31) fixed it.

Before somebody tells me to rollback my gcc: "NO!" ;-)
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Wed Jan 01, 2003 4:48 am    Post subject: Reply with quote

roll back your gcc , and happy new year!
Back to top
View user's profile Send private message
474
l33t
l33t


Joined: 19 Apr 2002
Posts: 714

PostPosted: Wed Jan 01, 2003 8:40 am    Post subject: Reply with quote

leej wrote:
It seems my latest GCC (gcc-3.2.1-r6) wont compile the kernel when the following is selected: Athlon/Duron/K7/(>gcc31).

Such are the perils of running unstable packages I guess. If you want to fiddle with the options used by the ">gcc31" option then you need to be looking at three files:
  • /usr/src/Makefile
  • /usr/src/arch/i386/Makefile
  • /usr/src/arch/i386/config.in
Some relevant extracts from each respectively are:
Code:
HOSTCFLAGS     = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer

Code:
ifdef CONFIG_MK731
CFLAGS += -march=athlon -Os
endif

Code:
if [ "$CONFIG_MK731" = "y" ]; then
   define_int  CONFIG_X86_L1_CACHE_SHIFT 6
   define_bool CONFIG_X86_TSC y
   define_bool CONFIG_X86_GOOD_APIC y
   define_bool CONFIG_X86_USE_3DNOW y
   define_bool CONFIG_X86_PGE y
   define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
fi

Note that "-O2" is normally used by the kernel. But the "gcc31" patch changes that.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Wed Jan 01, 2003 5:07 pm    Post subject: Reply with quote

Well, your choice. But I've seen a lot of problems with this version. BTW, gcc-3.2.1 is a lot more stable.

leej wrote:

Before somebody tells me to rollback my gcc: "NO!" ;-)

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
leej
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 280

PostPosted: Thu Jan 02, 2003 10:49 am    Post subject: Reply with quote

Bloody Bastard wrote:
Well, your choice. But I've seen a lot of problems with this version. BTW, gcc-3.2.1 is a lot more stable.


It seems the only problem here has been the kernel. I've been using gcc-3.2.1-r6 since it was 'accidentally unmasked' many weeks ago and done numerous world updates. No probs (apart from when a kernel upgrade became relevant). :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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