Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68382 - lm-sensors-2.8.7 does not compile
Summary: lm-sensors-2.8.7 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 68808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-21 05:26 UTC by Sebastian Spaeth
Modified: 2004-10-25 11:53 UTC (History)
5 users (show)

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


Attachments
emerge -v info (emerge_info.txt,3.52 KB, text/plain)
2004-10-24 06:37 UTC, Jeff
Details
emerge -v info (emergevinfo,5.78 KB, text/plain)
2004-10-24 14:54 UTC, Colin Macdonald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Spaeth 2004-10-21 05:26:26 UTC
All seems to go wrong from here during compilation:

rm -f prog/sensors/*.rd prog/sensors/*.ro
rm -f prog/sensors/sensors
rm -f lm_sensors-*
/bin/sh: -/: invalid option
Usage:  /bin/sh [GNU long option] [option] ...
        /bin/sh [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --protected
        --rcfile
        --restricted
        --verbose
        --version
        --wordexp
Shell options:
        -irsD or -c command or -O shopt_option          (invocation only)
        -abefhkmnptuvxBCHP or -o option
/bin/sh: -print-search-dirs: command not found


Next, it compiles a couple of files and then many of these occur:


        sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro: Makefile '`dirname prog/sensors/chips.rd`/Module.mk' @' > prog/sensors/chips.rd
M -MG -I. -Ikernel/include -I/var/tmp/portage/lm-sensors-2.8.7/work/i2c-headers  -Wall -O2 -O3 -ffast-math -mfpmath=sse -ftracer -fomit-frame-pointer -pipe -fno-stack-protector prog/sensors/main.c | \
        sed -e 's@^\(.*\)\.o:@prog/sensors/main.rd prog/sensors/main.ro: Makefile '`dirname prog/sensors/main.rd`/Module.mk' @' > prog/sensors/main.rd
/bin/sh: M: command not found
/bin/sh: M: command not found


And later before the ebuild stops, it does:
I. -Ikernel/include -I/var/tmp/portage/lm-sensors-2.8.7/work/i2c-headers  -fpic -Wall -O2 -O3 -ffast-math -mfpmath=sse -ftracer -fomit-frame-pointer -pipe -fno-stack-protector -Wno-unused -c lib/conf-lex.c -o lib/conf-lex.lo
make: I.: command not found
make: [lib/conf-lex.lo] error 127 (ignored)


-----------------------------------------------------------
emerge info:
Portage 2.0.51_rc9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -ffast-math -mfpmath=sse -ftracer -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandox userpriv"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 avi berkdb bitmap-fonts crypt cups encode foomaticdb gdbm gif gnome gtk gtk2 guile hbci imlib java jpeg leim libg++ libwww mikmod mozilla mpeg ncurses nls nogcj offensive oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang smartcard speex spell ssl tcpd tetex truetype xml2 xmms xprint xv zlib video_cards_radeon"
Comment 1 Sebastian Spaeth 2004-10-22 03:10:15 UTC
Found solution in http://forums.gentoo.org/viewtopic.php?t=238146:

"CC=gcc emerge lm-sensors" suceeds in installing lm-sensors. Now, go figure :-)
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-10-22 09:42:01 UTC
Closing as INVALID. Thanks for commenting :-)
Comment 3 Colin Macdonald 2004-10-23 23:45:31 UTC
I think this is a valid bug!  I can confirm it.

Saying you can fix it with "CC=gcc emerge lm-sensors" and then declaring it invalid isn't good enough.  We need to make "emerge lm-sensors" work correctly.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-10-24 04:04:19 UTC
Reopening as requested.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-10-24 04:36:17 UTC
Is there anything we can do? Can one of the people that had the issue post the output of "emerge -v info" please?

It seems like a sed went completely wrong or something. I have to understanding of why/how CC=gcc is fixing it...
Comment 6 Jeff 2004-10-24 06:37:03 UTC
Created attachment 42490 [details]
emerge -v info
Comment 7 Jeff 2004-10-24 06:40:03 UTC
lm-sensors-2.8.8 also has this problem. Using CC=gcc does allow it to compile though.
Note:I'm using a standard x86 not amd64.
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-10-24 06:57:31 UTC
Everything seems completely normal. Do you have any idea on what is going wrong where?
Comment 9 Colin Macdonald 2004-10-24 14:54:08 UTC
Created attachment 42515 [details]
emerge -v info

I'm also still experiencing this bug with 2.8.8.  I have no idea whats going on
but my first guess lately (after bug #65729) is to blame bash (i'm using
3.0-r7).
Comment 10 Sebastian Spaeth 2004-10-25 03:06:42 UTC
What I noticed, is that one of my computers where the compilation runs smoothly shows CC="gcc" in the output of "emerge -v info". However, the emerge -v info on the computer where compilation fails does not show a CC=.. line at all. 
So apparently the environment variable is not being set at all! (which of course explains why a CC=gcc ... makes things work).

As to bash: the one where it does not work has bash-3.0-r7
It works on my machine which still has bash 3.0-r5.

So bash might be involved here...
Comment 11 SpanKY gentoo-dev 2004-10-25 06:38:19 UTC
this is a bug in the ebuild

i updated gcc-config not too long ago so that it doesnt export CC/CXX in the environment

the lm-sensors incorrectly use 'emake CC=${CC}' ... that's always been wrong
syntax ... the proper syntax is 'emake CC=$(tc-getCC)' after one inherit's the
toolchain-funcs.eclass
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2004-10-25 11:48:52 UTC
*** Bug 68808 has been marked as a duplicate of this bug. ***
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2004-10-25 11:53:30 UTC
Fixed in CVS, the bugfix should reach the rsync mirrors within an hour. If you still have any problems, then please reopen this bug. Thanks!