[ewg] Re: [ofa-general] Build error with build_32bit=1

Mahmoud Hanafi mhanafi at csc.com
Tue Jun 19 11:08:33 PDT 2007


Got the all the other errors fixed but I am still getting the following 
error. It seems that attribute_container.c is looking for "base.h" in 
.../BUILD/ofa_kernel-1.2/driver/base but it's not located there. 

 gcc -Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.scsi.o.d 
-nostdinc -iwithprefix 
include -D__KERNEL__ 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.9_U4/include/ 

-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-Iinclude  -Iinclude2 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/include  -include 
include/linux/autoconf.h  -include 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi -Wall 
-Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Os -fomit-frame-pointer 
-Wdeclaration-after-statement 
-mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare 
-fno-asynchronous-unwind-tables -funit-at-a-time 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE 
-DKBUILD_BASENAME=scsi 
-DKBUILD_MODNAME=scsi_transport_iscsi -c -o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.tmp_scsi.o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/scsi.c
   gcc 
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.scsi_lib.o.d 
-nostdinc 
-iwithprefix include -D__KERNEL__ 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.9_U4/include/ 

-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-Iinclude  -Iinclude2 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/include  -include 
include/linux/autoconf.h  -include 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi -Wall 
-Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Os -fomit-frame-pointer 
-Wdeclaration-after-statement 
-mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare 
-fno-asynchronous-unwind-tables -funit-at-a-time 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE 
-DKBUILD_BASENAME=scsi_lib 
-DKBUILD_MODNAME=scsi_transport_iscsi -c -o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.tmp_scsi_lib.o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/scsi_lib.c
   gcc 
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.init.o.d 
-nostdinc -iwithprefix 
include -D__KERNEL__ 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.9_U4/include/ 

-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-Iinclude  -Iinclude2 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/include  -include 
include/linux/autoconf.h  -include 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi -Wall 
-Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Os -fomit-frame-pointer 
-Wdeclaration-after-statement 
-mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare 
-fno-asynchronous-unwind-tables -funit-at-a-time 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE 
-DKBUILD_BASENAME=init 
-DKBUILD_MODNAME=scsi_transport_iscsi -c -o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.tmp_init.o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/init.c
   gcc 
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.klist.o.d 
-nostdinc -iwithprefix 
include -D__KERNEL__ 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.9_U4/include/ 

-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-Iinclude  -Iinclude2 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/include  -include 
include/linux/autoconf.h  -include 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi -Wall 
-Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Os -fomit-frame-pointer 
-Wdeclaration-after-statement 
-mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare 
-fno-asynchronous-unwind-tables -funit-at-a-time 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE 
-DKBUILD_BASENAME=klist 
-DKBUILD_MODNAME=scsi_transport_iscsi -c -o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.tmp_klist.o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/klist.c
   gcc 
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.attribute_container.o.d 
-nostdinc 
-iwithprefix include -D__KERNEL__ 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.9_U4/include/ 

-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-Iinclude  -Iinclude2 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/include  -include 
include/linux/autoconf.h  -include 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi -Wall 
-Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Os -fomit-frame-pointer 
-Wdeclaration-after-statement 
-mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare 
-fno-asynchronous-unwind-tables -funit-at-a-time 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds 
-I/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10/kernel_addons/backport/2.6.9_U4/include/src/ 

-DMODULE -DKBUILD_BASENAME=attribute_container 
-DKBUILD_MODNAME=scsi_transport_iscsi -c -o 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/.tmp_attribute_container.o 

