You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Nick Wellnhofer (JIRA)" <ji...@apache.org> on 2016/11/29 10:23:58 UTC

[lucy-issues] [jira] [Commented] (CLOWNFISH-111) Compilation fails with ccache (Clownfish-0.6.0.4)

    [ https://issues.apache.org/jira/browse/CLOWNFISH-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704909#comment-15704909 ] 

Nick Wellnhofer commented on CLOWNFISH-111:
-------------------------------------------

{{ccache cc}} is split into compiler command {{ccache}} and compiler option {{cc}}. The compiler options passed to charmonizer end up after other options. This is by design and can't be changed. Instead, we should treat the whole string in {{$Config\{cc\}}} as compiler command.

> Compilation fails with ccache (Clownfish-0.6.0.4)
> -------------------------------------------------
>
>                 Key: CLOWNFISH-111
>                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-111
>             Project: Apache Lucy-Clownfish
>          Issue Type: Bug
>          Components: Perl
>         Environment: FreebSD 9.2, ccache version 3.1.10, perl 5.18.4
>            Reporter: Slaven Rezic
>
> I see the following build failure:
> {noformat}
> ...
> Running ./charmonizer...
> ./charmonizer --cc=ccache --host=perl --enable-c --enable-perl --make=make --enable-makefile --disable-threads -- cc -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/perl5.18.4p/lib/5.18.4/amd64-freebsd/CORE
> ...
> ccache -pedantic -Wall -Wextra -Wno-variadic-macros -DPERL_GCC_PEDANTIC -std=gnu99 -D_GNU_SOURCE -fvisibility=hidden -DCFISH_NOTHREADS  -O2 -g -fno-strict-aliasing -I . -I cfcore -I autogen/include  cc -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/perl5.18.4p/lib/5.18.4/amd64-freebsd/CORE -fPIC -D CFP_CFISH cfcore/Clownfish.c -c -o cfcore/Clownfish.o
> ccache: invalid option -- p
> Usage:
>     ccache [options]
>     ccache compiler [compiler options]
>     compiler [compiler options]          (via symbolic link)
> ...
> {noformat}
> At least on this system ccache has to be called with the C compiler as 1st parameter, i.e. {{ccache cc ...}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)