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

Bug 301751

Summary: sys-devel/crossdev: emerge-wrapper does not set CTARGET
Product: Gentoo Linux Reporter: Jacob Godserv <jacobgodserv>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jacob Godserv 2010-01-21 18:05:51 UTC
crossdev's emerge-wrapper script does not set CTARGET. While this variable is not terribly important outside toolchain building, a few packages are known to use it. From the Embedded handbook concerning CTARGET:

"[Defines the] Platform the binaries built by cross-toolchain will run on. Redundant, but there's no harm in setting this, and a few binaries do like it."

If this could be added to the emerge-wrapper script, it would be one less thing to worry about when cross-compiling.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.6.13 (unavailable, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8800_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Unknown
ccache version 2.4 [disabled]
dev-lang/python:     2.6.4
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="mmx sse sse2"
Unset:  ACCEPT_KEYWORDS, EMERGE_DEFAULT_OPTS
Comment 1 SpanKY gentoo-dev 2010-01-24 18:29:30 UTC
CTARGET matters when compiling the cross-compiler, not when cross-compiling packages with the cross-compiler

unless you have an actual error to show here ...