Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc errors after make menuconfig with linux-2.6.8-gentoo-r3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Tue Aug 31, 2004 11:14 pm    Post subject: gcc errors after make menuconfig with linux-2.6.8-gentoo-r3 Reply with quote

i'm getting these errors after updating world and trying to build the latest kernel. .config is present from 2.6.8-gentoo-r1. any idea what's wrong?

Code:

linux-2.6.8-gentoo-r3 # make menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:11,
                 from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: error: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Code:

linux-2.6.8-gentoo-r3 # make all
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:11,
                 from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: error: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** [include/linux/autoconf.h] Error 2
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Tue Aug 31, 2004 11:32 pm    Post subject: Reply with quote

Try

Code:

make mrproper


then copy over your .config and then


Code:

make oldconfig
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Tue Aug 31, 2004 11:37 pm    Post subject: Reply with quote

Code:
linux-2.6.8-gentoo-r3 # make mrproper
  CLEAN   scripts/package
  CLEAN   .config include/asm include/linux/version.h
linux-2.6.8-gentoo-r3 # cp /boot/config-2.6.8-gentoo-r1 .config
linux-2.6.8-gentoo-r3 # make oldconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.h:11,
                 from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: error: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

Back to top
View user's profile Send private message
lwithers
Guru
Guru


Joined: 31 Dec 2003
Posts: 300
Location: Reading, UK

PostPosted: Wed Sep 01, 2004 12:15 am    Post subject: Reply with quote

What is the output of "ls -l /usr/src/linux/include"?

Also, have you tried re-emerging the sources?
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Sep 01, 2004 12:21 am    Post subject: Reply with quote

Code:
root # ls -l /usr/src/linux/include/
total 94
drwxr-xr-x   3 root root  1056 Aug 31 00:44 acpi
drwxr-xr-x   2 root root  3384 Aug 31 00:44 asm-alpha
drwxr-xr-x  21 root root  3632 Aug 31 00:45 asm-arm
drwxr-xr-x   2 root root  3024 Aug 31 00:44 asm-arm26
drwxr-xr-x   3 root root  2392 Aug 31 00:45 asm-cris
drwxr-xr-x   2 root root   672 Aug 31 00:45 asm-generic
drwxr-xr-x   2 root root  2784 Aug 31 00:44 asm-h8300
drwxr-xr-x  10 root root  3920 Aug 31 00:45 asm-i386
drwxr-xr-x   3 root root  3552 Aug 31 00:45 asm-ia64
drwxr-xr-x   2 root root  4656 Aug 31 00:45 asm-m68k
drwxr-xr-x   2 root root  3824 Aug 31 00:44 asm-m68knommu
drwxr-xr-x  44 root root  5728 Aug 31 00:45 asm-mips
drwxr-xr-x   2 root root  3272 Aug 31 00:44 asm-parisc
drwxr-xr-x   2 root root  4696 Aug 31 00:45 asm-ppc
drwxr-xr-x   3 root root  3448 Aug 31 00:44 asm-ppc64
drwxr-xr-x   2 root root  2776 Aug 31 00:45 asm-s390
drwxr-xr-x  27 root root  3496 Aug 31 00:44 asm-sh
drwxr-xr-x   2 root root  2536 Aug 31 00:45 asm-sh64
drwxr-xr-x   2 root root  4144 Aug 31 00:45 asm-sparc
drwxr-xr-x   2 root root  3856 Aug 31 00:45 asm-sparc64
drwxr-xr-x   2 root root  3048 Aug 31 00:44 asm-um
drwxr-xr-x   2 root root  3168 Aug 31 00:45 asm-v850
drwxr-xr-x   2 root root  3656 Aug 31 00:44 asm-x86_64
drwxr-xr-x  15 root root 17880 Aug 31 18:36 linux
drwxr-xr-x   2 root root   312 Aug 31 00:44 math-emu
drwxr-xr-x   2 root root   320 Aug 31 00:44 media
drwxr-xr-x   2 root root   208 Aug 31 00:44 mtd
drwxr-xr-x   5 root root  2168 Aug 31 00:44 net
drwxr-xr-x   2 root root   368 Aug 31 00:44 pcmcia
drwxr-xr-x   2 root root   352 Aug 31 00:44 rxrpc
drwxr-xr-x   2 root root   560 Aug 31 00:44 scsi
drwxr-xr-x   2 root root  2280 Aug 31 00:44 sound
drwxr-xr-x   2 root root   736 Aug 31 00:44 video


i haven't re-emerged the gentoo-dev-sources. i think it's a more general problem. i get this when emerging mozplugger:

Code:
root # ACCEPT_KEYWORDS="~x86" emerge mozplugger   
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/mozplugger-1.5.2 to /
>>> md5 src_uri ;-) mozplugger-1.5.2.tar.gz
>>> Unpacking source...
>>> Unpacking mozplugger-1.5.2.tar.gz to /var/tmp/portage/mozplugger-1.5.2/wor
>>> Source unpacked.
make all CC=gcc XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared
make[1]: Entering directory `/var/tmp/portage/mozplugger-1.5.2/work/mozplugger      .5.2'
gcc -c -O2 -Inpapi/include -I/usr/X11R6/include -DXP_UNIX  -DVERSION=\"1.5.2\"      Wall  -fPIC -o mozplugger.o mozplugger.c
In file included from /usr/include/signal.h:326,
                 from mozplugger.h:6,
                 from mozplugger.c:20:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or direct      y
In file included from /usr/include/errno.h:36,
                 from mozplugger.h:11,
                 from mozplugger.c:20:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:130,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.      122,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/syslimi      .h:7,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/limits.      11,
                 from /usr/include/bits/socket.h:31,
                 from /usr/include/sys/socket.h:35,
                 from mozplugger.h:17,
                 from mozplugger.c:20:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from mozplugger.h:17,
                 from mozplugger.c:20:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [mozplugger.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mozplugger-1.5.2/work/mozplugger-      5.2'
make: *** [linux] Error 2

!!! ERROR: net-www/mozplugger-1.5.2 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Sep 01, 2004 1:30 am    Post subject: Reply with quote

fixed it. i was trying to free up disk space earlier and uninstalled linux-headers. :oops: reinstalling them fixed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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