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

Bug 902571

Summary: app-containers/podman fails to cross-compile
Product: Gentoo Linux Reporter: Dustin C. Hatch <dustin>
Component: Current packagesAssignee: Zac Medico <zmedico>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dustin C. Hatch 2023-03-22 01:40:23 UTC
Building *app-containers/podman* with a cross-compiler toolchain fails.  The build needs the `CC` and `LD` environment variables to be exported before running `go build`.

I was able to work around this problem by creating `/etc/portage/env/app-containers/podman`:

```
function post_src_prepare() {
	tc-export CC LD
}
```

Reproducible: Always
Comment 1 Nils Freydank 2023-03-27 18:37:50 UTC
Hi,

thanks for your report. Please attach a build.log and the output of emerge --info (and please do so for future bug reports, too).

Can you test if just adding CC and LD to the other exported variables in line 100 is sufficient, i.e. 'export -n CC GOCACHE GOPATH LD XDG_CACHE_HOME'?

Thanks,
Nils