Changes between Version 16 and Version 17 of NetPerfExample


Ignore:
Timestamp:
Apr 6, 2008, 2:27:38 AM (11 years ago)
Author:
bruno
Comment:

build2vm works now

Legend:

Unmodified
Added
Removed
Modified
  • NetPerfExample

    v16 v17  
    781781{{{
    782782$ pb -p netperf -r 2.4.4 -m fedora-6-i386 build2vm
    783 
    784 }}}
    785 Project Builder didn't find in our tar file what is necessary to build an RPM on Fedora 8. This is because our configuration file doesn't indicate that we want to build on fedora 8 (of course it's a new VM). So fix your config file by adapting your vmlist entry to include also Fedora 8:
    786 {{{
    787 vmlist netperf = mandrake_10.1,mandrake_10.2,mandriva_2006.0,mandriva_2007.0,mandriva_2007.1,mandriva_2008.0,redhat_7.3,redhat_9,fedora_4,fedora_5,fedora_6,fedora_7,fedora_8,rhel_3,rhel_4,rhel_5,suse_10.0,suse_10.1,suse_10.2,suse_10.3,sles_9,sles_10,gentoo_nover,debian_3.1,debian_4.0,ubuntu_6.06,ubuntu_7.04,ubuntu_7.10
    788 }}}
    789 and then relaunch the build, starting from the CMS:
    790 {{{
    791783Project: netperf
    792 Action: cms2vm
    793 Packages: netperf
    794 
    795 Management of netperf 2.4.4-1 (rev flat)
    796 Exporting /users/bruno/netperf/src/netperf-2.4.4 from DIR to /users/bruno/netperf/delivery/netperf-2.4.4... OK
    797 Generating NEWS file from /users/bruno/netperf/src/pbconf/netperf/pbcl
    798 Empty ChangeLog file created... OK
    799 Build files generated for mandriva-2006.0,sles-9,mandrake-10.2,mandriva-2007.0,rhel-3,mandriva-2007.1,redhat-9,ubuntu-6.06,suse-10.3,rhel-5,fedora-8,ubuntu-7.10,suse-10.2,mandrake-10.1,mandriva-2008.0,sles-10,fedora-6,suse-10.1,fedora-5,fedora-4,ubuntu-7.04,suse-10.0,fedora-7,debian-4.0,rhel-4,debian-3.1,redhat-7.3
    800 No Build files found for gentoo-nover
    801 Files configure.ac have been filtered
    802 Creating netperf tar files compressed... OK
    803 Under /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz
    804 VMs: fedora_8
    805 Found an existing VM /users/qemu/fedora_8.qemu (pid 28291)
    806 Packages: netperf
    807 Sources handled (VMs): /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/netperf/delivery/pbscript /users/bruno/netperf/src/pbconf/netperf.pb /users/bruno/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc
    808 Preparing netperf/delivery on pb@localhost... OK
    809 netperf-2.4.4.tar.gz                                                       100% 1159KB   1.1MB/s   00:00
    810 pbscript                                                                   100%  369     0.4KB/s   00:00
    811 netperf.pb                                                                 100% 2223     2.2KB/s   00:00
     784Action: build2vm
     785Packages: netperf
     786Found an existing VM /users/qemu/fedora-6-i386.qemu (pid 31466)
     787Packages: netperf
     788Sources handled (vm): /users/bruno/project-builder/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/project-builder/netperf/delivery/pbscript /users/bruno/project-builder/netperf/pbconf/2.4.4/netperf.pb /users/bruno/project-builder/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc /users/bruno/project-builder/netperf/delivery/pbrc
     789Preparing project-builder/netperf/delivery on pb@localhost:project-builder/netperf/delivery... OK
     790netperf-2.4.4.tar.gz                                                       100% 1149KB   1.1MB/s   00:00
     791pbscript                                                                   100%  376     0.4KB/s   00:00
     792netperf.pb                                                                 100% 3644     3.6KB/s   00:00
    8127932.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
    813 .pbrc                                                                      100% 2216     2.2KB/s   00:00
    814 OK
    815 Executing pbscript on pb@localhost  if needed... ... Execution needed
    816 Setting up date on pool.ntp.org...
    817 Mon Nov 26 10:12:00 CET 2007
    818 Building packages on VM...
     794.pbrc                                                                      100% 1435     1.4KB/s   00:00
     795pbrc                                                                       100% 3821     3.7KB/s   00:00
     796OK
     797Executing pbscript on pb@localhost:project-builder/netperf/delivery if needed... ... Execution needed
     798Sun Apr  6 02:08:00 CEST 2008
     799Building packages on vm...
    819800Project: netperf
    820801Action: build2pkg
    821802Packages: netperf
    822 Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz
    823 Working directory: /home/pb/netperf/build
    824803Extracting build files... OK
    825 Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.44284
     804Building package with /home/pb/project-builder/netperf/build/SPECS/netperf.spec under /home/pb/project-builder/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36949
    826805+ umask 022
    827 + cd /home/pb/netperf/build/BUILD
    828 + LANG=C
    829 + export LANG
    830 + unset DISPLAY
    831 + cd /home/pb/netperf/build/BUILD
    832 + rm -rf netperf-2.4.4
    833 + /bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz
    834 + tar -xf -
    835 + STATUS=0
    836 + '[' 0 -ne 0 ']'
    837 + cd netperf-2.4.4
    838 ++ /usr/bin/id -u
    839 + '[' 500 = 0 ']'
    840 ++ /usr/bin/id -u
    841 + '[' 500 = 0 ']'
    842 + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    843 + exit 0
    844 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.10486
    845 + umask 022
    846 + cd /home/pb/netperf/build/BUILD
    847 + cd netperf-2.4.4
    848 + LANG=C
    849 + export LANG
    850 + unset DISPLAY
    851 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
    852 + export CFLAGS
    853 + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
    854 + export CXXFLAGS
    855 + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'
    856 + export FFLAGS
    857 ++ find . -name config.guess -o -name config.sub
    858 + for i in '$(find . -name config.guess -o -name config.sub)'
    859 ++ basename ./config.sub
    860 + '[' -f /usr/lib/rpm/redhat/config.sub ']'
    861 + /bin/rm -f ./config.sub
    862 ++ basename ./config.sub
    863 + /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
    864 `/usr/lib/rpm/redhat/config.sub' -> `./config.sub'
    865 + for i in '$(find . -name config.guess -o -name config.sub)'
    866 ++ basename ./config.guess
    867 + '[' -f /usr/lib/rpm/redhat/config.guess ']'
    868 + /bin/rm -f ./config.guess
    869 ++ basename ./config.guess
    870 + /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
    871 `/usr/lib/rpm/redhat/config.guess' -> `./config.guess'
    872 + ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
    873 checking build system type... i686-redhat-linux-gnu
    874 checking host system type... i686-redhat-linux-gnu
    875 checking target system type... i386-redhat-linux-gnu
    876 [...]
    877 netlib.o: In function `bind_to_specific_processor':
    878 netlib.c:(.text+0x1d4a): undefined reference to `__CPU_ZERO'
    879 netlib.c:(.text+0x1d56): undefined reference to `__CPU_SET'
    880 collect2: ld returned 1 exit status
    881 }}}
    882 So we're not lucky as the application doesn't build natively on Fedora 8 due to the lack of some defines.
    883 So we can try with another existing VM to see if we are more lucky, after stoping our running VM:
    884 {{{
    885 $ ssh -p 2225 root@localhost halt
    886 $ pb -p netperf -r `pwd` -m rhel_4 build2vm
    887 Project: netperf
    888 Action: build2vm
    889 VMs: rhel_4
    890 Launching the VM /users/qemu/rhel_4.qemu... OK
    891 Waiting for VM rhel_4 to come up...
    892 Packages: netperf
    893 Sources handled (VMs): /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/netperf/delivery/pbscript /users/bruno/netperf/src/pbconf/netperf.pb /users/bruno/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc
    894 Preparing netperf/delivery on pb@localhost... OK
    895 netperf-2.4.4.tar.gz                                                       100% 1159KB   1.1MB/s   00:00
    896 pbscript                                                                   100%  369     0.4KB/s   00:00
    897 netperf.pb                                                                 100% 2223     2.2KB/s   00:00
    898 2.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
    899 .pbrc                                                                      100% 2216     2.2KB/s   00:00
    900 OK
    901 Executing pbscript on pb@localhost  if needed... ... Execution needed
    902 Setting up date on pool.ntp.org...
    903 lun nov 26 10:23:00 CET 2007
    904 Building packages on VM...
    905 Project: netperf
    906 Action: build2pkg
    907 Packages: netperf
    908 Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz
    909 Working directory: /home/pb/netperf/build
    910 Extracting build files... OK
    911 Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.90577
    912 + umask 022
    913 + cd /home/pb/netperf/build/BUILD
    914 + cd /home/pb/netperf/build/BUILD
    915 + rm -rf netperf-2.4.4
    916 + /usr/bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz
    917 [...]
    918 gcc  -O2 -g -march=i386 -mcpu=i686   -o netperf  netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o  -lm
    919 netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring':
    920 /home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    921 if gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -g -march=i386 -mcpu=i686 -MT netserver.o -MD -MP -MF ".deps/netserver.Tpo" \
    922   -c -o netserver.o `test -f 'netserver.c' || echo './'`netserver.c; \
    923 then mv -f ".deps/netserver.Tpo" ".deps/netserver.Po"; \
    924 else rm -f ".deps/netserver.Tpo"; exit 1; \
    925 fi
    926 gcc  -O2 -g -march=i386 -mcpu=i686   -o netserver  netserver.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o  -lm
    927 netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring':
    928 /home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    929 make[3]: Entering directory `/home/pb/netperf/build/BUILD/netperf-2.4.4/src'
    930 /bin/sh ../mkinstalldirs /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin
    931 mkdir -p -- /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin
    932   /usr/bin/install -c netperf /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netperf
    933   /usr/bin/install -c netserver /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netserver
    934 make[3]: Nothing to be done for `install-data-am'.
    935 [...]
    936 + /bin/mkdir -p /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
    937 + cp -pr ChangeLog /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
    938 + cp -pr INSTALL COPYING README AUTHORS NEWS /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
    939 + cp -pr README.aix README.hpux README.osx README.ovms README.solaris README.windows Release_Notes doc/examples /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
    940 + exit 0
    941 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    942 Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libm.so.6 libm.so.6(GLIBC_2.0)
    943 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/netperf-2.4.4-1.rhel4-root-pb
    944 Wrote: /home/pb/netperf/build/SRPMS/netperf-2.4.4-1.rhel4.src.rpm
    945 Wrote: /home/pb/netperf/build/RPMS/i386/netperf-2.4.4-1.rhel4.i386.rpm
    946 Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.25314
    947 + umask 022
    948 + cd /home/pb/netperf/build/BUILD
    949 + cd netperf-2.4.4
    950 + /bin/rm -rf /var/tmp/netperf-2.4.4-1.rhel4-root-pb
    951 + exit 0
    952 OK
    953 OK
    954 pbgen-2.4.4-1                                                              100%   72     0.1KB/s   00:00
    955 OK
    956 netperf-2.4.4-1.rhel4.i386.rpm                                             100%  174KB 173.9KB/s   00:00
    957 OK
    958 netperf-2.4.4-1.rhel4.src.rpm                                              100% 1171KB   1.1MB/s   00:00
    959 OK
    960 VM cleanup on pb@localhost... OK
    961 VM rhel_4 halt (pid 2119)... OK
    962 Packages: netperf
    963 Sources handled (Packages): rhel/4/netperf-2.4.4-1.rhel4.*.rpm
    964 Preparing /mondo/ftp/rhel/4 on bruno@www.project-builder.org... OK
    965 netperf-2.4.4-1.rhel4.i386.rpm                                             100%  174KB 173.9KB/s   00:00
    966 netperf-2.4.4-1.rhel4.src.rpm                                              100% 1171KB  33.5KB/s   00:35
    967 OK
    968 Executing pbscript on bruno@www.project-builder.org  if needed... OK
    969 }}}
    970 This time we've been able to build our packages on RHEL 4 and at the end, as the build was successful they were automatically copied on our ftp server for public availability.
     806+ cd /home/pb/project-builder/netperf/build/BUILD
     807[... build goes on ...]
     808Wrote: /home/pb/project-builder/netperf/build/SRPMS/netperf-2.4.4-1.fc6.src.rpm
     809Wrote: /home/pb/project-builder/netperf/build/RPMS/i386/netperf-2.4.4-1.fc6.i386.rpm
     810Wrote: /home/pb/project-builder/netperf/build/RPMS/i386/netperf-debuginfo-2.4.4-1.fc6.i386.rpm
     811[... build goes on ...]
     812OK
     813OK
     814pbgen-2.4.4-1                                                              100%   68     0.1KB/s   00:00
     815OK
     816netperf-2.4.4-1.fc6.i386.rpm                                               100%  163KB 163.2KB/s   00:01
     817OK
     818netperf-2.4.4-1.fc6.src.rpm                                                100% 1156KB   1.1MB/s   00:00
     819OK
     820vm cleanup... OK
     821Packages: netperf
     822Sources handled (Packages): fedora/6/netperf-2.4.4-1.fc6.*.rpm
     823Preparing /mondo/ftp/fedora/6 on pb@www.project-builder.org:/mondo/ftp/fedora/6... OK
     824netperf-2.4.4-1.fc6.i386.rpm                                               100%  163KB 163.2KB/s   00:00
     825netperf-2.4.4-1.fc6.src.rpm                                                100% 1156KB  31.2KB/s   00:37
     826OK
     827Executing pbscript on pb@www.project-builder.org:/mondo/ftp/fedora/6 if needed... OK
     828VM fedora-6-i386 halt (pid 0)... OK
     829
     830}}}
     831We've been able to build our packages on Fedora 6 and at the end, as the build was successful they were automatically copied on our ftp server for public availability.
    971832In order to continue to support correctly netperf build, now that we have rpm done, we can attack the deb part.
    972833We need again to update the templates created by Project-Builder earlier: