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

Bug 119638

Summary: app-admin/logrotate should use $(tc-getCC)
Product: Gentoo Linux Reporter: Robert Lippmann <rlippmann>
Component: Current packagesAssignee: Daniel Gryniewicz (RETIRED) <dang>
Status: RESOLVED FIXED    
Severity: normal CC: rlippmann
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Lippmann 2006-01-19 21:44:24 UTC
When building logrotate, the compiler is set to cc, which results in compilation failure in a distcc environment with non linux hosts.

Namely, the following error results:

cc -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7.1\"  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O3 -march=pentium4 -pipe   -c -o log.o log.c
cc -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7.1\"  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O3 -march=pentium4 -pipe   -c -o config.o config.c
cc -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7.1\"  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O3 -march=pentium4 -pipe   -c -o basenames.o basenames.c
cc -g  logrotate.o log.o config.o basenames.o -lpopt  -o logrotate
logrotate.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
distcc[23776] ERROR: compile (null) on localhost failed
make: *** [logrotate] Error 1

The ebuild should either set CC to gcc or (preferably) i686-pc-linux-gnu-gcc
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-01-21 17:11:33 UTC
Fixed.  Thanks, Jakub.