Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452096 - sys-auth/otpcalc does not respect CC
Summary: sys-auth/otpcalc does not respect CC
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2013-01-14 19:57 UTC by Agostino Sarubbo
Modified: 2013-01-15 19:37 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-01-14 19:57:16 UTC
You receive this bug because this package does not respect my system's CC ( x86_64-pc-linux-gnu-gcc - /usr/bin/x86_64-pc-linux-gnu-gcc ) and calls directly gcc -/usr/bin/gcc
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"

gcc -march=native -O2 -g0 -pipe -Wall -pipe `pkg-config --cflags gtk+-2.0` -c crypto.c -DVERSION=\"0.97\" -DHAVE_CONFIG_H
gcc -march=native -O2 -g0 -pipe -Wall -pipe `pkg-config --cflags gtk+-2.0` -c gui.c -DVERSION=\"0.97\" -DHAVE_CONFIG_H
gcc -march=native -O2 -g0 -pipe -Wall -pipe `pkg-config --cflags gtk+-2.0` -c callbacks.c -DVERSION=\"0.97\" -DHAVE_CONFIG_H
gcc -march=native -O2 -g0 -pipe -Wall -pipe `pkg-config --cflags gtk+-2.0` -c utility.c -DVERSION=\"0.97\" -DHAVE_CONFIG_H
gcc -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O2 -g0 -pipe -Wall -pipe `pkg-config --cflags gtk+-2.0` crypto.o gui.o callbacks.o utility.o -o otpCalc 
`pkg-config --libs gtk+-2.0` -lcrypto -DVERSION=\"0.97\" -DHAVE_CONFIG_H
Comment 1 Ulrich Müller gentoo-dev 2013-01-14 21:26:06 UTC
The usual problem with autoconf 2.13.
Fixed, thanks.
Comment 2 Agostino Sarubbo gentoo-dev 2013-01-15 14:04:25 UTC
(In reply to comment #1)
> The usual problem with autoconf 2.13.
> Fixed, thanks.

Not fixed.
Looks at configure phase, it does the test with gcc and compiles with $CC:

checking whether the C compiler (gcc -march=native -O2 -g0 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) works... yes                                                         
checking whether the C compiler (gcc -march=native -O2 -g0 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) is a cross-compiler... no
Comment 3 Ulrich Müller gentoo-dev 2013-01-15 19:37:07 UTC
Fixed again.