llvm 4.0 on PPC64
Luciano Mannucci
luciano at vespaperitivo.it
Fri Apr 28 11:01:12 UTC 2017
It seems it doesn't compile on 11.0-RELEASE-p1. Is it a known bug?
I'm getting this from make install clean:
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In function 'bool {anonymous}::GetFileStats(const lldb_private::FileSpec*, stat*)':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:92:22: error: 'PATH_MAX' was not declared in this scope
char resolved_path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:93:26: error: 'resolved_path' was not declared in this scope
if (file_spec->GetPath(resolved_path, sizeof(resolved_path)))
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'bool lldb_private::FileSpec::ResolvePath()':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:675:17: error: 'PATH_MAX' was not declared in this scope
char path_buf[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:676:16: error: 'path_buf' was not declared in this scope
if (!GetPath(path_buf, PATH_MAX, false))
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:679:11: error: 'path_buf' was not declared in this scope
SetFile(path_buf, true);
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'bool lldb_private::FileSpec::IsSymbolicLink() const':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:718:22: error: 'PATH_MAX' was not declared in this scope
char resolved_path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:719:16: error: 'resolved_path' was not declared in this scope
if (!GetPath(resolved_path, sizeof(resolved_path)))
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:733:15: error: 'resolved_path' was not declared in this scope
if (::lstat(resolved_path, &file_stats) != 0)
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'size_t lldb_private::FileSpec::ReadFileContents(off_t, void*, size_t, lldb_private::Error*) const':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:874:22: error: 'PATH_MAX' was not declared in this scope
char resolved_path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:875:15: error: 'resolved_path' was not declared in this scope
if (GetPath(resolved_path, sizeof(resolved_path))) {
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'lldb::DataBufferSP lldb_private::FileSpec::ReadFileContents(off_t, size_t, lldb_private::Error*) const':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:906:22: error: 'PATH_MAX' was not declared in this scope
char resolved_path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:907:15: error: 'resolved_path' was not declared in this scope
if (GetPath(resolved_path, sizeof(resolved_path))) {
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'lldb::DataBufferSP lldb_private::FileSpec::ReadFileContentsAsCString(lldb_private::Error*)':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:925:22: error: 'PATH_MAX' was not declared in this scope
char resolved_path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:926:15: error: 'resolved_path' was not declared in this scope
if (GetPath(resolved_path, sizeof(resolved_path))) {
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp: In member function 'size_t lldb_private::FileSpec::ReadFileLines(STLStringArray&)':
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:945:13: error: 'PATH_MAX' was not declared in this scope
char path[PATH_MAX];
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:946:15: error: 'path' was not declared in this scope
if (GetPath(path, sizeof(path))) {
^
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:946:15: note: suggested alternative:
In file included from /usr/ports/devel/llvm40/work/llvm-4.0.0.src/tools/lldb/source/Host/common/FileSpec.cpp:44:0:
/usr/ports/devel/llvm40/work/llvm-4.0.0.src/include/llvm/Support/Path.h:25:16: note: 'llvm::sys::path'
namespace path {
^
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-vla-extension'
cc1plus: warning: unrecognized command line option '-Wno-deprecated-register'
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/devel/llvm40
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/llvm40
Thanks to all,
Luciano.
--
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy)
\ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
X AGAINST HTML MAIL / E-MAIL: posthamster at sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/
More information about the freebsd-ppc
mailing list