젠투 설치시 젠커널 컴파일 오류
안녕하세요. 리눅스를 처음으로 써보고자 하다가 막히는 부분이 있어 질문글을 올립니다.
처음에는 페도라를 설치하였다가, 주변의 권유로 인해서 젠투로 갈아타려고 하는데요.
여기에 나와있는 많은 문서들을 읽어보고 젠투가 어떠한 순서로 설치되는지 슬슬 감이 잡히기 시작합니다 (아직까지 모르는 것이 무지막지하게 많지만...)
여쭙고 싶은 내용은 아래와 같습니다.
genkernel --menuconfig all을 실행하고 아무것도 손대지 않은 상태에서 그냥 진행을 시켰습니다 (그리하는 것이 초보들한테는 좋다는 조언에 따라..)
그러면 아래와 같은 내용이 나오다가 커널 컴파일 오류가 나타납니다.
livecd / # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: --menuconfig all
* Linux Kernel 2.6.31-gentoo-r10 for x86_64...
* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
* Previous config backed up to .config.bak
* >> Running oldconfig...
* kernel: >> Cleaning...
* config: >> Invoking menuconfig...
scripts/kconfig/conf.c: In function 'conf_askvalue':
scripts/kconfig/conf.c:105: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2486:
scripts/kconfig/confdata.c: In function 'conf_write':
scripts/kconfig/confdata.c:508: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
scripts/kconfig/confdata.c: In function 'conf_write_autoconf':
scripts/kconfig/confdata.c:745: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
scripts/kconfig/confdata.c:746: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2487:
scripts/kconfig/expr.c: In function 'expr_print_file_helper':
scripts/kconfig/expr.c:1090: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
#
# configuration written to .config
#
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
* ERROR: Failed to compile the "prepare" target...
처음에는 아무것도 모른채 그냥 다 되었거니 하고 진행하였다가, 재부팅 시키니 그럽만 뜨고 아무것도 안나오더군요.
처음부터 설치하는 것을 5번째 실행하다가, 이제서야 이런 오류가 있었다는 것을 알았습니다 (다른 분들은 젠커널 하는대만 약 2-3시간 걸린다고 하길래.. 따져봤습니다).
에러 로그를 다 올리려니 너무 내용이 많기는 한데.. 보다 정확한 해결책 제시가 가능하실 거 같아 아래에 같이 붙입니다.
감사합니다.
에러 로그
* -- Grepping log... --
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function 'conf_askvalue':
scripts/kconfig/conf.c:105: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
--
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2486:
scripts/kconfig/confdata.c: In function 'conf_write':
scripts/kconfig/confdata.c:508: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
scripts/kconfig/confdata.c: In function 'conf_write_autoconf':
scripts/kconfig/confdata.c:745: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
scripts/kconfig/confdata.c:746: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2487:
scripts/kconfig/expr.c: In function 'expr_print_file_helper':
scripts/kconfig/expr.c:1090: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
.config:262:warning: symbol value 'm' invalid for ACPI_DOCK
.config:411:warning: symbol value 'm' invalid for INET_LRO
.config:778:warning: symbol value 'm' invalid for RFKILL_INPUT
.config:1219:warning: symbol value 'm' invalid for FIXED_PHY
.config:1378:warning: symbol value 'm' invalid for IWL4965
.config:1533:warning: symbol value 'm' invalid for ISDN
.config:2727:warning: symbol value 'm' invalid for GFS2_FS_LOCKING_DLM
--
*
PCI support (PCI) [Y/n/?] y
Support mmconfig PCI config space access (PCI_MMCONFIG) [Y/n] y
Support for DMA Remapping Devices (EXPERIMENTAL) (DMAR) [Y/n/?] y
Enable DMA Remapping Devices by default (DMAR_DEFAULT_ON) [Y/n/?] (NEW) Workaround broken graphics drivers (going away soon) (DMAR_BROKEN_GFX_WA) [N/y/?] (NEW) Support for Interrupt Remapping (EXPERIMENTAL) (INTR_REMAP) [N/y/?] (NEW) PCI Express support (PCIEPORTBUS) [Y/n/?] y
Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y
PCI Express ECRC settings control (PCIE_ECRC) [N/y/?] (NEW) PCIE AER error injector support (PCIEAER_INJECT) [N/m/y/?] (NEW) PCI Express ASPM support(Experimental) (PCIEASPM) [N/y/?] (NEW) Message Signaled Interrupts (MSI and MSI-X) (PCI_MSI) [Y/n/?] y
--
*
Support for SATA (deprecated; conflicts with libata SATA driver) (BLK_DEV_IDE_SATA) [N/y/?] n
generic ATA/ATAPI disk support (IDE_GD) [Y/n/m/?] (NEW) ATA disk support (IDE_GD_ATA) [Y/n/?] (NEW) ATAPI floppy support (IDE_GD_ATAPI) [N/y/?] (NEW) PCMCIA IDE support (BLK_DEV_IDECS) [M/n/?] m
Cardbus IDE support (Delkin/ASKA/Workbit) (BLK_DEV_DELKIN) [M/n/y/?] m
Include IDE/ATAPI CDROM support (BLK_DEV_IDECD) [Y/n/m/?] y
Verbose error logging for IDE/ATAPI CDROM driver (BLK_DEV_IDECD_VERBOSE_ERRORS) [Y/n/?] (NEW) Include IDE/ATAPI TAPE support (BLK_DEV_IDETAPE) [M/n/y/?] m
--
Decode registers during diagnostics (AIC79XX_REG_PRETTY_PRINT) [N/y/?] n
Adaptec AIC94xx SAS/SATA support (SCSI_AIC94XX) [M/n/y/?] m
Compile in debug mode (AIC94XX_DEBUG) [N/y/?] n
Marvell 88SE64XX/88SE94XX SAS/SATA support (SCSI_MVSAS) [N/m/y/?] (NEW) Adaptec I2O RAID support (SCSI_DPT_I2O) [N/m/y/?] (NEW) AdvanSys SCSI support (SCSI_ADVANSYS) [M/n/y/?] m
ARECA (ARC11xx/12xx/13xx/16xx) SATA/SAS RAID Host Adapter (SCSI_ARCMSR) [M/n/y/?] m
Enable PCI Error Recovery Capability in Areca Driver(ARCMSR) (SCSI_ARCMSR_AER) [N/y/?] n
--
SCSI CDROM support (BLK_DEV_SR) [Y/n/m/?] y
Enable vendor-specific extensions (for SCSI CDROM) (BLK_DEV_SR_VENDOR) [Y/n/?] y
SCSI generic support (CHR_DEV_SG) [M/n/y/?] m
SCSI media changer support (CHR_DEV_SCH) [M/n/y/?] m
Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [N/y/?] n
Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n
--
OCFS2 expensive checks (OCFS2_DEBUG_FS) [N/y/?] n
OCFS2 POSIX Access Control Lists (OCFS2_FS_POSIX_ACL) [N/y/?] (NEW) Btrfs filesystem (EXPERIMENTAL) Unstable disk format (BTRFS_FS) [N/m/y/?] (NEW) Enable POSIX file locking API (FILE_LOCKING) [Y/n/?] (NEW) Dnotify support (DNOTIFY) [Y/n/?] y
Inotify file change notification support (INOTIFY) [Y/?] y
Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
Quota support (QUOTA) [Y/?] y
Report quota messages through netlink interface (QUOTA_NETLINK_INTERFACE) [N/y/?] (NEW) Print quota warnings to console (OBSOLETE) (PRINT_QUOTA_WARNING) [Y/n/?] (NEW) Old quota format support (QFMT_V1) [N/m/y/?] (NEW) Quota format v2 support (QFMT_V2) [N/m/y/?] (NEW) Kernel automounter support (AUTOFS_FS) [N/m/y/?] n
--
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CC kernel/bounds.s
kernel/bounds.c:1: error: code model 'kernel' not supported in the 32 bit mode
kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: --menuconfig all
* ERROR: Failed to compile the "prepare" target...
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
이부분이 수상한데야
kernel/bounds.c:1: error: code model 'kernel' not supported in the 32 bit mode
kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in
------------
아마 64비트 커널 컴파일하는데
32비트 모드가 설정되어있는데
이게 지원이 안되서 컴파일이 안된거로 추정됩니다.
한번 32비트 모드 지원 제거하고 다시 컴파일해보세여
즐린
즐린
댓글 달기