You are not logged in.
hi,
i am trying to make an evolution package that includes support for a palm pilot. i got the PKGBUILD file from somebody else and copied it to a directory. In that directory I then executed
makepkg
and tried to compile it. It goes pretty smooth until it complains about the following thing:
error: C compiler cannot create executables
i dont really know how to solve that problem and any help would be appriciated.
thanks
Offline
Try the basics...
Create a file with the following text:
#include <stdio.h>
int main() {
printf("Hello world");
return 0;
}
Save the file has hello.c and compile it with
gcc -Wall hello.c -o hello
and see if you get any errors... you might be having issues with packages like glibc or gcc that would maybe need to be reinstalled
Normally, if it claims that gcc can't create exec's, you should see an error before that warning that would tell you what the problem is
DaDeXTeR (Martin Lefebvre)
My screenshots on PicasaWeb
[img]http://imagegen.last.fm/dadexter/recenttracks/dadexter.gif[/img]
Offline
hmm, i did that and it really doesnt work:
[hbadekow@henrik16 hbadekow]$ gcc -Wall test.c -o test
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld gab 1 als Ende-Status zurück
what does that mean?? how can i fix that? any ideas?
thank you for your help!!!!!
Offline
problem soved!!!
the version i had didnt support the option --as-needed and i just updated binutils/ld and it worked!!!
thanks again though!!!
Offline
yet another reason why you should keep your system up to date
Offline