[
https://issues.apache.org/jira/browse/CLOWNFISH-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15793239#comment-15793239
]
Nick Wellnhofer commented on CLOWNFISH-86:
------------------------------------------
The reason is that {{go run build.go clean}} removes generated source files
like {{config.go}} or {{charmony.h}} which, starting with Go 1.5, results in a
rebuild of the CFC package. It's explained in detail here:
https://github.com/golang/proposal/blob/master/design/2775-binary-only-packages.md
With Go 1.7, it should work to flag the package as binary-only. I don't known
if there's a workaround for Go 1.5 and 1.6.
> Can't build Go runtime after cleaning CFC build
> -----------------------------------------------
>
> Key: CLOWNFISH-86
> URL: https://issues.apache.org/jira/browse/CLOWNFISH-86
> Project: Apache Lucy-Clownfish
> Issue Type: Bug
> Components: Compiler, Go
> Affects Versions: 0.5.0
> Reporter: Nick Wellnhofer
>
> When running the following commands
> {noformat}
> mkdir -p gotest/src/git-wip-us.apache.org/repos/asf
> ln -s `pwd` \
> gotest/src/git-wip-us.apache.org/repos/asf/lucy-clownfish.git
> export GOPATH="$(pwd)/gotest"
> cd compiler/go
> go run build.go test
> go run build.go install
> go run build.go clean
> cd ../../runtime/go
> go run build.go test
> {noformat}
> the runtime build fails with
> {noformat}
> # git-wip-us.apache.org/repos/asf/lucy-clownfish.git/compiler/go/cfc
> ../../gotest/src/git-wip-us.apache.org/repos/asf/lucy-clownfish.git/compiler/go/cfc/cfc.go:21:18:
> fatal error: CFC.h: No such file or directory
> // #include "CFC.h"
> ^
> compilation terminated.
> {noformat}
> The same happens when building Lucy after cleaning the CFC build. This used
> to work with Go 1.3 and broke with Go 1.5 (Ubuntu).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)