Changes between Version 3 and Version 4 of NetPerfExample


Ignore:
Timestamp:
Nov 26, 2007, 10:28:22 AM (12 years ago)
Author:
bruno
Comment:

Build on fc8 failed :-)

Legend:

Unmodified
Added
Removed
Modified
  • NetPerfExample

    v3 v4  
    852852Total download size: 143 M
    853853Downloading Packages:
    854 
    855 }}}
    856 
     854[...]
     855  Updating  : gnome-desktop-devel          ##################### [ 68/138]
     856  Updating  : perl-devel                   ##################### [ 69/138]
     857  Updating  : perl-ExtUtils-MakeMaker      ##################### [ 70/138]
     858  Updating  : perl-ExtUtils-Embed          ##################### [ 71/138]
     859  Cleanup   : gnome-screensaver            ##################### [ 72/138]
     860  Cleanup   : slrn                         ##################### [ 73/138]
     861  Cleanup   : perl-Test-Harness            ##################### [ 74/138]
     862  Cleanup   : codeina                      ##################### [ 75/138]
     863  Cleanup   : libattr-devel                ##################### [ 76/138]
     864[...]
     865=============================================================================
     866Installing:
     867 perl-AppConfig          noarch     1.65-1.fc8       fedora             96 k
     868 perl-DateManip          noarch     5.44-4.fc8       fedora            162 k
     869
     870Transaction Summary
     871=============================================================================
     872Install      2 Package(s)
     873Update       0 Package(s)
     874Remove       0 Package(s)
     875
     876Total download size: 258 k
     877Downloading Packages:
     878Running rpm_check_debug
     879Running Transaction Test
     880Finished Transaction Test
     881Transaction Test Succeeded
     882Running Transaction
     883  Installing: perl-DateManip               ######################### [1/2]
     884  Installing: perl-AppConfig               ######################### [2/2]
     885
     886Installed: perl-AppConfig.noarch 0:1.65-1.fc8 perl-DateManip.noarch 0:5.44-4.fc8
     887Complete!
     88820 Nov 01:45:43 ntpdate[5305]: step time server 192.168.8.55 offset 86478.362381 sec
     889--01:45:44--  ftp://ftp.mondorescue.org/src/project-builder-latest.tar.gz
     890           => `project-builder-latest.tar.gz'
     891Resolving ftp.mondorescue.org... 213.30.161.23
     892Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
     893Logging in as anonymous ... Logged in!
     894==> SYST ... done.    ==> PWD ... done.
     895==> TYPE I ... done.  ==> CWD /src ... done.
     896==> PASV ... done.    ==> RETR project-builder-latest.tar.gz ... done.
     897Length: 52,296 (51K) (unauthoritative)
     898
     899    0K .......... .......... .......... .......... .......... 97%  165.62 KB/s
     900   50K .                                                     100%    2.09 MB/s
     901
     90201:45:45 (169.17 KB/s) - `project-builder-latest.tar.gz' saved [52296]
     903
     904project-builder-0.8.11/
     905project-builder-0.8.11/pbconf/
     906project-builder-0.8.11/pbconf/suse-10.0/
     907project-builder-0.8.11/pbconf/suse-10.0/project-builder.spec
     908project-builder-0.8.11/pbconf/rhel-5/
     909[...]
     910Writing Makefile for pb
     911cp lib/ProjectBuilder/Changelog.pm blib/lib/ProjectBuilder/Changelog.pm
     912cp lib/ProjectBuilder/Base.pm blib/lib/ProjectBuilder/Base.pm
     913cp lib/ProjectBuilder/Distribution.pm blib/lib/ProjectBuilder/Distribution.pm
     914cp lib/ProjectBuilder/Version.pm blib/lib/ProjectBuilder/Version.pm
     915cp bin/pbvi blib/bin/pbvi
     916/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbvi
     917cp bin/pb blib/bin/pb
     918/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pb
     919cp bin/pbdistrocheck blib/bin/pbdistrocheck
     920/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbdistrocheck
     921cp bin/pbg blib/bin/pbg
     922/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbg
     923Installing /usr/bin/pbdistrocheck
     924Installing /usr/bin/pb
     925Installing /usr/bin/pbvi
     926Installing /usr/bin/pbg
     927Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Distribution.pm
     928Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Base.pm
     929Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Changelog.pm
     930Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Version.pm
     931Writing /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/pb/.packlist
     932Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
     933OK
     934}}}
     935Now that Project-Builder is installed inside your VM, you may want to try to use it to build netperf packages for Fedora 8:
     936{{{
     937$ pb -p netperf -r `pwd` -m fedora_8 build2vm
     938Project: netperf
     939Action: build2vm
     940VMs: fedora_8
     941Found an existing VM /users/qemu/fedora_8.qemu (pid 28291)
     942Packages: netperf
     943Sources 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
     944Preparing netperf/delivery on pb@localhost... /usr/bin/xauth:  creating new authority file /home/pb/.Xauthority
     945OK
     946netperf-2.4.4.tar.gz                                                       100% 1159KB   1.1MB/s   00:01
     947pbscript                                                                   100%  369     0.4KB/s   00:00
     948netperf.pb                                                                 100% 2214     2.2KB/s   00:00
     9492.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
     950.pbrc                                                                      100% 2216     2.2KB/s   00:00
     951OK
     952Executing pbscript on pb@localhost  if needed... ... Execution needed
     953Setting up date on pool.ntp.org...
     954Mon Nov 26 10:09:00 CET 2007
     955Building packages on VM...
     956Project: netperf
     957Action: build2pkg
     958Packages: netperf
     959Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz
     960Working directory: /home/pb/netperf/build
     961Extracting build files... tar: netperf-2.4.4/pbconf/fedora-8: Not found in archive
     962tar: Error exit delayed from previous errors
     963Unable to open directory netperf-2.4.4/pbconf/fedora-8/ at /usr/bin/pb line 845.
     964child (tar xfpz /home/pb/netperf/delivery/netperf-2.4.4.tar.gz netperf-2.4.4/pbconf/fedora-8/) exited with value 2
     965}}}
     966Project 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:
     967{{{
     968vmlist 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
     969}}}
     970and then relaunch the build, starting from the CMS:
     971{{{
     972Project: netperf
     973Action: cms2vm
     974Packages: netperf
     975
     976Management of netperf 2.4.4-1 (rev flat)
     977Exporting /users/bruno/netperf/src/netperf-2.4.4 from DIR to /users/bruno/netperf/delivery/netperf-2.4.4... OK
     978Generating NEWS file from /users/bruno/netperf/src/pbconf/netperf/pbcl
     979Empty ChangeLog file created... OK
     980Build 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
     981No Build files found for gentoo-nover
     982Files configure.ac have been filtered
     983Creating netperf tar files compressed... OK
     984Under /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz
     985VMs: fedora_8
     986Found an existing VM /users/qemu/fedora_8.qemu (pid 28291)
     987Packages: netperf
     988Sources 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
     989Preparing netperf/delivery on pb@localhost... OK
     990netperf-2.4.4.tar.gz                                                       100% 1159KB   1.1MB/s   00:00
     991pbscript                                                                   100%  369     0.4KB/s   00:00
     992netperf.pb                                                                 100% 2223     2.2KB/s   00:00
     9932.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
     994.pbrc                                                                      100% 2216     2.2KB/s   00:00
     995OK
     996Executing pbscript on pb@localhost  if needed... ... Execution needed
     997Setting up date on pool.ntp.org...
     998Mon Nov 26 10:12:00 CET 2007
     999Building packages on VM...
     1000Project: netperf
     1001Action: build2pkg
     1002Packages: netperf
     1003Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz
     1004Working directory: /home/pb/netperf/build
     1005Extracting build files... OK
     1006Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.44284
     1007+ umask 022
     1008+ cd /home/pb/netperf/build/BUILD
     1009+ LANG=C
     1010+ export LANG
     1011+ unset DISPLAY
     1012+ cd /home/pb/netperf/build/BUILD
     1013+ rm -rf netperf-2.4.4
     1014+ /bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz
     1015+ tar -xf -
     1016+ STATUS=0
     1017+ '[' 0 -ne 0 ']'
     1018+ cd netperf-2.4.4
     1019++ /usr/bin/id -u
     1020+ '[' 500 = 0 ']'
     1021++ /usr/bin/id -u
     1022+ '[' 500 = 0 ']'
     1023+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
     1024+ exit 0
     1025Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.10486
     1026+ umask 022
     1027+ cd /home/pb/netperf/build/BUILD
     1028+ cd netperf-2.4.4
     1029+ LANG=C
     1030+ export LANG
     1031+ unset DISPLAY
     1032+ 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'
     1033+ export CFLAGS
     1034+ 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'
     1035+ export CXXFLAGS
     1036+ 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'
     1037+ export FFLAGS
     1038++ find . -name config.guess -o -name config.sub
     1039+ for i in '$(find . -name config.guess -o -name config.sub)'
     1040++ basename ./config.sub
     1041+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
     1042+ /bin/rm -f ./config.sub
     1043++ basename ./config.sub
     1044+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
     1045`/usr/lib/rpm/redhat/config.sub' -> `./config.sub'
     1046+ for i in '$(find . -name config.guess -o -name config.sub)'
     1047++ basename ./config.guess
     1048+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
     1049+ /bin/rm -f ./config.guess
     1050++ basename ./config.guess
     1051+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
     1052`/usr/lib/rpm/redhat/config.guess' -> `./config.guess'
     1053+ ./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
     1054checking build system type... i686-redhat-linux-gnu
     1055checking host system type... i686-redhat-linux-gnu
     1056checking target system type... i386-redhat-linux-gnu
     1057[...]
     1058netlib.o: In function `bind_to_specific_processor':
     1059netlib.c:(.text+0x1d4a): undefined reference to `__CPU_ZERO'
     1060netlib.c:(.text+0x1d56): undefined reference to `__CPU_SET'
     1061collect2: ld returned 1 exit status
     1062}}}
     1063So we're not lucky as the application doesn't build natively on Fedora 8 due to the lack of some defines.