Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Failed to compile "modules" target
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
miledhel
n00b
n00b


Joined: 24 Aug 2012
Posts: 4
Location: Berlin

PostPosted: Fri Aug 24, 2012 9:15 pm    Post subject: [SOLVED] Failed to compile "modules" target Reply with quote

Hi there,

I'm trying to install gentoo several times with genkernel but I allways get the same error after running genkernel all: "Error: Failed to compile the "modules" target..." and I have absolutely no clue what's going wrong during compilation :)

I'm working with an Athlon II x2 B28 processor (64 bit, 2 cores).

This is my make.conf:
Code:

CFLAGS="-02 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2 -qt4 -kde gtk gnome dvd alsa"
MAKEOPTS="-j3"
GENTOO_MIRRORS="ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
SYNC="rsync://rsync11.de.gentoo.org/gentoo-portage"


As you see, I didn't dare to change to much in make.conf.
There are some compiler warnings in the middle of the genkernel.log:

Code:

  CC [M]  drivers/usb/core/usb.o
  CC [M]  drivers/scsi/lpfc/lpfc_scsi.o
cc1: warnings being treated as errors
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_bpl':
drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable 'rc'
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_bpl_prot':
drivers/scsi/lpfc/lpfc_scsi.c:2037:11: error: unused variable 'rc'
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_sgl':
drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable 'rc'
drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_bg_setup_sgl_prot':
drivers/scsi/lpfc/lpfc_scsi.c:2386:11: error: unused variable 'rc'
make[3]: *** [drivers/scsi/lpfc/lpfc_scsi.o] Error 1
make[2]: *** [drivers/scsi/lpfc] Error 2
make[1]: *** [drivers/scsi] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC [M]  drivers/usb/host/ehci-hcd.o
  CC [M]  drivers/usb/core/hub.o
  CC [M]  drivers/usb/core/hcd.o


But the compiler keeps going on with compilíng until this point:

Code:

  LD [M]  drivers/usb/storage/ums-karma.o
  LD [M]  drivers/usb/storage/ums-sddr09.o
  LD [M]  drivers/usb/storage/ums-sddr55.o
  LD [M]  drivers/usb/storage/ums-usbat.o
make: *** [drivers] Error 2
* Gentoo Linux Genkernel; Version 3.4.24_p2
* Running with options: all

* ERROR: Failed to compile the "modules" target...
* -- Grepping log... --
* -- 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!
*


It would help me a lot to know at least, where I could get more information what exactly is breaking and how I could work around this.

Thanks for your Help :)


Last edited by miledhel on Sun Aug 26, 2012 9:49 am; edited 1 time in total
Back to top
View user's profile Send private message
pidsley
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2012
Posts: 80

PostPosted: Fri Aug 24, 2012 10:27 pm    Post subject: Reply with quote

From your last error:

Code:
* Please consult /var/log/genkernel.log for more information


Have you looked at this log? It's likely that anyone who can help you will also need to see it.

Don't post the whole log here; do you know how to use wgetpaste to post a link to the log?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Fri Aug 24, 2012 10:29 pm    Post subject: Reply with quote

Somehow you have a -Werror plugged into your compile flow.
It looks like you have a regular warning there, an unused variable is a warning... but it turned into an error, and stopped the flow...

You could try also disabling this:
Code:
config SCSI_LPFC
        tristate "Emulex LightPulse Fibre Channel Support"
        depends on PCI && SCSI
        select SCSI_FC_ATTRS
        help
          This lpfc driver supports the Emulex LightPulse
          Family of Fibre Channel PCI host adapters.
to work around the issue, if you don't really need this fiber channel scsi adapter.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
miledhel
n00b
n00b


Joined: 24 Aug 2012
Posts: 4
Location: Berlin

PostPosted: Sat Aug 25, 2012 9:02 am    Post subject: Reply with quote

Hi eccerr0r,

thanks for the tip I'm about to trying this out. After sleeping a night over the problem I also thought about dropping the modules where the compiler fails.

@pidsley: The last two snippets are the parts of genkernel.log which in my opinion must point to the problem.
Back to top
View user's profile Send private message
miledhel
n00b
n00b


Joined: 24 Aug 2012
Posts: 4
Location: Berlin

PostPosted: Sat Aug 25, 2012 12:06 pm    Post subject: Reply with quote

