LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2015, 04:34 PM   #1
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Post ghc wont compile on slack64bits with 32bits compat installed...


I have a little situation... I installed the compat32 stuff and now I have to upgrade ghc and stuff and when I try compiling ghc it says this:

checking for path to top of build tree... /tmp/SBo/ghc-7.8.4
Build platform inferred as: x86_64-unknown-linux
Host platform inferred as: x86_64-unknown-linux
Target platform inferred as: x86_64-unknown-linux
GHC build : x86_64-unknown-linux
GHC host : x86_64-unknown-linux
GHC target : x86_64-unknown-linux
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /bin/ginstall -c
checking whether ln -s works... yes
checking for gsed... sed
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/ghc-7.8.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

What can I do? It says unknown linux... dont know why... Can anyone tell me what to do? Thanks.

Cheers
(=
Dumdadum

Last edited by dumdadum; 07-05-2015 at 04:39 PM.
 
Old 07-05-2015, 07:03 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,288

Rep: Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436
Quote:
Originally Posted by dumdadum View Post
I have a little situation... I installed the compat32 stuff and now I have to upgrade ghc and stuff and when I try compiling ghc it says this:

checking for path to top of build tree... /tmp/SBo/ghc-7.8.4
Build platform inferred as: x86_64-unknown-linux
Host platform inferred as: x86_64-unknown-linux
Target platform inferred as: x86_64-unknown-linux
GHC build : x86_64-unknown-linux
GHC host : x86_64-unknown-linux
GHC target : x86_64-unknown-linux
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /bin/ginstall -c
checking whether ln -s works... yes
checking for gsed... sed
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SBo/ghc-7.8.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

What can I do? It says unknown linux... dont know why... Can anyone tell me what to do? Thanks.

Cheers
(=
Dumdadum
Your issue is not the "x86_64-unknown-linux" - in fact that is pretty common when compiling software. Your real issue can be found in that file "config.log" which was created by the configure command. You will find it in the same directory as "configure".
Open "config.log" in a text editor, find the string "cannot create" and the actual issue will be found in the lines directly above.

You did read http://slackbuilds.org/faq/#multilib , yes?
 
1 members found this post helpful.
Old 07-05-2015, 07:15 PM   #3
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by Alien Bob View Post
Your issue is not the "x86_64-unknown-linux" - in fact that is pretty common when compiling software. Your real issue can be found in that file "config.log" which was created by the configure command. You will find it in the same directory as "configure".
Open "config.log" in a text editor, find the string "cannot create" and the actual issue will be found in the lines directly above.

You did read http://slackbuilds.org/faq/#multilib , yes?
Will read right now yes...

I checked the config.log file, and yes alot of info, I dont think I'm smart enough to know what it all means, all I know is that the C compiler doesnt work, or thats what it says in the stuff I posted in the first post...

Thanx, I'll check all that and come back if any questions.

Cheers,
(=
Dumdadum
 
Old 07-05-2015, 07:22 PM   #4
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien Bob View Post
Your issue is not the "x86_64-unknown-linux" - in fact that is pretty common when compiling software. Your real issue can be found in that file "config.log" which was created by the configure command. You will find it in the same directory as "configure".
Open "config.log" in a text editor, find the string "cannot create" and the actual issue will be found in the lines directly above.

You did read http://slackbuilds.org/faq/#multilib , yes?
Ok mainly it says multilib is unsupported...
Or else well I'll check the ghc.Slackbuild script and check the 3 lines...

Really, if I cannot compile any 64bit softwares after I go multilib, thats going to be an issue...

I'll check if it compiles with the 3 lines of the configure part.

Thanks,
Cheers,
(=
Dumdadum
 
Old 07-05-2015, 07:25 PM   #5
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien Bob View Post
Your issue is not the "x86_64-unknown-linux" - in fact that is pretty common when compiling software. Your real issue can be found in that file "config.log" which was created by the configure command. You will find it in the same directory as "configure".
Open "config.log" in a text editor, find the string "cannot create" and the actual issue will be found in the lines directly above.

You did read http://slackbuilds.org/faq/#multilib , yes?
Yup says cannot create executables... And theres also a line that says the C compiler doesnt work...
Ahhh well... I guess the word "unofficial" for the multilib part means you guys are working as hard as you can to make it official. I'll just wait. I'm patient...

Still, why is it that I cannot compile 64bit packages on my multilib... its not a 32 bit package... I dont get it...

Cheers,
(=
Dumdadum
 
Old 07-05-2015, 07:30 PM   #6
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien Bob View Post
Your issue is not the "x86_64-unknown-linux" - in fact that is pretty common when compiling software. Your real issue can be found in that file "config.log" which was created by the configure command. You will find it in the same directory as "configure".
Open "config.log" in a text editor, find the string "cannot create" and the actual issue will be found in the lines directly above.

You did read http://slackbuilds.org/faq/#multilib , yes?
qversion or something like that... I noticed we went from 4.8.5 to 4.8.7 with qt...is there a link to that?


Cheers, I'm looking to make it work...
Dumdadum
 
Old 07-05-2015, 08:28 PM   #7
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
a simple compile

Lets say I was to compile ANY package with SBo's scripts, are you telling me its now impossible to compile after you go multilib? Thats odd... Theres really nothing I can do? I dont understand...

Anyways thats for everything. Waiting if any response...

Cheers,
Dumdadum
 
Old 07-05-2015, 09:30 PM   #8
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Cool multilibpkg

Well I found a little thing called multilibpkg, dont know who thought of this, but he's a real genius...

Hope this helps a futur Slacker, cuz I dont slack, if you know what I mean.

Cheers (=
Dumdadum
 
Old 07-05-2015, 10:56 PM   #9
moesasji
Member
 
Registered: May 2008
Distribution: Slackware 14.1, MLED
Posts: 285

Rep: Reputation: 95
Quote:
Originally Posted by dumdadum View Post
Lets say I was to compile ANY package with SBo's scripts, are you telling me its now impossible to compile after you go multilib? Thats odd... Theres really nothing I can do? I dont understand...
What Alienbob refers to is point 18 in that FAQ. If a package doesn't compile on a multilib system in most cases you just need to add the LDFlag as explained in that specific point.
 
Old 07-06-2015, 05:59 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,288

Rep: Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436Reputation: 5436
Quote:
Originally Posted by dumdadum View Post
Yup says cannot create executables... And theres also a line that says the C compiler doesnt work...
If you are not able to find the actual issue in that "config.log" file, I suggest you post the contents of that file on a pastebin and I will point it out to you.

The SlackBuilds.org admins are not willing to add multilib support out of the box to the scripts they host. In most cases (but not always) adding the LDFLAGS line will be enough. The "not always" means that the admins would have to test every submission twice: on a stock Slackware64 computer and then once more on a multilib computer. That is just too much work and therefore multilib is "unsupported".
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile compat-wireless mah454 Programming 8 01-02-2012 03:19 AM
[SOLVED] compat-wireless compile error kaz2100 Linux - Software 1 10-24-2010 09:36 AM
Compile Compat-wireless mah454 Linux - Networking 2 09-25-2010 11:55 AM
compat-wireless driver wont compile for my rtl8187 wlan chipset fakie_flip Linux - Hardware 1 10-01-2009 10:24 PM
package compat-libstdc++ is not installed jimmyjiang Red Hat 4 04-16-2008 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration