Greetings,
A while ago, I upgraded from 13.3 to 13.4 (GENERIC kernel) and noticed that whenever I upgraded the ports, most of them would fail due to the following error...
Most notably, the part pertaining to
Doing some research I saw that someone else had a similar issue and they were instructed to delete their source (/usr/src), repopulate it, then attempt to upgrade again.
I did this, deciding to upgrade to 13.5 in the process. However, I noticed after rebooting and running the last freebsd-update install, I saw these errors...
Even after the upgrade I'm still running into the same portupgrade header error originally noted above.
I came across the following bug ID (278377) that explains the issue, but it's not very helpful...
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278377
Any idea how to resolve this?
Thanks!
A while ago, I upgraded from 13.3 to 13.4 (GENERIC kernel) and noticed that whenever I upgraded the ports, most of them would fail due to the following error...
Code:
===> Building for ninja-1.11.1,4
/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
bootstrapping ninja...
"./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c ./src/browse.cc -o build/browse.o
In file included from ./src/browse.cc:21:
In file included from /usr/include/c++/v1/vector:308:
In file included from /usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /usr/include/c++/v1/__algorithm/copy_move_common.h:14:
In file included from /usr/include/c++/v1/__algorithm/unwrap_range.h:19:
In file included from /usr/include/c++/v1/__utility/pair.h:17:
/usr/include/c++/v1/__fwd/get.h:18:10: fatal error: '__tuple/tuple_element.h' file not found
18 | #include <__tuple/tuple_element.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
when running: c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c ./src/browse.cc -o build/browse.o
Traceback (most recent call last):
File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 470, in <module>
objs += cxx('browse', order_only=built('browse_py.h'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 287, in cxx
return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 169, in build
self._run_command(self._expand(cmd, local_vars))
File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 194, in _run_command
subprocess.check_call(cmdline, shell=True)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -c ./src/browse.cc -o build/browse.o' returned non-zero exit status 1.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/devel/ninja
*** Error code 1
Most notably, the part pertaining to
/usr/include/c++/v1/__fwd/get.h:18:10: fatal error: '__tuple/tuple_element.h' file not found.
Doing some research I saw that someone else had a similar issue and they were instructed to delete their source (/usr/src), repopulate it, then attempt to upgrade again.
I did this, deciding to upgrade to 13.5 in the process. However, I noticed after rebooting and running the last freebsd-update install, I saw these errors...
Code:
[carltonfsck@ssh ~]$ sudo freebsd-update install
Installing updates...install: ///usr/include/c++/v1/__tuple/INS@a10n58: No such file or directory
install: ///usr/include/c++/v1/__tuple/INS@6x8kPz: No such file or directory
install: ///usr/include/c++/v1/__tuple/INS@kH4xIZ: No such file or directory
Even after the upgrade I'm still running into the same portupgrade header error originally noted above.
I came across the following bug ID (278377) that explains the issue, but it's not very helpful...
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278377
Any idea how to resolve this?
Thanks!