eccerr0r,
you were wright. The fibre channel modules were the problem. To remove them, I did the following:

  • in kernel-config I commented out CONFIG_SCSI_LPFC=m
  • in modules_load I deleted the modules lpfc and scsi_transport_fc from MODULES_SCSI

Thank you for your help!
Back to top
View user's profile Send private message
leifbk
Guru
Guru


Joined: 05 Jan 2004
Posts: 415
Location: Bærum, Norway

PostPosted: Sat Aug 25, 2012 1:58 pm    Post subject: Reply with quote

miledhel wrote:
eccerr0r,
you were wright. The fibre channel modules were the problem. To remove them, I did the following:

  • in kernel-config I commented out CONFIG_SCSI_LPFC=m
  • in modules_load I deleted the modules lpfc and scsi_transport_fc from MODULES_SCSI

Thank you for your help!


And thank you all for this helpful forum, where I seldom need to do more than search for a keyword like 'genkernel' or 'lpfc' in order to solve anything Gentoo.

After reading this, I just invoked genkernel with

Code:
genkernel --xconfig all


and removed the pesky lpfc module. I didn't find any modules_load, but when I rebooted into the new kernel, the system came up just fine.

BTW, it appears like this problem in the 3.4 kernel has been known and fixed upstream since May, but with 3.4.9 hitting stable today, the bug has not gone away.
_________________
Grumpy old man
Back to top
View user's profile Send private message
miledhel
n00b
n00b


Joined: 24 Aug 2012
Posts: 4
Location: Berlin

PostPosted: Sat Aug 25, 2012 3:32 pm    Post subject: Reply with quote

leifbk,
which switch did you use to shut it off? The switches for SCSI Fibre Channel support in menuconfig didn't change anything on my system. That was why I edited the config files by myself.
Back to top
View user's profile Send private message
leifbk
Guru
Guru


Joined: 05 Jan 2004
Posts: 415
Location: Bærum, Norway

PostPosted: Sun Aug 26, 2012 9:34 am    Post subject: Reply with quote

I just searched for the string 'lpfc'. You can do the same in menuconfig.
_________________
Grumpy old man
Back to top
View user's profile Send private message
_Noob_
n00b
n00b


Joined: 12 Aug 2012
Posts: 1
Location: Germany

PostPosted: Sun Aug 26, 2012 6:14 pm    Post subject: Reply with quote

miledhel wrote:
eccerr0r,
you were wright. The fibre channel modules were the problem. To remove them, I did the following:

  • in kernel-config I commented out CONFIG_SCSI_LPFC=m
  • in modules_load I deleted the modules lpfc and scsi_transport_fc from MODULES_SCSI

Thank you for your help!


I had exactly the same problem and this solved it for me, too. Thanks!!
Back to top
View user's profile Send private message
symon1980
n00b
n00b


Joined: 11 Jul 2010
Posts: 20

PostPosted: Wed Sep 05, 2012 1:52 pm    Post subject: Reply with quote

+1

Solved the issue for me too
Back to top
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 91
Location: UK

PostPosted: Fri Sep 07, 2012 11:49 am    Post subject: Reply with quote

This fixed for me too. Very annoying bug as this happened on a fresh install, if i wasn't already a long time user of gentoo i would probably have given up if the "it works" kernel compile didn't work. (Yes i know i should be compiling my own kernel and i do, just later on systems i need up and working fast.)

Code:
generkernel all --menuconfig


then / to get the search box up and searched for lpfc and turned off the options below.

Code:
  │Symbol: SCSI_LPFC_DEBUG_FS [=n]                                         │
  │ Type  : boolean                                                         │
  │ Prompt: Emulex LightPulse Fibre Channel debugfs Support                 │
  │   Defined at drivers/scsi/Kconfig:1458                                  │
  │   Depends on: SCSI_LOWLEVEL [=y] && SCSI [=y] && SCSI_LPFC [=n] && DEBU │
  │   Location:                                                             │
  │     -> Device Drivers                                                   │
  │       -> SCSI device support                                            │
  │         -> SCSI low-level drivers (SCSI_LOWLEVEL [=y])                  │
  │           -> Emulex LightPulse Fibre Channel Support (SCSI_LPFC [=n])   │
  │                                                                         │
  │                                                                         │
  │ Symbol: SCSI_LPFC [=n]                                                  │
  │ Type  : tristate                                                        │
  │ Prompt: Emulex LightPulse Fibre Channel Support                         │
  │   Defined at drivers/scsi/Kconfig:1450       
  │
  │   Depends on: SCSI_LOWLEVEL [=y] && PCI [=y] && SCSI [=y]               │
  │   Location:                                                             │
  │     -> Device Drivers                                                   │
  │       -> SCSI device support                                            │
  │         -> SCSI low-level drivers (SCSI_LOWLEVEL [=y])                  │
  │   Selects: SCSI_FC_ATTRS [=m]


