Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
komische kernel compile probleme
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Jonas Witt
n00b
n00b


Joined: 15 Apr 2003
Posts: 43
Location: Leipzig (Germany)

PostPosted: Wed Oct 29, 2003 11:57 am    Post subject: komische kernel compile probleme Reply with quote

hi, ich habe folgendendes problem:

ich kann keine kernels mehr kompilieren :(
- ich habe probiert: gentoo-sources-2.4.20-r5 - r8, pfeifer-sources-2.4.20-r1_pre11, ck-sources-2.4.22-r2
- es sind immer die gleichen fehlermeldungen, aber von kernel zu kernel verschieden
- die fehler treten immer bei 'make bzImage' auf (vorher habe ich 'make dep clean' gemacht)
- die kernelsourcen sind alle frisch gemergt
- die fehler treten sowohl mit 'meiner' .config auf, als auch mit der default-config (nach 'make mrproper')

nun aber mal so eine fehlermeldung (von gentoo-sourcen-2.4.20-r8 ):

Code:
root /usr/src/linux # nice make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/wait.h:16,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/spinlock.h:203:1: warning: "read_unlock" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/spinlock.h:57,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/wait.h:16,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/wait.h:16,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/spinlock.h:205:1: warning: "write_unlock" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/spinlock.h:57,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/wait.h:16,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:891: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h: In function `unhash_process':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:980: warning: implicit declaration of function `_raw_write_lock'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:985: warning: implicit declaration of function `_raw_write_unlock'
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h: In function `task_lock':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:991: warning: implicit declaration of function `_raw_spin_lock'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h: In function `task_unlock':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:996: warning: implicit declaration of function `_raw_spin_unlock'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h: In function `d_path':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:1006: warning: implicit declaration of function `_raw_read_lock'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/sched.h:1009: warning: implicit declaration of function `_raw_read_unlock'
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: At top level:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:206: syntax error before "pte_addr_t"
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:206: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:206: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:207: warning: type defaults to `int' in declaration of `pte'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:207: warning: data definition has no type or storage class
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:226: syntax error before '}' token
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:226: warning: type defaults to `int' in declaration of `mem_map_t'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:226: warning: data definition has no type or storage class
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `pte_chain_lock':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:390: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:391: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:391: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `pte_chain_unlock':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:401: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `page_zone':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:424: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `set_page_zone':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:429: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:430: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `page_mapped':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:534: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: At top level:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:544: syntax error before '*' token
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:544: warning: type defaults to `int' in declaration of `mem_map'
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:544: warning: data definition has no type or storage class
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h: In function `is_page_cache_freeable':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:654: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/mm.h:654: dereferencing pointer to incomplete type
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/irq.h:69,
                 from /usr/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/interrupt.h:45,
                 from /usr/include/asm/smplock.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/smp_lock.h:16,
                 from init/main.c:24:
/usr/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/include/asm/hw_irq.h:201: structure has no member named `processor'
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/highmem.h:5,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/vmalloc.h:8,
                 from /usr/include/asm/io.h:47,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/blkdev.h:11,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/blk.h:4,
                 from init/main.c:25:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: structure has no member named `processor'
/usr/include/asm/pgalloc.h:79: structure has no member named `processor'
/usr/include/asm/pgalloc.h:81: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: structure has no member named `processor'
/usr/include/asm/pgalloc.h:90: structure has no member named `processor'
/usr/include/asm/pgalloc.h:91: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:122: structure has no member named `processor'
/usr/include/asm/pgalloc.h:123: structure has no member named `processor'
/usr/include/asm/pgalloc.h:125: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: structure has no member named `processor'
/usr/include/asm/pgalloc.h:133: structure has no member named `processor'
/usr/include/asm/pgalloc.h:134: structure has no member named `processor'
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/vmalloc.h:8,
                 from /usr/include/asm/io.h:47,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/blkdev.h:11,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/blk.h:4,
                 from init/main.c:25:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/highmem.h: In function `kmap':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/locks.h:8,
                 from /usr/src/linux-2.4.20-gentoo-r8/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/linux-2.4.20-gentoo-r8/include/linux/pagemap.h: In function `wait_on_page':
/usr/src/linux-2.4.20-gentoo-r8/include/linux/pagemap.h:99: dereferencing pointer to incomplete type
/usr/src/linux-2.4.20-gentoo-r8/include/linux/pagemap.h:99: dereferencing pointer to incomplete type
In file included from /usr/src/linux-2.4.20-gentoo-r8/include/linux/pci.h:622,
                 from init/main.c:45:
/usr/include/asm/pci.h: In function `pci_map_page':
/usr/include/asm/pci.h:106: invalid operands to binary -
/usr/include/asm/pci.h: In function `pci_map_sg':
/usr/include/asm/pci.h:160: invalid operands to binary -
/usr/include/asm/pci.h: In function `pci_dac_page_to_dma':
/usr/include/asm/pci.h:236: invalid operands to binary -
init/main.c: In function `start_kernel':
init/main.c:432: structure has no member named `processor'
make: *** [init/main.o] Error 1


folgendes habe ich bis jetzt unternommen:
- gcc-3.2.3-r2 gemergt (hatte vorher 3.3), und auch nochmal mit sich selbst gemergt
- glibc-2.3.2-r1 + make-3.80 neu gemergt
- linux-headers-2.4.19-r1 neu gemergt (dem packet gehört die /usr/include/asm/pci.h)
hilft alles nix :(

meine CFLAGS aus der make.conf:
Code:
CFLAGS="-march=pentium4 -O3 -mmmx -msse -mfpmath=sse,387"


eigentlich müsste das problem doch durch neumergen eines packetes zu lösen sein, oder? ich mache gerade ein 'nice emerge system', da ich keine ahnung habe, welche programme noch so beim kernel-make involviert sind.

weiss irgendjemand rat?

danke,
-jonas
Back to top
View user's profile Send private message
Jonas Witt
n00b
n00b


Joined: 15 Apr 2003
Posts: 43
Location: Leipzig (Germany)

PostPosted: Wed Oct 29, 2003 1:24 pm    Post subject: Reply with quote

also, ein 'emerge system' hat leider auch nicht geholfen. :(

ich sollte vielleicht auch noch erwähnen, dass ich ne weile ACCEPT_KEYWORDS="~x86" i.d. make.conf hatte. :? gcc und die anderen oben genannten packete sind jetzt aber alle wieder x86.
Back to top
View user's profile Send private message
beejay
Retired Dev
Retired Dev


Joined: 03 Oct 2002
Posts: 924
Location: Flensungen (das liegt neben Merlau)

PostPosted: Wed Oct 29, 2003 1:51 pm    Post subject: Reply with quote

Ich würde fast sagen, dass der zeitweise Betrieb von ~x86 - speziell gcc-3.3 - Dein System durcheinander gebracht hat. Eine Lösungsmöglichkeit wäre - ohne Gewähr und in meinen Augen - den GCC aus einem Stage-3 Paket zu entpacken. Allerdings könnte es danach genau so gut passieren, dass danach gar nix mehr geht. :?

Ich hoffe ja für Dich, dass noch jemand anderes mit einer möglichen Lösung aufwarten kann - denn wie gesagt bin ich mir bei meinem Ansatz nicht besonders sicher.
_________________
Dort wo schwarzer Rauch aufsteigt, sich alsbald ein Fehler zeigt.
www.paludis-sucks.org | www.gentoo.de | www.gentoo-ev.org | www.gentoo.org
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Wed Oct 29, 2003 2:10 pm    Post subject: Reply with quote

beejay wrote:
Ich würde fast sagen, dass der zeitweise Betrieb von ~x86 - speziell gcc-3.3 - Dein System durcheinander gebracht hat. Eine Lösungsmöglichkeit wäre - ohne Gewähr und in meinen Augen - den GCC aus einem Stage-3 Paket zu entpacken. Allerdings könnte es danach genau so gut passieren, dass danach gar nix mehr geht. :?
Davon würde ich abraten, damit machst du dir erstmal mehr kaputt wie wieder ganz.
Jonas Witt wrote:
es sind immer die gleichen fehlermeldungen, aber von kernel zu kernel verschieden
Hört sich interessant an ;)

Hast du mit einem 3.3er GCC schonmal einen Kernel erfolgreich gebaut? Konntest du vor/während/nach dem Wechsel auf ~x86 kompilieren?

Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
Jonas Witt
n00b
n00b


Joined: 15 Apr 2003
Posts: 43
Location: Leipzig (Germany)

PostPosted: Wed Oct 29, 2003 2:44 pm    Post subject: Reply with quote

beejay wrote:
den GCC aus einem Stage-3 Paket zu entpacken

inwiefern ist der anders als ein von mir gemergter?

dertobi123 wrote:
Hast du mit einem 3.3er GCC schonmal einen Kernel erfolgreich gebaut? Konntest du vor/während/nach dem Wechsel auf ~x86 kompilieren?

ja, definitiv. bis jetzt ist sowas noch nicht passiert.
halt immer mal ein paar kleine fehler beim kompilieren, was aber nach einem blick i.d. code behoben war.
aber jetzt geht ja wirklich gar nix. wunderlich finde ich auch, dass sonstige sachen keine mucken machen. ich hab ja eben ohne probleme 'emerge system' gemacht. was ist bei einem kernelmake anders als bei anderen makes?

jonas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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