why can't I compile anything in FC4, 2.6.11 x86_64smp
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.