Configure problem while building rpm with krpmbuilder on SUSE 10.0 OSS
Hey people!
I am trying to build an rpm using krpmbuilder. The program seems to do its job when it comes to building the spec file, I have checked it against various other specs and I don't see any differences I could not explain by some good logic thinking. (Why is the name different :P) Anyhow, when I try to actually create the rpm, configure quits with the error that my "C compiler cannot create executables". I use gcc version 4.0.2 20050901. (got by 'gcc -v') Oddly enough, if I run ./configure in the directory itself, it finishes like it should do. So I am wondering what my mistake is. Searching told me to look for glibc-devel, so in YaST I did a search but it was installed. I updated everything plus I installed all the other patches, same for gcc, still the error. I'd be very thankful if anyone knows the answer and would be nice enough to share it with me ;-) Also, I'd like to know about manuals, how-to's, et cetera, about rpm creating, be it graphical like krpmbuilder, be it commandline. Greets and thanks in advance! Zsub. -Edit- Okay, third edit. Could the fact that gcc is not able to create executables have something to do with the fact that the source is gzipped? I guess not, since it should be writing to a temp dir, but hey, you never know :-) I also read a post in a mailinglist somewhere, saying that the symlinks to gcc could be incorrect. Reinstalling gcc solved the problem there. I updated all packages of gcc and the like - which ought to give the same effect on SUSE&YaST - but that won't work for me. -Edit- Sheesh, second edit already... krpmbuilder also won't build another source (gaim-1.5.0) exiting with the same error. "C compiler cannot create executables" -Edit- Might be useful to have the log... Building the spec file... done Building package now... Building target platforms: i386 Building for target i386 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29488 + umask 022 + cd /usr/src/packages/BUILD + rm -rf /var/tmp/build-root-keytouch + mkdir /var/tmp/build-root-keytouch + cd /usr/src/packages/BUILD + rm -rf keytouch-2.1.2 + /usr/bin/gzip -dc /usr/src/packages/SOURCES/keytouch-2.1.2.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd keytouch-2.1.2 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.29488 + umask 022 + cd /usr/src/packages/BUILD + cd keytouch-2.1.2 + CFLAGS='-O2 -g -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2' + CXXFLAGS='-O2 -g -march=i486 -fmessage-length=0 -D_FORTIFY_SOURCE=2' + ./configure --prefix=/opt/kde3 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /usr/src/packages/BUILD/keytouch-2.1.2/missing: Unknown `--run' option Try `/usr/src/packages/BUILD/keytouch-2.1.2/missing --help' for more information configure: WARNING: `missing' script is too old or missing checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. error: Bad exit status from /var/tmp/rpm-tmp.29488 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.29488 (%build) |
Compiler cannot create executables
hello,
i red your message and have the same problem,perhaps u read this after a time ago, do you solve the problem? greetings |
Hello ram1234!
I kinda never got around it. It might be fixed though, in a next release. I don't know. I also haven't found out what causes this error, since no-one seemed to know back then :-) Ciao! |
New Thread
Quote:
another question,how do i start a new thread with my specific problem? thanks, greetings |
apt-get install build-essential
install this and everything should be workin fine.. |
All times are GMT -5. The time now is 08:42 AM. |