Re: buildworld of HEAD failing under 8.1-RELEASE

看板FB_current作者時間12年前 (2013/05/03 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/5 (看更多)
--Apple-Mail=_842A476D-068F-4BC1-BAFE-1C4E636CF4AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On May 2, 2013, at 20:28, Ryan Stone <rysto32@gmail.com> wrote: > I am getting the following error when trying to build HEAD on an > 8.1-RELEASE build machine (i386 jail on an amd64 host): >=20 > =3D=3D=3D> lib/clang/libllvmanalysis (all) > = /usr/d2/users/rstone/git/svos/lib/clang/libllvmanalysis/../../../contrib/l= lvm/lib/Analysis/ConstantFolding.cpp: > In function 'llvm::Constant* llvm::ConstantFoldCall(llvm::Function*, > llvm::ArrayRef<llvm::Constant*>, const llvm::TargetLibraryInfo*)': > = /usr/d2/users/rstone/git/svos/lib/clang/libllvmanalysis/../../../contrib/l= lvm/lib/Analysis/ConstantFolding.cpp:1310: > error: 'log2' was not declared in this scope .... > Is there anything that I can do other than build on another machine? = I > don't control the build machines at $WORK so I'm not sure whether I = can get > them upgraded. :( In 8.1-RELEASE, there was no log2() MFC yet. Can you please try the = attached diff? --Apple-Mail=_842A476D-068F-4BC1-BAFE-1C4E636CF4AD Content-Disposition: attachment; filename=llvm-config-log2-1.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="llvm-config-log2-1.diff" Content-Transfer-Encoding: 7bit Index: lib/clang/include/llvm/Config/config.h =================================================================== --- lib/clang/include/llvm/Config/config.h (revision 250174) +++ lib/clang/include/llvm/Config/config.h (working copy) @@ -5,6 +5,9 @@ #ifndef CONFIG_H #define CONFIG_H +/* Get __FreeBSD_version */ +#include <osreldate.h> + /* Bug report URL. */ #define BUG_REPORT_URL "http://llvm.org/bugs/" @@ -248,7 +251,9 @@ #define HAVE_LOG10 1 /* Define to 1 if you have the `log2' function. */ +#if __FreeBSD_version >= 900027 || (__FreeBSD_version < 900000 && __FreeBSD_version >= 802502) #define HAVE_LOG2 1 +#endif /* Define to 1 if you have the `longjmp' function. */ #define HAVE_LONGJMP 1 --Apple-Mail=_842A476D-068F-4BC1-BAFE-1C4E636CF4AD Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --Apple-Mail=_842A476D-068F-4BC1-BAFE-1C4E636CF4AD--
文章代碼(AID): #1HWlToQQ (FB_current)
文章代碼(AID): #1HWlToQQ (FB_current)