LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-11-2005, 08:45 PM   #1
dexterwy
LQ Newbie
 
Registered: May 2005
Posts: 12

Rep: Reputation: 0
why can't I compile anything in FC4, 2.6.11 x86_64smp


Neither the kernel, nor the source codes of other applications



Could someone tell me what's wrong please?
 
Old 12-11-2005, 10:00 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Do you have gcc and other development tools installed?

Could you provide us with details?
 
Old 12-12-2005, 01:41 AM   #3
dexterwy
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
when I was trying to compile some source code of drivers, there are always report of syntax error
when I was trying to compile the kernel, after typing "make", it goes like this:

CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-x86_64/offset.h
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘parse_file’:
scripts/mod/sumversion.c:260: warning: pointer targets in passing argument 1 of ‘grab_file’ differ in signedness
scripts/mod/sumversion.c:277: warning: pointer targets in passing argument 1 of ‘parse_string’ differ in signedness
scripts/mod/sumversion.c:283: warning: pointer targets in passing argument 1 of ‘parse_comment’ differ in signedness
scripts/mod/sumversion.c: In function ‘parse_source_files’:
scripts/mod/sumversion.c:335: warning: pointer targets in initialization differ in signedness
scripts/mod/sumversion.c:344: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:357: warning: pointer targets in passing argument 1 of ‘parse_file’ differ in signedness
scripts/mod/sumversion.c: In function ‘strip_rcs_crap’:
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of ‘strncmp’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:485: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c:486: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
scripts/mod/sumversion.c: In function ‘maybe_frob_rcs_version’:
scripts/mod/sumversion.c:496: warning: pointer targets in passing argument 1 of ‘strip_rcs_crap’ differ in signedness
HOSTLD scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2


thank you in advance
 
Old 12-12-2005, 01:43 AM   #4
dexterwy
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
 
Old 12-12-2005, 04:52 PM   #5
leontini
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Fedora Core 8-10
Posts: 61

Rep: Reputation: 15
dexterwy,

I had similar issues after installing fc4. Nothing would compile with the default version of gcc (which I think is v4.0.0). I got around it by setting the compiler to be gcc32 (ie, gcc v3.2), and everything worked fine. It seems that gcc 4.0.0 is pretty broken.

To get an app to compile using gcc32 (which is included with fc4), instead of just running ./configure, run ./configure -CC=gcc32. If that doesn't work, check the makefile of the app you are compiling, there will be a similar option/variable to set to change the c compiler.

Alternatively, you could get the latest minor update of gcc, 4.0.2, which I have heard has fixed most of these bugs.

Hope this helps,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 04:26 PM
Wireless driver won't compile in FC4 litlmary Fedora 3 02-01-2006 12:55 AM
FC4 eMachines ndiswrapper problem (don't think it has anything to do with FC4) unknownmosquito Linux - Laptop and Netbook 2 12-04-2005 11:50 AM
FC4 kernel compile issues silentdragon48 Fedora 4 09-04-2005 05:57 PM
ndiswrapper compile problem FC4 totenengel Fedora 1 06-27-2005 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration