On Thu, Jan 17, 2019 at 11:48:08AM -0500, Brad Smith wrote: > On Wed, Jan 16, 2019 at 07:19:17PM -0500, Brad Smith wrote: > > Here is a work in progress diff to update the LLVM/Clang port to > > LLVM 7.0.1. > >=20 > > Code generation is broken at the moment on amd64. I don't know what > > the issue is. Clang crashes in the X86 backend. This only seems to > > affect amd64. > >=20 > > Any feedback and testing welcome. >=20 > Thanks to the diff jca@ forwarded over from mortimer@ it resolved the > crashing issue and the other question I had regarding the exact line > of code I was questioning how I merged. >=20 > Now things appear to be good on amd64.
This doesn't build on amd64 here: FAILED: tools/lldb/source/Target/CMakeFiles/lldbTarget.dir/Platform.cpp.o= =20 /usr/ports/pobj/llvm-7.0.1/bin/c++ -DHAVE_ROUND -DLLDB_CONFIGURATION_RELEA= SE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I= tools/lldb/source/Target -I/usr/ports/pobj/llvm-7.0.1/llvm-7.0.1.src/tools/= lldb/source/Target -Itools/lldb/include -I/usr/ports/pobj/llvm-7.0.1/llvm-7= =2E0.1.src/tools/lldb/include -Iinclude -I/usr/ports/pobj/llvm-7.0.1/llvm-7= =2E0.1.src/include -I/usr/local/include/python2.7 -I/usr/ports/pobj/llvm-7.= 0.1/llvm-7.0.1.src/tools/clang/include -Itools/lldb/../clang/include -I/usr= /ports/pobj/llvm-7.0.1/llvm-7.0.1.src/tools/lldb/source/. -O2 -pipe -fno-r= et-protector -mno-retpoline -fPIC -fvisibility-inlines-hidden -Werror=3Ddat= e-time -Werror=3Dunguarded-availability-new -std=3Dc++11 -Wall -Wextra -Wno= -unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers = -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdele= te-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sect= ions -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno= -strict-aliasing -Wno-deprecated-register -Wno-vla-extension -DNDEBUG -f= no-exceptions -MD -MT tools/lldb/source/Target/CMakeFiles/lldbTarget.dir/Pl= atform.cpp.o -MF tools/lldb/source/Target/CMakeFiles/lldbTarget.dir/Platfor= m.cpp.o.d -o tools/lldb/source/Target/CMakeFiles/lldbTarget.dir/Platform.cp= p.o -c /usr/ports/pobj/llvm-7.0.1/llvm-7.0.1.src/tools/lldb/source/Target/P= latform.cpp /usr/ports/pobj/llvm-7.0.1/llvm-7.0.1.src/tools/lldb/source/Target/Platform= =2Ecpp:448:45: error: too few arguments to function call, expected 3, have 0 m_os_version =3D HostInfo::GetOSVersion(); ~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/ports/pobj/llvm-7.0.1/llvm-7.0.1.src/tools/lldb/include/lldb/Host/open= bsd/HostInfoOpenBSD.h:20:3: note: 'GetOSVersion' declared here static bool GetOSVersion(uint32_t &major, uint32_t &minor, uint32_t &upda= te); ^ 1 error generated. ninja: build stopped: subcommand failed