Bug 201253 - graphics/qgis: build failure on 10.1/amd64 with default options.
Summary: graphics/qgis: build failure on 10.1/amd64 with default options.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Martin Wilke
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2015-07-01 15:58 UTC by gwright
Modified: 2016-01-16 07:25 UTC (History)
2 users (show)

See Also:
rhurlin: maintainer-feedback+


Attachments
Log of the failed qgis build. (107.86 KB, text/plain)
2015-07-01 15:58 UTC, gwright
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gwright 2015-07-01 15:58:53 UTC
Created attachment 158224 [details]
Log of the failed qgis build.

graphics/qgis fails to build on 10.1/amd64 with the default options (PostGIS & Python support).

This is for qgis 2.10.0, but 2.8.2 failed the same way.  There is a file of context sensitive help messages (src/core/qgscontexthelp_texts.cpp) that is apparently syntactically incorrect.  This file is automatically generated as part of the build, which indicates some sort of toolchain problem. Since the package build works, perhaps we can compare exactly which tools/versions are used.

The build log up to the error is attached.

Setting MAKE_JOBS_UNSAFE=yes as suggested in the error message had no effect.
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2015-07-02 17:27:13 UTC
Many thanks for your report.

From time to time I also had this problem with 'src/core/qgscontexthelp_texts.cpp:11:88'. Interestingly enough, line 11 is changing from build to build, i.e.

---
gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate( "context_help", "^\n"

gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate( "context_help", "¸`ô\n"

gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate( "context_help", "(\n"

gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate( "context_help", "w½\n"
---

I will try to find a solution with the upstream devs. Until then it may help to do 'make clean && make build' as a workaround. For me, most 'versions' of qgscontexthelp_texts.cpp do build, even though they are not correct ...
Comment 2 gwright 2015-07-02 21:14:28 UTC
Hi Rainer,

Thank you for looking into this.

I just tried "make clean && make build" with the same result: the build failed with an error making src/core/qgscontexthelp_texts.cpp.  Could this be an internationalization problem?  Perhaps there are characters in the context help strings that are not recognized.

In my environment I have

LANG=en_US.UTF-8

When I open the file src/core/qgscontexthelp_texts.cpp in vim, I see the message:

Conversion error on line 11
Press any key to continue:

If I look at the file with "od -a" I see the site of the error:

gContextHelpTexts.insert( "CmakeFiles", QCoreApplication::translate( "context_help", <97>{<0d><0d><0c>\n"
"") );

The hex values in angle brackets are the uninterpreted characters.

Hope this helps.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2016-01-16 07:25:45 UTC
This should be fixed.