C compiler cannot create executables
I was trying to compile xbmc today, and got the error about the c compiler not being able to create executables. I did a search on the forum, and found something from 2004. None of the suggestions there worked for me. I can compile libraries, because I did a few for dependencies.
The last thing I compiled with an executable was BloodFrontier, and it works perfectly. I have no idea where to go next. |
I'm not a programmer, but I think you will need to tell us exactly what the error message was.
|
I'll start with the standard answer: double-check that ARCH is set to x86_64.
http://slackbuilds.org/faq/#x86_64 Using Slackware64 and forgetting to set the ARCH environment variable is the usual cause of this error. |
Here is the relevant part from configure.log:
Code:
configure:3611: checking whether the C++ compiler works |
I think I have my answer after reading the log entry a bit closer. I went back to the slackbuild script and set the arch. :redface:
|
Sometimes, I think that Slackbuilds.org should make the ARCH pattern as
Code:
ARCH=${ARCH:-`uname -m`} |
Quote:
|
One still has to check to make sure the script is updated.
Besides, while it seemed to have compiled, there was still no executable. I got more looking to do. |
I finally was able to compile xbmc for Slackware64-current. However, I compiled it on an older -current partition that had not been updated since January. I do not update that one as often in case there are problems. The problem I believe was with libpng-1.4x. That package either has problems, or something else has not caught up just yet. The older -current has libpng-1.27x.
XBMC compile and ran just fine there, so I simply installed the package on my fully updated -current partition. It runs just fine here as well. I wish I was able to give better information on the whys, but I am no programmer or code writer. I'm not even a good beta tester, but I seem to insist on running -current for some silly reason. Maybe for Alien's KDE pkgs. :) Oh, and the XBMC version is 9.11. |
Quote:
|
I failed to mention last night that I found a patch to fix a problem xbmc had with libpng-1.4x. Evidently, the patch didn't help. So, in the interest of research and learning, I went to peruse the libpng changelog. No help there either. I'm not saying an answer isn't there, I'm just saying I didn't recognize one.
|
I remember that when I tried to compile the program, my answer on the changelog was this:
Code:
replace |
1 Attachment(s)
Each time I tried to build, I deleted everything previous. There is no log from the errors. However, I do have the libpng patch I inserted into the Slackbuild. I will attach that.
|
Yes, I saw the patch and, indeed, there is some fix there. From the libpng changelog:
Code:
5. Other changes |
1 Attachment(s)
Well, I was wrong - I do have a config log from a failed attempt. I should also add that I had no errors from configure, and it even seemed to compile in this one. There was just no executable after make.
Make install complained about xbmc.bin - no such file or directory. I split this into two parts - it was too big for the forum limit. Read it if you like. :) Part 1: |
All times are GMT -5. The time now is 09:17 PM. |