|libgrubmods.a libgrubgcry.a libgrubkern.a grub-core/gnulib/libgnu.a -lfreetype -lz -lbz2 1420 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lfreetype 1421 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lbz2 1422 collect2: ld returned 1 exit status 1423 make[2]: *** [grub-mkfont] Error 1 1424 make[2]: *** Waiting for unfinished jobs.... 1425 x86_64-pc-linux-gnu-gcc -Wall -W -Wshadow -Wold-style-declaration -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Warray-bounds -Wattributes -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered - |Wcomment -Wcoverage-mismatch -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k - |Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wunsafe-loop-optimizations -Wlogical-op -Wmain -Wmissing-braces -Wmissing-field-initializers - |Wmissing-format-attribute -Wmissing-noreturn -Wmudflap -Wmultichar -Wnonnull -Woverflow -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict- |aliasing -Wswitch -Wsync-nand -Wtrigraphs -Wtype-limits -Wundef -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile- |register-var -Wwrite-strings -Wmissing-parameter-type -Wnested-externs -Wstrict-prototypes -Wpointer-sign -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion - |Wno-old-style-definition -Wno-unsafe-loop-optimizations -static -o grub-mklayout util/grub_mklayout-grub-mklayout.o grub-core/kern/emu/grub_mklayout-argp_common.o libgrubmods.a libgrubgcry.a libgrubkern.a grub-core/gnulib/ |libgnu.a 1426 make[2]: Leaving directory `/var/tmp/portage/sys-boot/grub-9999/work/build-guessed' 1427 make[1]: *** [all-recursive] Error 1 1428 make[1]: Leaving directory `/var/tmp/portage/sys-boot/grub-9999/work/build-guessed' 1429 make: *** [all] Error 2 1430 * ERROR: sys-boot/grub-9999 failed (compile phase): 1431 * emake failed 1432 * 1433 * If you need support, post the output of 'emerge --info =sys-boot/grub-9999', 1434 * the complete build log and the output of 'emerge -pqv =sys-boot/grub-9999'. 1435 * The complete build log is located at '/var/log/portage/sys-boot:grub-9999:20120307-065916.log'. 1436 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-9999/temp/environment'. 1437 * S: '/var/tmp/portage/sys-boot/grub-9999/work/grub-9999' ~ ~ Reproducible: Always Portage 2.2.0_alpha90_p1 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.9-gentoo x86_64) ================================================================= System uname: Linux-3.2.9-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.1 Timestamp of tree: Wed, 07 Mar 2012 05:30:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3, 3.2.2 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 9999 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo mpd science wirelay scarabeus Techwolf luman nikai emacs java-overlay gnome mgorny qt poly-c lokal Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en vi" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/mpd /usr/portage/local/layman/science /usr/portage/local/layman/wirelay
Created attachment 304499 [details] /var/log/portage/sys-boot:grub-9999:20120307-065916.log
It works fine here. Do you have /usr/lib64/libbz2.so and /usr/lib64/libfreetype.so?
You have 'static' USE flag enabled when building grub, which is... Not very common. I suppose to build grub with 'static' USE flag, you need to app-arch/bzip2[static-libs] and media-libs/freetype:2[static-libs]. I will try to build it later.
thanks u i have deactivated USE="static" and it works.