/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/attribute_container.c
In file included from 
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/attribute_container.c:1:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/../drivers/base/attribute_container.c:22:18: 
base.h: 
No such file or directory
make[5]: *** 
[/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi/attribute_container.o] 
Error 1
make[4]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/scsi] Error 2
make[3]: *** [_module_/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory 
`/usr/src/linux-2.6.9-42.0.10.EL_lustre.1.4.10-obj/x86_64/smp'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.47502 (%install)


RPM build errors:
     user vlad does not exist - using root
     group vlad does not exist - using root
     user vlad does not exist - using root
     group vlad does not exist - using root
     Bad exit status from /var/tmp/rpm-tmp.47502 (%install)
ERROR: Failed executing "rpmbuild --rebuild --define '_topdir 
/var/tmp/OFEDRPM' --define '_prefix 
/usr' --define 'build_root /var/tmp/OFED' --define 'configure_options 
--with-cxgb3-mod 
--with-ipath_inf-mod --with-ipoib-mod --with-iser-mod --with-mthca-mod 
--with-sdp-mod --with-srp-mod 
--with-core-mod --with-user_mad-mod --with-user_access-mod 
--with-addr_trans-mod --with-rds-mod 
--with-vnic-mod ' --define 'KVERSION 2.6.9-42.0.10.EL_lustre.1.4.10smp' 
--define 'KSRC 
/lib/modules/2.6.9-42.0.10.EL_lustre.1.4.10smp/build' --define 
'build_kernel_ib 1' --define 
'build_kernel_ib_devel 1' --define 'NETWORK_CONF_DIR 
/etc/sysconfig/network-scripts' --define 
'modprobe_update 1' --define 'include_ipoib_conf 1' 
/tmp/OFED-1.2-rc6/SRPMS/ofa_kernel-1.2-rc6.src.rpm"
~


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




"Woodruff, Robert J" <robert.j.woodruff at intel.com> 
06/19/2007 12:52 PM

To
"Vladimir Sokolovsky" <vlad at dev.mellanox.co.il>, "Or Gerlitz" 
<ogerlitz at voltaire.com>
cc
"MAHMOUD HANAFI" <hanafim.ctr at asc.hpc.mil>, "Baur, Eric" 
<Eric.Baur at gs.com>, "Vladimir Sokolovsky" <vlad at mellanox.co.il>, "EWG" 
<Openfabrics-ewg at openib.org>
Subject
RE: [ewg] Re: [ofa-general] Build error with build_32bit=1






I just installed rc6 on my systems and it worked just fine for
both 32 and 64 bit, so I expect that he has a system that does
not have the 32 bit libraries installed. 

-----Original Message-----
From: ewg-bounces at lists.openfabrics.org
[mailto:ewg-bounces at lists.openfabrics.org] On Behalf Of Vladimir
Sokolovsky
Sent: Tuesday, June 19, 2007 9:44 AM
To: Or Gerlitz
Cc: MAHMOUD HANAFI; Baur, Eric; Vladimir Sokolovsky; EWG
Subject: Re: [ewg] Re: [ofa-general] Build error with build_32bit=1

Or Gerlitz wrote:
> Tziporet Koren wrote:
>> No one raises this issue in the meeting and there is no open issue in
>> bugzilla.
>>
>> In addition in the EWG meeting yesterday we decided that RC6 is going
to
>> be the GA, and that we are stopping the critical bug fixes now.
>> There will always new bugs and issues but a release should be out,
and
>> we can later provide support patches for various issues.
> 
> Saying all the above, can you comment if --Mellanox-- builds OFED with

> build_32bit=0 or build_32bit=1 ???
> 
> if this is indeed broken, OFED 1.2 GA can't go into 64bit distros, how

> do you want to GA like this?
> 
> Or.
> 

The default value of build_32bit is 1 (on ppc64 and x86_64) in case that

glibc-devel-32bit is installed, otherwise 0.
It can be changed from environment by:
export build_32bit=0
./install.sh
...

In Mellanox most of the servers are installed with glibc-devel-32bit.
So, we test both.

In any case the issue that Mahmoud have caused by non-standard value of 
the environment variable sysconfdir (/usr/etc instead of /etc) and not 
by build_32bit.


Regards,
Vladimir

_______________________________________________
ewg mailing list
ewg at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20070619/0a91bc35/attachment.html>


More information about the ewg mailing list