Topics

Having issues with Build of VPP, following the deployment wiki guide


Roanhouse, Patrick M <patrick.m.roanhouse@...>
 

Hi,

 

So I’m trying to do a build of VPP on Fedora Server 21 with latest updates. But when I got to build using the command from the wiki I get errors.

 

The following is command I use with make is:

 

$ make V=0 PLATFORM=vpp TAG=vpp install-rpm

 

Now what I get in return is:

 

make: *** No rule to make target 'install-rpm'.  Stop.

 

So I go back in the steps and try to do a the following in the /vpp/build-root directory

 

$ git pull

$ make distclean

$ ./bootstrap.sh

 

All is fine till the end when I get this string of error trying to run the bootstrap.sh

 

[19:19:22] stack:build-root git:(master*) $ ./bootstrap.sh

 

Saving PATH settings in /home/stack/git/vpp/build-root/path_setup

Source this file later, as needed

Compile native tools

@@@@ Arch for platform 'native' is native @@@@

@@@@ Finding source for vppinfra @@@@

@@@@ Makefile fragment found in /home/stack/git/vpp/build-root/packages/vppinfra.mk @@@@

@@@@ Source found in /home/stack/git/vpp/vppinfra @@@@

@@@@ Arch for platform 'native' is native @@@@

@@@@ Finding source for vppapigen @@@@

@@@@ Makefile fragment found in /home/stack/git/vpp/build-root/packages/vppapigen.mk @@@@

@@@@ Source found in /home/stack/git/vpp/vppapigen @@@@

@@@@ Configuring vppinfra: nothing to do @@@@

@@@@ Building vppinfra: nothing to do @@@@

@@@@ Installing vppinfra: nothing to do @@@@

@@@@ Configuring vppapigen: nothing to do @@@@

@@@@ Building vppapigen in /home/stack/git/vpp/build-root/build-tool-native/vppapigen @@@@

make[1]: Entering directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'

make  all-am

make[2]: Entering directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'

  CCLD     vppapigen

/usr/bin/ld: cannot find -lc

collect2: error: ld returned 1 exit status

Makefile:374: recipe for target 'vppapigen' failed

make[2]: *** [vppapigen] Error 1

make[2]: Leaving directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'

Makefile:292: recipe for target 'all' failed

make[1]: *** [all] Error 2

make[1]: Leaving directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'

Makefile:712: recipe for target 'vppapigen-build' failed

make: *** [vppapigen-build] Error 2

 

Now I have pulled the repo, I have looking through the Makefile for parameter clues, and I’m stuck.

 

Please help me discuss fd.io list, you are my only hope.

 

 

Thanks,

 

Patrick


Jeff Shaw
 

On Sat, Feb 27, 2016 at 01:24:28AM +0000, Roanhouse, Patrick M wrote:
Hi,
Hi Patrick,

All is fine till the end when I get this string of error trying to run the bootstrap.sh

[19:19:22] stack:build-root git:(master*) $ ./bootstrap.sh

Saving PATH settings in /home/stack/git/vpp/build-root/path_setup
Source this file later, as needed
Compile native tools
@@@@ Arch for platform 'native' is native @@@@
@@@@ Finding source for vppinfra @@@@
@@@@ Makefile fragment found in /home/stack/git/vpp/build-root/packages/vppinfra.mk @@@@
@@@@ Source found in /home/stack/git/vpp/vppinfra @@@@
@@@@ Arch for platform 'native' is native @@@@
@@@@ Finding source for vppapigen @@@@
@@@@ Makefile fragment found in /home/stack/git/vpp/build-root/packages/vppapigen.mk @@@@
@@@@ Source found in /home/stack/git/vpp/vppapigen @@@@
@@@@ Configuring vppinfra: nothing to do @@@@
@@@@ Building vppinfra: nothing to do @@@@
@@@@ Installing vppinfra: nothing to do @@@@
@@@@ Configuring vppapigen: nothing to do @@@@
@@@@ Building vppapigen in /home/stack/git/vpp/build-root/build-tool-native/vppapigen @@@@
make[1]: Entering directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'
make all-am
make[2]: Entering directory '/home/stack/git/vpp/build-root/build-tool-native/vppapigen'
CCLD vppapigen
/usr/bin/ld: cannot find -lc
I think it cannot find libc.a

Try doing:
$ yum install glibc-static

Thanks,

Patrick
-Jeff