Build error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC0.8.0

953 views
Skip to first unread message

Shree Kantha

unread,
Sep 28, 2015, 9:43:54 AM9/28/15
to opennetw...@googlegroups.com
HI Team,
I am hitting below error when compiling ONL. Please help.
I am using UBUNTU to build and have installed (libmpfr-dev, libgmp-dev,gmpc-dev). Am I missing anything here. thanks in advance.

checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
make[8]: *** [/root/ONL/ONL/submodules/loader/buildroot-i386/toolchain/gcc-4.9.3-initial/.configured] Error 1
make[7]: *** [buildroot-i386] Error 2
make[6]: *** [/root/ONL/ONL/components/i386/initrd-i386/initrd-i386] Error 2
make[5]: *** [component] Error 2
make[4]: *** [deb] Error 2
make[3]: *** [deb] Error 2
make[2]: *** [deb] Error 2
make[2]: Leaving directory `/root/ONL/ONL/components/i386/initrd-i386'
Traceback (most recent call last):
  File "/root/ONL/ONL/tools/onlpkg.py", line 291, in <module>
    check_call(('make', '-C', buildpath, 'deb',))
  File "/root/ONL/ONL/tools/onlpkg.py", line 161, in check_call
    subprocess.check_call(cmd, *args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('make', '-C', '/root/ONL/ONL/components/i386/initrd-i386', 'deb')' returned non-zero exit status 2
make[1]: *** [component-deps] Error 1
make[1]: Leaving directory `/root/ONL/ONL/builds/components'
make: *** [all-components] Error 2

Thanks,
Shree

Rob Sherwood

unread,
Sep 28, 2015, 2:15:44 PM9/28/15
to Shree Kantha, opennetw...@googlegroups.com
Hi Shree,

Thanks for the mail.  My guess is that the buildroot dependency is going to be a pain to compile with any other compiler than what's shipped with the docker image.  That said, it's completely orthogonal to the rest of the system so you can build that with one compiler and the rest of the system with your new compiler.  The buildroot tools go into the initrd image that's part of the ONL loader.  Probably the easiest thing to do is to compile the $ONL/components/$(ARCH)/initrd-$(ARCH) package with the existing 3.x compiler so that it's cached into $ONL/debian/repo/$(ARCH) and then build everything else that you want with the new 4.x compiler.

Or, better yet, just download it from the initrd package from the apt repo:  http://apt.opennetlinux.org/debian/dists/unstable/main/binary-amd64/initrd-amd64_0.1.0bsn1~ubuntu1_amd64.deb

and manually put it in $ONL/debian/repo/amd64 (assuming you're building an amd64 targetted machine).

Please let me know if that makes sense,

- Rob
.

--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages