Phylum

Gentoo genkernel all issue

Jun 23rd, 2011
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.93 KB | None | 0 0
  1. #####################################################
  2. ## For you Googlers or those who stumble on this ##
  3. ## Every time I go through this process my box ##
  4. ## won't boot. I MUST be doing something wrong ##
  5. ## but even after 6 attempts, I'm tripping over ##
  6. ## the same issue. I'm 'too close' or 'too ##
  7. ## focused' on the project that eyes can't see ##
  8. ## my mistake. ##
  9. ## Any assistance is very much appercicated! ##
  10. ## I have documented my installation process here ##
  11. ## http://pastebin.com/Hp0Cnecv ##
  12. ## It's just a condensed version of the handbook ##
  13. ## documenting every command step by step. ##
  14. #####################################################
  15.  
  16. #####################################################
  17. ## Update: The boot issue (near the end) requires ##
  18. ## some manual fixing during the installation ##
  19. ## (read: while in the LiveCD environment) or ##
  20. ## after you did everything; just boot from the ##
  21. ## LiveCD again See the OpenRC Fixes here: ##
  22. ## http://xrl.us/openrc ##
  23. #####################################################
  24.  
  25.  
  26. (chroot) livecd / # gcc -v
  27. Using built-in specs.
  28. Target: x86_64-pc-linux-gnu
  29. Configured with: /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/python --enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.5 p1.2, pie-0.4.5'
  30. Thread model: posix
  31. gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)
  32.  
  33. (chroot) livecd / # cat /etc/make.conf
  34. # These settings were set by the catalyst build script that automatically
  35. # built this stage.
  36. # Please consult /usr/share/portage/config/make.conf.example for a more
  37. # detailed example.
  38. CFLAGS="-march=native -mtune=generic -O2 -pipe"
  39. CXXFLAGS="${CFLAGS}"
  40. # WARNING: Changing your CHOST is not something that should be done lightly.
  41. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  42. CHOST="x86_64-pc-linux-gnu"
  43. # These are the USE flags that were used in addition to what is provided by the
  44. # profile used for building.
  45. USE="mmx sse sse2 -gtk -gnome -qt4 -kde -dvd -alsa -cdr"
  46. MAKEOPTS="-j2"
  47.  
  48. GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
  49.  
  50. SYNC="rsync://rsync26.us.gentoo.org/gentoo-portage"
  51.  
  52. (chroot) livecd / # zcat /proc/config.gz > /usr/share/genkernel/arch/x86_64/kernel-config
  53. (chroot) livecd / # genkernel --menuconfig all
  54. * Gentoo Linux Genkernel; Version 3.4.10.907
  55. * Running with options: --menuconfig all
  56.  
  57. grep: /usr/src/linux/.config: No such file or directory
  58. * Linux Kernel 2.6.38-gentoo-r6 for x86_64...
  59. * kernel: >> Running mrproper...
  60. * config: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
  61. * Previous config backed up to .config.bak
  62. * >> Running oldconfig...
  63. * kernel: >> Cleaning...
  64. * config: >> Invoking menuconfig...
  65. #
  66. # configuration written to .config
  67. #
  68.  
  69.  
  70. *** End of the configuration.
  71. *** Execute 'make' to start the build or try 'make help'.
  72.  
  73. * >> Compiling 2.6.38-gentoo-r6 bzImage...
  74. * >> Compiling 2.6.38-gentoo-r6 modules...
  75. * ERROR: Failed to compile the "modules_install" target...
  76.  
  77. * -- Grepping log... --
  78.  
  79. SHIPPED scripts/genksyms/parse.h
  80. SHIPPED scripts/genksyms/keywords.c
  81. SHIPPED scripts/genksyms/parse.c
  82. HOSTCC scripts/genksyms/lex.o
  83. scripts/genksyms/lex.c: In function 'yylex1':
  84. scripts/genksyms/lex.l:97: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
  85. --
  86. CC drivers/base/driver.o
  87. CC fs/lockd/xdr.o
  88. CC drivers/base/class.o
  89. CC drivers/base/platform.o
  90. CC fs/lockd/grace.o
  91. drivers/base/platform.c:645: warning: 'platform_legacy_suspend' defined but not used
  92. drivers/base/platform.c:657: warning: 'platform_legacy_resume' defined but not used
  93. CC fs/lockd/clnt4xdr.o
  94. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  95. --
  96. CC fs/reiserfs/dir.o
  97. CC drivers/pci/pci.o
  98. CC fs/reiserfs/fix_node.o
  99. CC drivers/pci/pci-driver.o
  100. CC fs/reiserfs/super.o
  101. drivers/pci/pci-driver.c:456: warning: 'pci_pm_default_resume_early' defined but not used
  102. drivers/pci/pci-driver.c:500: warning: 'pci_legacy_suspend' defined but not used
  103. drivers/pci/pci-driver.c:527: warning: 'pci_legacy_suspend_late' defined but not used
  104. drivers/pci/pci-driver.c:558: warning: 'pci_legacy_resume_early' defined but not used
  105. drivers/pci/pci-driver.c:567: warning: 'pci_legacy_resume' defined but not used
  106. drivers/pci/pci-driver.c:580: warning: 'pci_pm_default_resume' defined but not used
  107. drivers/pci/pci-driver.c:588: warning: 'pci_pm_default_suspend' defined but not used
  108. drivers/pci/pci-driver.c:595: warning: 'pci_has_legacy_pm_support' defined but not used
  109. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  110. --
  111. LD fs/xfs/xfs.o
  112. LD fs/xfs/built-in.o
  113. CC fs/eventpoll.o
  114. CC drivers/video/sysfillrect.o
  115. fs/eventpoll.c: In function 'ep_poll':
  116. fs/eventpoll.c:1143: warning: 'slack' may be used uninitialized in this function
  117. At top level:
  118. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  119. --
  120. LD net/sunrpc/auth_gss/built-in.o
  121. LD net/sunrpc/built-in.o
  122. LD net/built-in.o
  123. LD vmlinux.o
  124. MODPOST vmlinux.o
  125. WARNING: modpost: Found 7 section mismatch(es).
  126. --
  127. CC [M] fs/gfs2/glock.o
  128. CC [M] fs/gfs2/glops.o
  129. CC [M] fs/gfs2/inode.o
  130. CC [M] crypto/aes_generic.o
  131. fs/gfs2/inode.c: In function 'gfs2_lookup_by_inum':
  132. fs/gfs2/inode.c:188: warning: 'inode' may be used uninitialized in this function
  133. At top level:
  134. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  135. --
  136. CC [M] crypto/khazad.o
  137. CC [M] fs/gfs2/dentry.o
  138. CC [M] crypto/anubis.o
  139. CC [M] fs/gfs2/export.o
  140. crypto/anubis.c: In function 'anubis_crypt':
  141. crypto/anubis.c:581: warning: 'inter' is used uninitialized in this function
  142. At top level:
  143. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  144. --
  145. CC [M] fs/ocfs2/cluster/ver.o
  146. LD [M] fs/ocfs2/cluster/ocfs2_nodemanager.o
  147. CC [M] fs/ocfs2/dlm/dlmdomain.o
  148. CC [M] drivers/block/cpqarray.o
  149. drivers/block/cpqarray.c: In function 'do_ida_request':
  150. drivers/block/cpqarray.c:972: warning: the frame size of 1056 bytes is larger than 1024 bytes
  151. At top level:
  152. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  153. --
  154. CC [M] drivers/char/hw_random/virtio-rng.o
  155. CC [M] drivers/char/ipmi/ipmi_msghandler.o
  156. CC [M] sound/core/hwdep.o
  157. CC [M] sound/core/memalloc.o
  158. drivers/char/ipmi/ipmi_msghandler.c: In function 'send_panic_events':
  159. drivers/char/ipmi/ipmi_msghandler.c:4399: warning: the frame size of 1104 bytes is larger than 1024 bytes
  160. At top level:
  161. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  162. --
  163. CC [M] sound/pci/hda/patch_via.o
  164. CC [M] drivers/message/i2o/bus-osm.o
  165. CC [M] drivers/message/i2o/config-osm.o
  166. In file included from drivers/message/i2o/config-osm.c:39:
  167. drivers/message/i2o/i2o_config.c: In function 'i2o_cfg_passthru':
  168. drivers/message/i2o/i2o_config.c:881: warning: cast to pointer from integer of different size
  169. drivers/message/i2o/i2o_config.c:936: warning: cast to pointer from integer of different size
  170. CC [M] sound/pci/hda/hda_codec.o
  171. drivers/message/i2o/i2o_config.c: In function 'i2o_cfg_passthru32':
  172. drivers/message/i2o/i2o_config.c:739: warning: the frame size of 1280 bytes is larger than 1024 bytes
  173. drivers/message/i2o/i2o_config.c: In function 'i2o_cfg_passthru':
  174. drivers/message/i2o/i2o_config.c:975: warning: the frame size of 1280 bytes is larger than 1024 bytes
  175. At top level:
  176. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  177. --
  178. LD [M] sound/pci/snd-sonicvibes.o
  179. LD [M] sound/pci/snd-via82xx.o
  180. LD [M] sound/pci/snd-via82xx-modem.o
  181. CC [M] sound/pcmcia/pdaudiocf/pdaudiocf.o
  182. sound/pcmcia/pdaudiocf/pdaudiocf.c: In function 'pdacf_config':
  183. sound/pcmcia/pdaudiocf/pdaudiocf.c:226: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at include/pcmcia/ds.h:201)
  184. At top level:
  185. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  186. --
  187. CC [M] sound/pcmcia/pdaudiocf/pdaudiocf_pcm.o
  188. CC [M] drivers/net/acenic.o
  189. LD [M] sound/pcmcia/pdaudiocf/snd-pdaudiocf.o
  190. CC [M] sound/pcmcia/vx/vxpocket.o
  191. sound/pcmcia/vx/vxpocket.c: In function 'vxpocket_config':
  192. sound/pcmcia/vx/vxpocket.c:232: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at include/pcmcia/ds.h:201)
  193. At top level:
  194. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  195. --
  196. CC [M] drivers/net/e1000e/phy.o
  197. CC [M] net/mac80211/spectmgmt.o
  198. CC [M] net/mac80211/tx.o
  199. CC [M] drivers/net/e1000e/param.o
  200. net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
  201. net/mac80211/tx.c:1753: warning: unused variable 'mppath'
  202. CC [M] drivers/net/e1000e/ethtool.o
  203. At top level:
  204. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  205. --
  206. LD [M] lib/lzo/lzo_compress.o
  207. LD [M] lib/lzo/lzo_decompress.o
  208. CC [M] lib/raid6/algos.o
  209. CC [M] drivers/net/pcmcia/nmclan_cs.o
  210. drivers/net/pcmcia/nmclan_cs.c: In function 'nmclan_config':
  211. drivers/net/pcmcia/nmclan_cs.c:628: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at include/pcmcia/ds.h:201)
  212. CC [M] lib/raid6/recov.o
  213. At top level:
  214. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  215. --
  216. CC [M] drivers/net/vxge/vxge-ethtool.o
  217. CC [M] drivers/net/usb/dm9601.o
  218. CC [M] drivers/net/vxge/vxge-main.o
  219. CC [M] drivers/net/usb/smsc75xx.o
  220. drivers/net/vxge/vxge-main.c: In function 'vxge_tx_msix_handle':
  221. drivers/net/vxge/vxge-main.c:2150: warning: the frame size of 1040 bytes is larger than 1024 bytes
  222. CC [M] drivers/net/usb/smsc95xx.o
  223. drivers/net/vxge/vxge-main.c: In function 'vxge_poll_inta':
  224. drivers/net/vxge/vxge-main.c:1844: warning: the frame size of 1072 bytes is larger than 1024 bytes
  225. At top level:
  226. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  227. --
  228. CC [M] drivers/net/wan/wanxl.o
  229. CC [M] drivers/net/wireless/airo.o
  230. CC [M] drivers/scsi/scsi_transport_srp.o
  231. CC [M] drivers/scsi/iscsi_boot_sysfs.o
  232. CC [M] drivers/scsi/advansys.o
  233. drivers/scsi/advansys.c:72:2: warning: #warning this driver is still not properly converted to the DMA API
  234. --
  235. CC [M] drivers/scsi/ips.o
  236. CC [M] drivers/net/wireless/ray_cs.o
  237. CC [M] drivers/net/wireless/wl3501_cs.o
  238. CC [M] drivers/scsi/fdomain.o
  239. drivers/net/wireless/wl3501_cs.c: In function 'wl3501_mgmt_scan_confirm':
  240. drivers/net/wireless/wl3501_cs.c:656: warning: 'sig' is used uninitialized in this function
  241. At top level:
  242. cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
  243. --
  244. CC [M] drivers/virtio/virtio_balloon.o
  245. CC [M] drivers/xen/platform-pci.o
  246. LD [M] drivers/xen/xen-platform-pci.o
  247. Building modules, stage 2.
  248. MODPOST 834 modules
  249. WARNING: modpost: Found 1 section mismatch(es).
  250. --
  251. INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
  252. make[1]: *** No rule to make target `/lib/firmware/./', needed by `/lib/firmware/atmsar11.fw'. Stop.
  253. make[1]: *** Waiting for unfinished jobs....
  254. MKDIR /lib/firmware/acenic/
  255. MKDIR /lib/firmware/adaptec/
  256. make: *** [_modinst_post] Error 2
  257. * Gentoo Linux Genkernel; Version 3.4.10.907
  258. * Running with options: --menuconfig all
  259.  
  260. * ERROR: Failed to compile the "modules_install" target...
  261.  
  262. * -- End log... --
  263.  
  264. * Please consult /var/log/genkernel.log for more information and any
  265. * errors that were reported above.
  266.  
  267. * Report any genkernel bugs to bugs.gentoo.org and
  268. * assign your bug to [email protected]. Please include
  269. * as much information as you can in your bug report; attaching
  270. * /var/log/genkernel.log so that your issue can be dealt with effectively.
  271. *
  272. * Please do *not* report compilation failures as genkernel bugs!
  273.  
  274.  
  275. ################################################
  276. ## /var/log/genkernel.log can be found here ##
  277. ## http://paste.pocoo.org/show/419307/ ##
  278. ################################################
  279.  
  280. ####################################################################
  281. ## Here I try again (back-to-back with no configuration changes) ##
  282. ## And suddenly it completes error free ##
  283. ####################################################################
  284. (chroot) livecd / # genkernel --menuconfig all
  285. * Gentoo Linux Genkernel; Version 3.4.10.907
  286. * Running with options: --menuconfig all
  287.  
  288. * Linux Kernel 2.6.38-gentoo-r6 for x86_64...
  289. * kernel: >> Running mrproper...
  290. * config: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
  291. * Previous config backed up to .config.bak
  292. * >> Running oldconfig...
  293. * kernel: >> Cleaning...
  294. * config: >> Invoking menuconfig...
  295. #
  296. # configuration written to .config
  297. #
  298.  
  299.  
  300. *** End of the configuration.
  301. *** Execute 'make' to start the build or try 'make help'.
  302.  
  303. * >> Compiling 2.6.38-gentoo-r6 bzImage...
  304. * >> Compiling 2.6.38-gentoo-r6 modules...
  305. * Copying config for successful build to /etc/kernels/kernel-config-x86_64-2.6.38-gentoo-r6
  306. * e2fsprogs: >> Configuring...
  307. * e2fsprogs: >> Compiling...
  308. * blkid: >> Copying to cache...
  309. * busybox: >> Applying patches...
  310. * busybox: >> Configuring...
  311. * busybox: >> Compiling...
  312. * busybox: >> Copying to cache...
  313. * initramfs: >> Initializing...
  314. * >> Appending base_layout cpio data...
  315. * >> Appending auxilary cpio data...
  316. * >> Appending busybox cpio data...
  317. * >> Appending modules cpio data...
  318. * >> Appending blkid cpio data...
  319. *
  320. * Kernel compiled successfully!
  321. *
  322. * Required Kernel Parameters:
  323. * real_root=/dev/$ROOT
  324. *
  325. * Where $ROOT is the device node for your root partition as the
  326. * one specified in /etc/fstab
  327. *
  328. * If you require Genkernel's hardware detection features; you MUST
  329. * tell your bootloader to use the provided INITRAMFS file. Otherwise;
  330. * substitute the root argument for the real_root argument if you are
  331. * not planning to use the initramfs...
  332.  
  333. * WARNING... WARNING... WARNING...
  334. * Additional kernel cmdline arguments that *may* be required to boot properly...
  335.  
  336. * Do NOT report kernel bugs as genkernel bugs unless your bug
  337. * is about the default genkernel configuration...
  338. *
  339. * Make sure you have the latest genkernel before reporting bugs.
  340.  
  341. # After that's all said and done I exit the chrooted environment
  342. # The system complains that shm was not mounted (?)
  343. # And after I reboot I get this error during the boot sequence
  344.  
  345. #######################################
  346. ## Update: See http://xrl.us/openrc ##
  347. #######################################
  348.  
  349. >> Activating mdev
  350. >> Determining root device...
  351. >> Mounting root...
  352. >> Booting (initramfs)>> ERROR: your real /dev is missing files required to boot (console and null)..
  353. switch_root: can't open '/dev/console': No such file or directory
  354. Kernel panic - not syncing: Attempting to kill init!
  355. Pid: 1, comm: switch_root Not tainted 2.6.38-gentoo-r6 #1
  356.  
  357. # Again, my step-by-step process is here http://pastebin.com/Hp0Cnecv
Advertisement
Add Comment
Please, Sign In to add comment