Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145167 - stale ccache wrapper makes configure fail - error: C compiler cannot create executables
Summary: stale ccache wrapper makes configure fail - error: C compiler cannot create e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
: 145946 147289 151002 157648 163757 172180 179753 (view as bug list)
Depends on: 159527
Blocks:
  Show dependency tree
 
Reported: 2006-08-26 05:02 UTC by Matteo Spreafico
Modified: 2007-05-25 14:12 UTC (History)
11 users (show)

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


Attachments
emerge --info (emerge.info,9.48 KB, text/plain)
2006-08-26 05:03 UTC, Matteo Spreafico
Details
config.log (config.log,6.26 KB, text/plain)
2006-08-26 05:04 UTC, Matteo Spreafico
Details
ccache-2.4-r5.ebuild.diff (ccache-2.4-r5.ebuild.diff,1.78 KB, patch)
2006-09-13 13:24 UTC, Jakub Moc (RETIRED)
Details | Diff
ccache-2.4-r5.ebuild (ccache-2.4-r5.ebuild,2.34 KB, text/plain)
2006-09-13 13:36 UTC, Jakub Moc (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Spreafico 2006-08-26 05:02:15 UTC
>>> Emerging (1 of 2) sci-libs/netcdf-3.6.1 to /
 * netcdf-3.6.1.tar.gz MD5 ;-) ...                                                                                                                           [ ok ]
 * netcdf-3.6.1.tar.gz RMD160 ;-) ...                                                                                                                        [ ok ]
 * netcdf-3.6.1.tar.gz SHA1 ;-) ...                                                                                                                          [ ok ]
 * netcdf-3.6.1.tar.gz SHA256 ;-) ...                                                                                                                        [ ok ]
 * netcdf-3.6.1.tar.gz size ;-) ...                                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                       [ ok ]
 * checking netcdf-3.6.1.tar.gz ;-) ...                                                                                                                      [ ok ]
 * You need one of these Fortran Compilers: gfortran ifc g77
 * Installed are:  gfortran
>>> Unpacking source...
>>> Unpacking netcdf-3.6.1.tar.gz to /var/tmp/portage/netcdf-3.6.1/work
 * Applying fPIC.patch ...                                                                                                                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src ...
 * econf: updating netcdf-3.6.1/src/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating netcdf-3.6.1/src/config.guess with /usr/share/gnuconfig/config.guess
 * disabling confcache, binary cannot be found
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib CPPFLAGS=-DpgiFortran --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
configure: netCDF 3.6.1
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether configure should try to set compiler flags... no
checking whether netCDF is to be built in 64-bit mode... no
checking where to put large files... .
checking for top-level source-directory... /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src
checking for x86_64-pc-linux-gnu-pathcc... no
checking for x86_64-pc-linux-gnu-xlc... no
checking for x86_64-pc-linux-gnu-icc... no
checking for x86_64-pc-linux-gnu-cc... x86_64-pc-linux-gnu-cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/config.log

!!! ERROR: sci-libs/netcdf-3.6.1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  netcdf-3.6.1.ebuild, line 43:   Called econf 'CPPFLAGS=-DpgiFortran'
  ebuild.sh, line 539:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Matteo Spreafico 2006-08-26 05:03:19 UTC
Created attachment 95123 [details]
emerge --info
Comment 2 Matteo Spreafico 2006-08-26 05:04:00 UTC
Created attachment 95124 [details]
config.log
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-26 05:16:13 UTC
Remove the junk x86_64-pc-linux-gnu-cc ccache wrapper that just shouldn't be there.

Comment 4 Matteo Spreafico 2006-08-26 08:12:04 UTC
After unmerging ccache it's works if I use "USE=-fortran". With fortran USE flag enabled I've got this error:

make[1]: Entering directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src'

Making `all' in directory /var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/fortran

make[2]: Entering directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/fortran'
x86_64-pc-linux-gnu-gcc -c -march=athlon64 -O3 -ftracer -pipe -msse3 -I.. -I../libsrc   fort-attio.c
In file included from ncfortran.h:13,
                 from fort-attio.c:6:
cfortran.h:138:3: error: #error "cfortran.h:  Can't find your environment among:    - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)         - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000         - VAX   VMS CC 3.1 and FORTRAN 5.4.                                      - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.                               - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2              - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.                - CRAY                                                                   - NEC SX-4 SUPER-UX                                                      - CONVEX                                                                 - Sun                                                                    - PowerStation Fortran with Visual C++                                   - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730        - LynxOS: cc or gcc with f2c.                                            - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.                 -            f77 with vcc works; but missing link magic for f77 I/O.     -            NO fort. None of gcc, cc or vcc generate required names.    - f2c    : Use #define    f2cFortran, or cc -Df2cFortran                 - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran              - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran     - Absoft Pro Fortran: Use #define AbsoftProFortran     - Portland Group Fortran: Use #define pgiFortran     - PathScale Fortran: Use #define PATHSCALE_COMPILER"
make[2]: *** [fort-attio.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src/fortran'
make[1]: *** [subdir_target] Error 1
make[1]: Leaving directory `/var/tmp/portage/netcdf-3.6.1/work/netcdf-3.6.1/src'
make: *** [fortran/all] Error 2

