Date: Fri, 28 Apr 2017 12:51:12 +0200 From: Luciano Mannucci <luciano@vespaperitivo.it> To: freebsd-ppc@freebsd.org Subject: llvm 4.0 on PPC64 Message-ID: <3wDrG96NhDzRRrV@baobab.bilink.it>
next in thread | raw e-mail | index | archive | help
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@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3wDrG96NhDzRRrV>