Bug 260808 - graphics/opencollada poudriere build on stable 13 amd64 fails with fatal error: 'tr1/unordered_map' file not found
Summary: graphics/opencollada poudriere build on stable 13 amd64 fails with fatal erro...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-29 22:04 UTC by Robert Cina
Modified: 2022-03-25 14:35 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Patch for common/libBuffer/include/CommonFWriteBufferFlusher.h (669 bytes, patch)
2022-01-09 21:05 UTC, Trond Endrestøl
no flags Details | Diff
proposal patch for graphics/opencollada (1.09 KB, patch)
2022-01-24 08:48 UTC, Tatsuki Makino
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2021-12-29 22:04:26 UTC
The port graphics/opencollada fails to build for me using poudriere on stable 13 amd64 with fatal error: 'tr1/unordered_map' file not found.

The build log of the error:

In file included from /wrkdirs/usr/ports/graphics/opencollada/work/OpenCOLLADA-1.6.68/common/libBuffer/src/CommonFWriteBufferFlusher.cpp:11:
/wrkdirs/usr/ports/graphics/opencollada/work/OpenCOLLADA-1.6.68/common/libBuffer/include/CommonFWriteBufferFlusher.h:23:11: fatal error: 'tr1/unordered_map' file not found
#       include <tr1/unordered_map>
                ^~~~~~~~~~~~~~~~~~~
1 error generated.
Comment 1 Trond Endrestøl 2022-01-09 21:05:40 UTC
Created attachment 230852 [details]
Patch for common/libBuffer/include/CommonFWriteBufferFlusher.h
Comment 2 Tatsuki Makino 2022-01-10 22:48:18 UTC
It also happens on FreeBSD 12.3-STABLE 1203505 amd64. (stable/12-n234674-e7a6dc01fac7-dirty)
cc -v returns
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
Target: x86_64-unknown-freebsd12.3
Thread model: posix
InstalledDir: /usr/bin
Comment 3 Tatsuki Makino 2022-01-24 08:48:15 UTC
Created attachment 231262 [details]
proposal patch for  graphics/opencollada

(In reply to Trond.Endrestol from comment #1)

How about this?
Comment 4 Trond Endrestøl 2022-01-24 11:36:21 UTC
(In reply to Tatsuki Makino from comment #3)
It looks good and might be accepted upstream. It's certainly better than my quick and dirty patch.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-03-25 13:51:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4fda63ef69a8fc2c1f67922fa47bb31533383ccf

commit 4fda63ef69a8fc2c1f67922fa47bb31533383ccf
Author:     Tatsuki Makino <tatsuki_makino@hotmail.com>
AuthorDate: 2022-03-25 13:12:28 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:02 +0000

    graphics/opencollada: Fix build with Clang 13+

    PR:             260808
    Reported by:    Robert Cina <transitive@gmail.com>

 graphics/opencollada/files/patch-clang13 (new) | 11 +++++++++++
 1 file changed, 11 insertions(+)
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-03-25 14:35:24 UTC
Committed. Thanks!