!!! ERROR: sci-libs/netcdf-3.6.1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  netcdf-3.6.1.ebuild, line 45:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 5 Matteo Spreafico 2006-08-26 08:13:56 UTC
I'm sorry, with USE="-fortran" I've got the error, with USE="fortran" it works.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-08-26 08:46:23 UTC
(In reply to comment #4)
> After unmerging ccache it's works if I use "USE=-fortran". With fortran USE
> flag enabled I've got this error:

Unrelated, file a new bug.

Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2006-08-28 08:02:31 UTC
+1 from me. This error scared me at first. Thought I broke my compiler.  ;)
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-09-02 01:26:42 UTC
*** Bug 145946 has been marked as a duplicate of this bug. ***
Comment 9 Gergan Penkov 2006-09-02 11:08:02 UTC
ccache should handle the links in src_install and not in pkg_postinstall and it should also not include the cc-links as SpanKY already pointed out here http://bugs.gentoo.org/show_bug.cgi?id=143205#c15
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 03:38:34 UTC
*** Bug 147289 has been marked as a duplicate of this bug. ***
Comment 11 Lisa Seelye (RETIRED) gentoo-dev 2006-09-13 03:21:55 UTC
This should be fixed in 2.4-r3. Please test it.
Comment 12 Sascha Lucas 2006-09-13 05:44:02 UTC
(In reply to comment #11)
> This should be fixed in 2.4-r3. Please test it.

symlinks in /usr/lib/ccache/bin/* are now in pkg-db. but the old stale links cc and i686-pc-linux-gnu-cc were not removed.

BTW: the new links ... should'n they point to ccache?
# ls -al /usr/lib/ccache/bin
lrwxrwxrwx 1 root root  12 Sep 13 14:01 c++ -> /usr/bin/c++
lrwxrwxrwx 1 root root  15 Jun 14 12:20 cc -> /usr/bin/ccache
lrwxrwxrwx 1 root root  12 Sep 13 14:01 g++ -> /usr/bin/g++
lrwxrwxrwx 1 root root  12 Sep 13 14:01 gcc -> /usr/bin/gcc
lrwxrwxrwx 1 root root  30 Sep 13 14:01 i686-pc-linux-gnu-c++ -> /usr/bin/i686-pc-linux-gnu-c++
lrwxrwxrwx 1 root root  15 Jun 14 12:20 i686-pc-linux-gnu-cc -> /usr/bin/ccache
lrwxrwxrwx 1 root root  30 Sep 13 14:01 i686-pc-linux-gnu-g++ -> /usr/bin/i686-pc-linux-gnu-g++
lrwxrwxrwx 1 root root  30 Sep 13 14:01 i686-pc-linux-gnu-gcc -> /usr/bin/i686-pc-linux-gnu-gcc
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 06:38:09 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > This should be fixed in 2.4-r3. Please test it.
> 
> symlinks in /usr/lib/ccache/bin/* are now in pkg-db. but the old stale links cc
> and i686-pc-linux-gnu-cc were not removed.

Should be fixed in -r4. If you get still get collisions there and/or the stale wrappers are not removed, see Bug 147446.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 06:41:34 UTC
(In reply to comment #12)
> BTW: the new links ... should'n they point to ccache?

Oooops, lisa will commit -r5 shortly. :)
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 13:24:35 UTC
Created attachment 96897 [details, diff]
ccache-2.4-r5.ebuild.diff

- OK, no collisions, stale symlinks killed, working ccache symlinks created. Enjoy! ;)
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 13:36:38 UTC
Created attachment 96901 [details]
ccache-2.4-r5.ebuild

Better to attach a complete ebuild (nuked one line in the patch above by mistake)
Comment 17 Lisa Seelye (RETIRED) gentoo-dev 2006-09-13 17:14:18 UTC
fixed in cvs. sorry for the delay.
Comment 18 Lisa Seelye (RETIRED) gentoo-dev 2006-09-15 02:32:13 UTC
okay, this time i mean it.
fixed in cvs.
Comment 19 FieldySnuts 2006-09-26 20:28:18 UTC
Appologies for my confusion... Between all the bugs which are marked dupe of this one and the various comments, I am not fully sure what to do to resolve this issue, with specifically sys-libs/db-4.3.29-r2.

I have tried:
 1) emerge db
 2) FEATURES="-ccache" db
 3) unmerge ccache, try 1 and 2 again
 4) emerge x86 stable ccache (2.3 at this time), try 1 and 2 again
 4) emerge ccache 2.4-r6, try 1 and 2 again

With no change. I see this is marked as resolved fixed, but I still see the issue. What do I as an end user do to get past this?

Portage 2.1.2_pre1-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-ifc i686)
=================================================================
System uname: 2.6.18-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz
Last Sync: Tue, 26 Sep 2006 18:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/X11/xkb /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/"
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-10-12 06:29:16 UTC
*** Bug 151002 has been marked as a duplicate of this bug. ***
Comment 21 Simon Farnsworth 2006-10-22 03:17:39 UTC
(In reply to comment #19)
> Appologies for my confusion... Between all the bugs which are marked dupe of
> this one and the various comments, I am not fully sure what to do to resolve
> this issue, with specifically sys-libs/db-4.3.29-r2.
> 
I had a similar stale symlink error from distcc (which uses the same technique as ccache to intercept compiler calls).

To track down the stale symlink, I used 'find /usr -name i686-pc-linux-gnu-cc" (where i686-pc-linux-gnu-cc was the compiler that configure had found just before it died). This found me a symlink in /usr/lib/distcc/bin that didn't work.
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-12-09 15:39:14 UTC
*** Bug 157648 has been marked as a duplicate of this bug. ***
Comment 23 Jakub Moc (RETIRED) gentoo-dev 2007-01-25 15:56:17 UTC
*** Bug 163757 has been marked as a duplicate of this bug. ***
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2007-03-25 15:36:27 UTC
*** Bug 172180 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2007-05-25 14:12:24 UTC
*** Bug 179753 has been marked as a duplicate of this bug. ***