Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585460

Summary: net-fs/samba-4.2.11 fails to build
Product: Gentoo Linux Reporter: Carsten Raddatz <bugs-gentoo>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output emerge --info '=net-fs/samba-4.2.11::gentoo'
output emerge -pqv '=net-fs/samba-4.2.11::gentoo'
output build.log for '=net-fs/samba-4.2.11::gentoo'
output emerge environment

Description Carsten Raddatz 2016-06-09 12:48:34 UTC
Trying to upgrade samba, failing like this:

[ 797/2795] Compiling auth/credentials/credentials_secrets.c

cc1: out of memory allocating 18446462598732841005 bytes after a total of 1560576 bytes
Waf: Leaving directory `/tmp/portage/net-fs/samba-4.2.11/work/samba-4.2.11-abi_x86_64.amd64/bin'
Build failed:  -> task failed (err #1): 
        {task: cc credentials_secrets.c -> credentials_secrets_8.o}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1
 * ERROR: net-fs/samba-4.2.11::gentoo failed (compile phase):
 *   emake failed
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge =net-fs/samba-4.2.11
2. compile fails
3. emerge =net-fs/samba-4.2.9 also fails, same error
Actual Results:  
Build failed:  -> task failed (err #1): 
        {task: cc credentials_secrets.c -> credentials_secrets_8.o}
Makefile:8: recipe for target 'all' failed

Expected Results:  
=net-fs/samba-4.2.11 should compile without issues

Tried both X86_ABI="64" and X86_ABI="32" selectively, no change in result.

Also, the "allocating 18446462598732841005 bytes after a total of 1560576 bytes" bit looks odd.
Comment 1 Carsten Raddatz 2016-06-09 12:51:01 UTC
Created attachment 436976 [details]
output emerge --info '=net-fs/samba-4.2.11::gentoo'
Comment 2 Carsten Raddatz 2016-06-09 12:52:12 UTC
Created attachment 436978 [details]
output emerge -pqv '=net-fs/samba-4.2.11::gentoo'
Comment 3 Carsten Raddatz 2016-06-09 12:53:48 UTC
Created attachment 436980 [details]
output build.log for '=net-fs/samba-4.2.11::gentoo'
Comment 4 Carsten Raddatz 2016-06-09 12:55:34 UTC
Created attachment 436982 [details]
output emerge environment
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2016-06-19 21:58:38 UTC
Not that it makes much sense, but the compile issue is an out of memory error isn't it?
Comment 6 Carsten Raddatz 2016-06-23 09:06:37 UTC
Whatever was wrong on my machine, it works now. Marking as RESOLVED OBSOLETE.

Basically a repeated emerge -e @system seems to have fixed it, but I can't provide sufficient detail to know why. The anecdotal link is here https://forums.gentoo.org/viewtopic-t-1045916.html