LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   upgraded current now i cannot build Slackbuilds (https://www.linuxquestions.org/questions/slackware-14/upgraded-current-now-i-cannot-build-slackbuilds-838544/)

mdynac 10-16-2010 04:51 PM

upgraded current now i cannot build Slackbuilds
 
hello all,

this is what i get when i try to compile ndiswrapper:

checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i486-slackware-linux-gnu
checking host system type... i486-slackware-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/mpc-0.8.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.






any help would be appreciated
thx mdynac

Richard Cranium 10-16-2010 05:01 PM

What is in config.log?

paulsm4 10-16-2010 05:03 PM

1. Make sure you have "gcc" and test-build a "hello world" to make sure it works.

2. Make sure your /tmp directory is world-writable

lumak 10-16-2010 05:16 PM

.. If you are compiling ndiswrapper... why is it going into /tmp/SBo/mpc-0.8.2 ???

additionally ndiswrapper doesn't have a configure file, you just run "make" as the Makefile is already distributed with the source.


either way... whenever I have gotten that error, it is usually because of x86_64 and x86 cross contamination with a previous or current multi-lib setup. What customizations have you done to your system and are you in fact running 32bit current?

mdynac 10-16-2010 05:52 PM

Quote:

Originally Posted by lumak (Post 4129840)
.. If you are compiling ndiswrapper... why is it going into /tmp/SBo/mpc-0.8.2 ???

additionally ndiswrapper doesn't have a configure file, you just run "make" as the Makefile is already distributed with the source.


either way... whenever I have gotten that error, it is usually because of x86_64 and x86 cross contamination with a previous or current multi-lib setup. What customizations have you done to your system and are you in fact running 32bit current?



sorry i was trying to build libmpc


ndiswrapper failed with saying gcc could not build an executable.

Slackbuilds worked fine until i updated -current the other day

running two 32bit machines here

lenovo S10 netbook
IBM netvista desktop

both running freshly updated -current and neither will run a slackbuild

paulsm4 10-16-2010 09:22 PM

To repeat:

1. Make sure you have "gcc" and test-build a "hello world" to make sure it works.

2. Make sure your /tmp directory is world-writable

... and ...

3. Double check your config.log

tomtomjkw 10-17-2010 03:42 AM

Similar problem after today's current gcc_multilib update.
Can't build anything, hello world included.
Yes, double checked /tmp rights

bathory 10-17-2010 03:52 AM

Hi,

You need to install libmpc.
I have the same problem with Slackware64. Running ./configure to install a program from source gave:
Quote:

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
Trying to compile a simple c program revealed this:
Quote:

/usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
and installing the above mentioned library solved it.

Regards

ponce 10-17-2010 03:55 AM

it’s a library added to current on august 28, you can find it here

http://slackware.osuosl.org/slackwar...2-x86_64-1.txz

but probably you need to do also a

slackpkg install-new

to install other stuff added to current from the date you updated to it.

tomtomjkw 10-17-2010 04:01 AM

Thx guys. I suppose I need to rewrite "Read the Changelog when toying with current" 100 times.

mdynac 10-17-2010 09:49 AM

thanks all

running a "slackpkg install-new" fixed it right up on both my machines.


All times are GMT -5. The time now is 11:36 AM.