[MacPorts] #63228: llvm-3.4 @3.4.2_14: error: LibraryDependencies.inc: No such file or directory
MacPorts
noreply at macports.org
Thu Jul 8 01:13:38 UTC 2021
#63228: llvm-3.4 @3.4.2_14: error: LibraryDependencies.inc: No such file or
directory
------------------------+----------------------
Reporter: ryandesign | Owner: kencu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: tiger | Port: llvm-3.4
------------------------+----------------------
I wasn't able to upgrade llvm-3.4 from 3.4.2_12 to 3.4.2_14 on Tiger i386
just now:
{{{
llvm[0]: Constructing LLVMBuild project information.
[snip]/llvm-3.4.2.src/utils/llvm-build/llvm-build \
--native-target "x86" \
--enable-targets "ARM PowerPC X86 " \
--enable-optional-components "" \
--write-library-table [snip]/build/tools/llvm-
config/LibraryDependencies.inc \
--write-make-fragment [snip]/build/Makefile.llvmbuild
Traceback (most recent call last):
File "[snip]/llvm-3.4.2.src/utils/llvm-build/llvm-build", line 3, in ?
import llvmbuild
File "[snip]/llvm-3.4.2.src/utils/llvm-build/llvmbuild/__init__.py",
line 1, in ?
from llvmbuild.main import main
File "[snip]/llvm-3.4.2.src/utils/llvm-build/llvmbuild/main.py", line 65
@staticmethod
^
SyntaxError: invalid syntax
for dir in lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib
tools/llvm-config tools docs unittests; do \
if ([ ! -f $dir/Makefile ] || \
command test $dir/Makefile -ot [snip]/llvm-3.4.2.src/$dir/Makefile
); then \
[snip]/llvm-3.4.2.src/autoconf/mkinstalldirs $dir; \
/bin/cp [snip]/llvm-3.4.2.src/$dir/Makefile $dir/Makefile; \
fi; \
(/opt/local/bin/gmake -C $dir all ) || exit 1; \
done
}}}
Which leads to:
{{{
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:45:35: error:
LibraryDependencies.inc: No such file or directory
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:55: error:
'AvailableComponent' was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:55: error:
template argument 1 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:56: error:
'AvailableComponent' was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:56: error:
template argument 1 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:56: error:
template argument 2 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:56: error:
template argument 3 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp: In function 'void
VisitComponent(llvm::StringRef, const int&, int&,
std::vector<llvm::StringRef, std::allocator<llvm::StringRef> >&, bool)':
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:60: error:
'AvailableComponent' was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:60: error: 'AC'
was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:60: error: request
for member 'lookup' in 'ComponentMap', which is of non-class type 'const
int'
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:64: error: request
for member 'insert' in 'VisitedComponents', which is of non-class type
'int'
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp: In function 'void
ComputeLibsForComponents(const std::vector<llvm::StringRef,
std::allocator<llvm::StringRef> >&, std::vector<llvm::StringRef,
std::allocator<llvm::StringRef> >&, bool)':
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:96: error:
'AvailableComponent' was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:96: error:
template argument 1 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:96: error:
template argument 2 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:96: error:
template argument 3 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:96: error: invalid
type in declaration before ';' token
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:99: error:
'AvailableComponent' cannot appear in a constant-expression
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:99: error:
template argument 1 is invalid
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:99: error: invalid
type in declaration before ';' token
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:100: error:
'AvailableComponents' was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:101: error: 'AC'
was not declared in this scope
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:111: error:
request for member 'count' in 'ComponentMap', which is of non-class type
'int'
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp: In function 'int
main(int, char**)':
[snip]/llvm-3.4.5.src/tools/llvm-config/llvm-config.cpp:289: error:
'AvailableComponents' was not declared in this scope
}}}
Looks like this [https://www.python.org/dev/peps/pep-0318/ function
decorator syntax] wasn't available until Python 2.4 and /usr/bin/python on
Tiger is 2.3.5.
The port already has a dependency on port:python27 (#60781) but the file
[snip]/llvm-3.4.2.src/utils/llvm-build/llvm-build has the shebang line
`#!/usr/bin/env python` which should I guess be changed to
`#!/opt/local/bin/python2.7`.
--
Ticket URL: <https://trac.macports.org/ticket/63228>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list