Let it run after saving the config and all was well in the world.
Back to top
View user's profile Send private message
gilcu3
n00b
n00b


Joined: 26 Jan 2012
Posts: 3
Location: Cuba

PostPosted: Fri Sep 07, 2012 1:54 pm    Post subject: graphics card Reply with quote

yeah, I did the same and the kernel finally compiled properly, but then I faced another problem, the graphic card is not recognized by the kernel, and it was before, and the driver it used is in the kernel though, so I don't know what to do, maybe I really needed the lpfc driver compiled. This is my graphics card:
Code:

00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02)
   Subsystem: Intel Corporation Device 514d

_________________
Isn't gentoo enough for you? Then come around and make it better :D
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Fri Sep 07, 2012 2:12 pm    Post subject: Reply with quote

the LPFC is a specific SCSI driver, it shouldn't be needed for the VGA chipset graphics adapter, you should submit a new post for it. But you need to make sure that i915 DRM is enabled as well as kernel mode setting enabled by default.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
gilcu3
n00b
n00b


Joined: 26 Jan 2012
Posts: 3
Location: Cuba

PostPosted: Fri Sep 07, 2012 3:27 pm    Post subject: Reply with quote

eccerr0r wrote:
the LPFC is a specific SCSI driver, it shouldn't be needed for the VGA chipset graphics adapter, you should submit a new post for it. But you need to make sure that i915 DRM is enabled as well as kernel mode setting enabled by default.


I did what you said, I mean, I hadn't the kernel mode setting enabled by default, and it worked before, now with the 3.4.9 version I activated it and the video card is recognized again, but, another problem with the new kernel remains, I don't know whether it is related with the problem of this thread, this is my rc log, where you can see that my system clock freaks out, a terrible problem for a gentoo user..
Code:

rc boot logging started at Fri Sep  7 07:10:35 2012

 * Setting system clock using the hardware clock [Local Time] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to set the system clock
 [ !! ]
 * Autoloaded 0 module(s)
 * Checking local filesystems  ...
/dev/sda6: Superblock last mount time is in the future.
   (by less than a day, probably due to the hardware clock being incorrectly set)  FIXED.
/dev/sda6: clean, 622787/2293760 files, 5514487/9175040 blocks
/dev/sda5: Superblock last write time is in the future.
   (by less than a day, probably due to the hardware clock being incorrectly set).  FIXED.
/dev/sda5: clean, 40/8192 files, 19620/32768 blocks
 [ ok ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Mounting local filesystems ...
mount: special device /home/rey/opt/Historia_de_Cuba does not exist
 * Some local filesystem failed to mount
 [ !! ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Cleaning /var/run ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting console font [default8x16] ...
 [ ok ]
 * Setting hostname to LAB5-P5 ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 * Bringing up interface eth0
 *   10.30.151.5 ...
 [ ok ]
 *   Adding routes
 *     default via 10.30.151.254 ...
 [ ok ]
 * Mounting USB device filesystem [usbfs] ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Fri Sep  7 07:10:38 2012


rc default logging started at Fri Sep  7 07:10:38 2012

 * Starting D-BUS system messagebus ...
 [ ok ]
 * Mounting network filesystems ...
 [ ok ]
 * Starting syslog-ng ...
 [ ok ]
 * Starting ProFTPD ...
 [ ok ]
 * Doing udev cleanups
 * Starting vixie-cron ...
 [ ok ]
 * Setting up gdm ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Fri Sep  7 07:10:43 2012

_________________
Isn't gentoo enough for you? Then come around and make it better :D
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Fri Sep 07, 2012 3:38 pm    Post subject: Reply with quote

Please make a new post with this issue, the clock problem is unrelated to the SCSI compile issue problem.

I've seen hardware clock issues in the past but never rootcaused it. Some of my machines have this issue, perhaps with a fresh post others can chime in on what they seen.

For what it's worth, and strangely eerie, one machine that I have clock problems on is also a i965 machine... (Foxconn motherboard). Go figure...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum