Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C Compiler Can't Create Executables [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
n00b
n00b


Joined: 13 Feb 2016
Posts: 60

PostPosted: Mon Jun 12, 2017 2:57 pm    Post subject: C Compiler Can't Create Executables [solved] Reply with quote

I am attempting to emerge this package (sys-apps/sandbox) and running into C compiler errors. From looks at the recent portage log, something is causing this thing to not compile accurately so I was wondering if there might be a thought of how to address this. I am not completely confident in dealing with patches, yet. Any suggestion would be appreciated.



Code:
configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.6-r1/work/build-x86':
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... configure: erro
r: C compiler cannot create executables
See `config.log' for more details



Code:
│Call stack:
│    ebuild.sh, line  115:  Called src_compile
│  environment, line 2528:  Called multijob_child_init 'sb_configure'
│  environment, line 1953:  Called sb_configure
│  environment, line 2488:  Called die

The specific snippet of code:         
    ECONF_SOURCE="../${P}/" econf ${myconf} || die 



Here is some more info from elogv

Could one issue be I am unaware of the difference between several of the features listed,:
Code:

USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib policykit userland_GNU
FEATURES:   preserve-libs sandbox userpriv usersandbox


[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


Last edited by LIsLinuxIsSogood on Sat Jun 24, 2017 12:08 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9313
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jun 12, 2017 4:44 pm    Post subject: Reply with quote

Split to a new topic as it's, well, a new topic.

Might want to look at the config.log as the error messages suggest.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5697

PostPosted: Mon Jun 12, 2017 8:57 pm    Post subject: Reply with quote

Well, as John R. Graham said, the config.log is what could help us, but for your specific case : sandbox you could just start to read what it is telling you, because sandbox specifically output an error message AND howto solve it about a gcc error with this package.
If this doesn't work, config.log...
Back to top
View user's profile Send private message
LIsLinuxIsSogood
n00b
n00b


Joined: 13 Feb 2016
Posts: 60

PostPosted: Tue Jun 13, 2017 4:16 am    Post subject: Reply with quote

Ok, here is the config.log https://paste.pound-python.org/show/ffaR3tBWeQrVIqCaVFQx/

I guess going through all of this seems like it should only take a short amount of time, what exactly would I be searching for in terms of C compiling error assuming the log shows that kind of stuff, and does it?

Something else that I'm not sure if matters is whether I should update gcc, currently not on the newest most stable release. Typically before updating (even for a stable release) I would be curious to know whether this could solve the problem or not...

emerge -s sys-devel/gcc SHOWS:

Code:
*  sys-devel/gcc
      Latest version available: 5.4.0-r3
      Latest version installed: 4.9.3
      Size of files: 93,468 KiB
      Homepage:      https://gcc.gnu.org/
      Description:   The GNU Compiler Collection
      License:       GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+


Does this seem like the right place to begin - any help is appreciated thanks
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 15404
Location: here

PostPosted: Tue Jun 13, 2017 5:58 am    Post subject: Reply with quote

Why you try to install a old version of sandbox? Last stable version is sys-apps/sandbox-2.10-r3.
The problem is probably abi_x86_32 use flag.
When I try, on my system, to emerge sandbox-2.6-r1 I see that abi_x86_32 use flag was removed
Code:
# emerge =sys-apps/sandbox-2.6-r1 -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] sys-apps/sandbox-2.6-r1::gentoo [2.10-r3::gentoo] USE="(multilib%*)" ABI_X86="(-32%*) (-64%*) (-x32%)" 358 KiB

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 10702

PostPosted: Wed Jun 14, 2017 1:31 am    Post subject: Reply with quote

Please post the output of emerge --verbose --info sys-devel/gcc sys-libs/glibc sys-apps/sandbox. You appear to have some sort of multilib problem, which is a bit odd based on the information provided so far.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
n00b
n00b


Joined: 13 Feb 2016
Posts: 60

PostPosted: Wed Jun 14, 2017 6:54 am    Post subject: Reply with quote

I suppose the multilib issue could be summed up by suggesting when I first installed the system I recall using a no-multilib profile (not sure how to check this though)...perhaps some old build logs could have an answer buried in there. But then, at some point I tried to install some native 32-bit, which was no good with the ABI_x86_32 flag. I don't know if that could be the only thing contributing, but the only other thing I tend to switch profiles around, since a long time ago choosing to go with a desktop profile, and then most recently while installing LXqt changed it again. On a positive note, I'm currently compiling gcc using the no-multilib profile, and seems to be running further than it did before. But I might not know for sure, until I've been able to reinstall it with sandbox and hope that there is no real damage in building or compiling without that feature for now. Here is the output, with no sandbox as I have unmerged that package, before knowing the important feature that is provided when installing new packages.

https://paste.pound-python.org/show/RUSFgvEa0YKZIzcZQFFc/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 37961
Location: 56N 3W

PostPosted: Wed Jun 14, 2017 9:23 am    Post subject: Reply with quote

LIsLinuxIsSogood,

Its not possible to switch from no-multilib to a multilib profile for lots of reasons.
Its a reinstall.

The other way works. It abandons the 32 bit libraries in your install.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
n00b
n00b


Joined: 13 Feb 2016
Posts: 60

PostPosted: Mon Jun 19, 2017 2:53 am    Post subject: Reply with quote

I got sandbox installed along with the latest stable release for GCC, its 5.3.'something' I believe :)

Thanks to those clarifying for me that to switch was possible only from a multilib to a no multilib. I guess I was hoping to get two big system upgrades at once, ha...but from reading it again I believe the logic is sound and that since no multilib is just like removal of files but the other way is a complicated matter of many installs, which is not as simple as uninstalling, or in gentoo speak merging/unmerging. Cool.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
n00b
n00b


Joined: 13 Feb 2016
Posts: 60

PostPosted: Fri Jun 23, 2017 10:33 pm    Post subject: Reply with quote

NeddySeago - thanks, I just posted the same or similar question, but I did want to say thanks for your response it makes sense. When you say a reinstall, what exactly are we talking about here. If it is the entire thing, then not only is that a lot of work and time, but it also means that I will need to in theory back up all my personal files, as well as my /opt/ directory where I have much software installed from source. I am really trying to figure out if your advice is to install linux over again, or reinstall some portion of it perhaps.

And of course a since i did make progress with the installation under nomiltilib i am marking it solved too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum