Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sandbox - configure: error: cannot run C compiled programs.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
trickygnome
n00b
n00b


Joined: 17 May 2017
Posts: 10

PostPosted: Wed Oct 02, 2024 8:57 am    Post subject: sandbox - configure: error: cannot run C compiled programs. Reply with quote

Hi! After emerge --update I got error during emerge --update
for package "sys-apps/sandbox”

Error:
configuration: “configure: error: cannot run C compiled programs.”.

emerge --info | grep CHOST
> CHOST="x86_64-pc-linux-gnu"

Why in /var/tmp/portage/sys-apps/sandbox-2.39/work/ I have two folders “sandbox-2.39” and “sandbox-2.39-abi_x86_32.x86”?
# ls /var/tmp/portage/sys-apps/sandbox-2.39/work/
> sandbox-2.39 sandbox-2.39-abi_x86_32.x86

Should I create a bug report? What steps I should do for such errors?

/var/tmp/portage/sys-apps/sandbox-2.39/temp/build.log and
/var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39-abi_x86_32.x86/config.log
https://pomf2.lain.la/f/ub7yaah6.tar.gz
explanation and emerge log: https://paste.debian.net/1331041/

I also tried with same error: FEATURES='-sandbox -usersandbox' emerge --oneshot sandbox

$ equery profile list:
[58] default/linux/amd64/23.0/split-usr/hardened (stable) *

$ emerge --info | grep -o 'ABI[^ ]* '
ABI_X86="64"

I guess problem in cmake.eclass: cmake_multilib_configure
My /usr/src/linux/.config:
# CONFIG_IA32_EMULATION is not set
# CONFIG_X86_X32_ABI is not set
_________________
if posts > 50 then; eat(shit); fi


Last edited by trickygnome on Wed Oct 02, 2024 2:34 pm; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31259
Location: here

PostPosted: Wed Oct 02, 2024 11:21 am    Post subject: Reply with quote

Can you post your emerge --info and /var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39-abi_x86_32.x86 content?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Oct 02, 2024 11:36 am    Post subject: Reply with quote

If you want an educated WAG, your kernel is missing support for 32 bit binaries.

When you check that, check for 32 bit time support too.

It's not thew old favorite -02 -O2 mixup as the test program built in 32 bit mode.
_________________
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
trickygnome
n00b
n00b


Joined: 17 May 2017
Posts: 10

PostPosted: Wed Oct 02, 2024 12:07 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Can you post your emerge --info and /var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39-abi_x86_32.x86 content?


# ls -al /var/tmp/portage/sys-apps/sandbox-2.39/work/sandbox-2.39-abi_x86_32.x86/
total 32
drwxr-xr-x 1 portage portage 20 Oct 2 09:01 .
drwx------ 1 portage portage 78 Oct 2 09:01 ..
-rw-r--r-- 1 portage portage 29520 Oct 2 09:01 config.log


this config.log in https://pomf2.lain.la/f/ub7yaah6.tar.gz
_________________
if posts > 50 then; eat(shit); fi
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 525
Location: Wales, UK

PostPosted: Sat Oct 19, 2024 7:26 am    Post subject: Reply with quote

Good morning trickygnome - did you get this sorted? If so, what did you find. I have come across the same error on my laptop... (desktop merged without issue, and configs are very similar indeed)
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 525
Location: Wales, UK

PostPosted: Sat Oct 19, 2024 7:51 am    Post subject: Reply with quote

paulj wrote:
Good morning trickygnome - did you get this sorted? If so, what did you find. I have come across the same error on my laptop... (desktop merged without issue, and configs are very similar indeed)


Thanks to the tip-off fom NeddySeagoon, I have resolved my issue. CONFIG_IA32_EMULATION was not set in the kernel configuration (and this was a difference between the two systems).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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