Opened 4 years ago

Closed 18 months ago

#61304 closed defect (fixed)

sentencepiece @0.1.84: error: expected unqualified-id

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: sentencepiece

Description

sentencepiece fails to build in C++17 mode, which is the default for newer compilers like clang 9:

/opt/local/var/macports/build/_Users_travis_build_macports_macports-ports_textproc_sentencepiece/sentencepiece/work/sentencepiece-0.1.84/version:1:1: error: expected unqualified-id
0.1.84
^

The project's version file would need to be renamed, for example to version.txt, so that it does not collide with the C++17 header <version>. If the project's version file is referenced anywhere, those references would need to be updated.

Change History (2)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Here's a logfile from Travis CI showing the problem: https://paste.macports.org/0470f3d6de7a

We don't see the problem on our buildbot because our buildbot machines use case-sensitive filesystems, but Travis uses the usual case-insensitive filesystem.

Reported issue upstream: https://github.com/google/sentencepiece/issues/583

comment:2 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

It was fixed in 0.1.95.

Note: See TracTickets for help on using tickets.