<div dir="ltr"><div><div>I'm on Ubuntu 14.04 with gcc 4.8.2 and I'm getting a compile error about a random number generator:<br><br><span style="font-family:monospace,monospace"> g++ -DHAVE_CONFIG_H -I. -I../../../../Ipopt/src/Common -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long -DIPOPT_BUILD -MT IpUtils.lo -MD -MP -MF .deps/IpUtils.Tpo -c ../../../../Ipopt/src/Common/IpUtils.cpp -fPIC -DPIC -o .libs/IpUtils.o<br>../../../../Ipopt/src/Common/IpUtils.cpp:182:6: error: #error "don't have function for random number generator"<br> # error "don't have function for random number generator"<br> ^<br>../../../../Ipopt/src/Common/IpUtils.cpp:203:6: error: #error "don't have function for random number generator"<br> # error "don't have function for random number generator"<br> ^<br>../../../../Ipopt/src/Common/IpUtils.cpp: In function 'Ipopt::Number Ipopt::IpRandom01()':<br>../../../../Ipopt/src/Common/IpUtils.cpp:187:3: warning: no return statement in function returning non-void [-Wreturn-type]<br> }<br> ^<br>make[3]: *** [IpUtils.lo] Error 1<br>make[3]: Leaving directory `/home/vagrant/CoinIpopt/build/Ipopt/src/Common'<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory `/home/vagrant/CoinIpopt/build/Ipopt/src/Common'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/vagrant/CoinIpopt/build/Ipopt'<br>make: *** [all-recursive] Error 1<br>vagrant@vagrant-ubuntu-trusty-64:~/CoinIpopt/build$ aptitude show gcc<br>Package: gcc <br>State: installed<br>Automatically installed: yes<br>Version: 4:4.8.2-1ubuntu6<br>Priority: optional<br>Section: devel<br>Maintainer: Ubuntu Developers <<a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com">ubuntu-devel-discuss@lists.ubuntu.com</a>><br>Architecture: amd64<br>Uncompressed Size: 42.0 k<br>Depends: cpp (>= 4:4.8.2-1ubuntu6), gcc-4.8 (>= 4.8.2-5~)<br>Recommends: libc6-dev | libc-dev<br>Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc<br>Conflicts: gcc-doc (< 1:2.95.3)<br>Provides: c-compiler<br>Description: GNU C compiler<br> This is the GNU C compiler, a fairly portable optimizing compiler for C. <br> <br> This is a dependency package providing the default GNU C compiler.</span><br><br></div>I've seen some other messages online saying that this is an error with gcc 4.8.3 and that it should be fixed in trunk. I've tried 3.12 and trunk (btw, this commit <a href="https://projects.coin-or.org/Ipopt/changeset/2584">https://projects.coin-or.org/Ipopt/changeset/2584</a> is causing configure to fail for me because it can't locate one of the new files or something), but both fail with the same compile error.<br><br></div>Any ideas what is wrong?<br clear="all"><div><div><div><div><div class="gmail_signature"><div dir="ltr"><br>Jason<br><a href="http://moorepants.info" target="_blank">moorepants.info</a><br><span>+01 530-601-9791</span><br></div></div></div>
</div></div></div></div>