Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119638 - app-admin/logrotate should use $(tc-getCC)
Summary: app-admin/logrotate should use $(tc-getCC)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 21:44 UTC by Robert Lippmann
Modified: 2007-01-21 17:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.