<div dir="ltr"><div><div>I just realized this solution did not go to the list.<br><br></div>Also, a private email was sent to me with this suggestion:<br><br>"I have today the same error but I do this and works:<br>
run configure with this argument <br>
<code>coin_skip_warn_cxxflags=yes"<br><br></code></div><code>Which I have not tested.<br></code><div><div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><br>Jason<br><a href="http://moorepants.info" target="_blank">moorepants.info</a><br><span>+01 <a href="tel:530-601-9791" value="+15306019791" target="_blank">530-601-9791</a></span><br></div></div></div>
<br><div class="gmail_quote">On Fri, Jul 3, 2015 at 12:29 PM, Jason Moore <span dir="ltr"><<a href="mailto:moorepants@gmail.com" target="_blank">moorepants@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Stefan,<br><br></div>That fixes it. `make test` passes after compile.<br><br></div>Thanks!<br clear="all"><div><div class="gmail_extra"><div><div><div dir="ltr"><br>Jason<br><a href="http://moorepants.info" target="_blank">moorepants.info</a><br><span>+01 <a href="tel:530-601-9791" value="+15306019791" target="_blank">530-601-9791</a></span><br></div></div></div><div><div>
<br><div class="gmail_quote">On Fri, Jul 3, 2015 at 12:18 PM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
can you try whether changing __GNUC_PATCHLEVEL__ == 3 to __GNUC_PATCHLEVEL__ >= 2 in src/Common/IpUtils.cpp (2 places) will help?<br>
<br>
Stefan<div><div><br>
<br>
<br>
<br>
On 07/03/2015 09:06 PM, Jason Moore wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
I'm on Ubuntu 14.04 with gcc 4.8.2 and I'm getting a compile error about a<br>
random number generator:<br>
<br>
g++ -DHAVE_CONFIG_H -I. -I../../../../Ipopt/src/Common -O3 -pipe -DNDEBUG<br>
-pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall<br>
-Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas<br>
-Wno-long-long -DIPOPT_BUILD -MT IpUtils.lo -MD -MP -MF .deps/IpUtils.Tpo<br>
-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<br>
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<br>
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<br>
Ipopt::IpRandom01()':<br>
../../../../Ipopt/src/Common/IpUtils.cpp:187:3: warning: no return<br>
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" target="_blank">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,<br>
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.<br>
<br>
I've seen some other messages online saying that this is an error with gcc<br>
4.8.3 and that it should be fixed in trunk. I've tried 3.12 and trunk (btw,<br>
this commit <a href="https://projects.coin-or.org/Ipopt/changeset/2584" rel="noreferrer" target="_blank">https://projects.coin-or.org/Ipopt/changeset/2584</a> is causing<br>
configure to fail for me because it can't locate one of the new files or<br>
something), but both fail with the same compile error.<br>
<br>
Any ideas what is wrong?<br>
<br>
Jason<br>
<a href="http://moorepants.info" rel="noreferrer" target="_blank">moorepants.info</a><br>
+01 <a href="tel:530-601-9791" value="+15306019791" target="_blank">530-601-9791</a><br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div></div></div>