[ewg] Fedora 14: gcc: cannot specify -o with -c, -S or -E with multiple files

Ken Cain kcain at mc.com
Tue Nov 23 06:22:49 PST 2010


Jeremy Enos wrote:
> As does gcc-4.3.5- same error.
> 
> Is anyone looking into this on the OFED team?

Jeremy,

This is very informal / unofficial, but it may help you get beyond your 
  build problem. It's quite possible that my approach may not be the 
best, or may have flaws I do not yet appreciate. Please accept it in the 
spirit of trying to be helpful.

In my experience I have had to install the kernel .src.rpm package, 
issue an rpmbuild -bp on the kernel sources, and then do a certain 
amount of kernel sources prep in the installation area in order to 
successfully compile the ofa_kernel package (the kernel-devel and 
kernel-headers packages to not seem to be enough).

rpm -i kernel-2.6.xx...src.rpm
rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel.spec
cd  /usr/src/redhat/BUILD/kernel-2.6.xx/linux-2.6.xx.x86_64
make oldconfig && make prepare && make scripts

Then when invoking the OFED install.pl refer that script to your 
installed kernel sources (-s argument):
/usr/src/redhat/BUILD/kernel-2.6.xx/linux-2.6.xx.x86_64

I hope this helps. Thanks,

-Ken
-- 
Ken Cain
Mercury Computer Systems, Inc. (http://www.mc.com)

This message is intended only for the designated recipient(s) and may
contain confidential or proprietary information of Mercury Computer
Systems, Inc. This message is solely intended to facilitate business
discussions and does not constitute an express or implied offer to sell
or purchase any products, services, or support. Any commitments must be
made in writing and signed by duly authorized representatives of each
party.



More information about the ewg mailing list