Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500864 - =net-mail/notmuch-0.17 calls gcc directly
Summary: =net-mail/notmuch-0.17 calls gcc directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
Depends on:
Blocks: tc-directly 500556
  Show dependency tree
Reported: 2014-02-10 10:52 UTC by Chema Alonso Josa (RETIRED)
Modified: 2014-02-15 20:16 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 Chema Alonso Josa (RETIRED) gentoo-dev 2014-02-10 10:52:03 UTC
You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /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)"

From the build log:

gcc -c -DNOTMUCH_VERSION=0.17  -O2 -pipe -Wall -Wextra -Wwrite-strings -Wmissing-declarations  -I./compat -I./lib -fPIC -I./parse-time-string -I./util -I. -DHAVE_GETLINE=1 -D_LARGEFILE64_SOURCE -pthread -I/usr/include/gmime-2.6 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DHAVE_VALGRIND=0  -DHAVE_STRCASESTR=1 -DHAVE_STRSEP=1 -DSTD_GETPWUID=1 -DSTD_ASCTIME=1 -DHAVE_XAPIAN_COMPACT=1 -DUTIL_BYTE_ORDER=1234 command-line-arguments.c -o command-line-arguments.o -MD -MP -MF .deps/command-line-arguments.d
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-02-15 20:16:26 UTC
I've chosen second approach. Later I'll try to fix that upstream.

+  15 Feb 2014; Amadeusz Żołnowski <> notmuch-0.17.ebuild:
+  Don't call gcc directly, honor CC and CXX. Fixes bug #500864.