Closed GoogleCodeExporter closed 9 years ago
OS: Ubuntu 11.04
GCC: gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Also can't seem to get this to build on RHEL/CentOS type setup - fails earlier.
Original comment by uksysad...@gmail.com
on 27 Jun 2011 at 1:29
Hi, thanks for the reports. We've recently made major changes to the mod_spdy
codebase, including upgrading our version of net/spdy/, which I hope has fixed
these issues. If you sync to trunk at this point, do you still see any build
errors?
Original comment by mdste...@google.com
on 21 Dec 2011 at 3:32
Hi!
I'm using same setup (Gentoo/64bit/GCC 4.5.2). Updated to current revision:
r221.
Now I have error even earlier:
$ make BUILDTYPE=Release
CXX(target) out/Release/obj.target/base/third_party/chromium/src/base/string16.o
CXX(target) out/Release/obj.target/base/third_party/chromium/src/base/time_posix.o
third_party/chromium/src/base/time_posix.cc: In member function ‘timespec
base::TimeDelta::ToTimeSpec() const’:
third_party/chromium/src/base/time_posix.cc:27: error: narrowing conversion of
‘(microseconds * 1000)’ from ‘int64’ to ‘long int’ inside { }
make: ***
[out/Release/obj.target/base/third_party/chromium/src/base/time_posix.o] Error 1
Original comment by tcat.hu
on 3 Jan 2012 at 3:04
I got the same error as already mentioned (error: narrowing conversion of
‘(microseconds * 1000)’ from ‘int64’ to ‘long int’ inside { }).
To get rid of it I had to revert to a really old revision r143 from 2010.
This appears to compile correctly.
I'm using ubuntu 10.04 for this.
I think this should really be fixed!
Btw, the ubuntu setup described here:
http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites is
for an old version 8.04
I think this should be updated since it is also mentioned that the developers
use a modified version of ubuntu 10.04 (not all packages mentioned there exist
for 10.04).
Original comment by DragonMo...@gmail.com
on 18 Jan 2012 at 5:19
I managed to fix this issue.
It may be that the developers work only on 64 bit systems so they missed this
issue.
Anyway, to be able to compile this on a 32 bit Ubuntu 10.04 I had to cast to a
long:
original:
struct timespec result =
{seconds,
microseconds * Time::kNanosecondsPerMicrosecond};
modified:
struct timespec result =
{seconds,
(long) (microseconds * Time::kNanosecondsPerMicrosecond)};
I've attached a patch-file.
Original comment by DragonMo...@gmail.com
on 19 Jan 2012 at 10:51
Attachments:
Yes, this seems to be an issue for 32-bit systems. Until it is fixed, adding a
cast to long, as shown above, is the easiest workaround.
Unfortunately, it's not just a matter of a simple patch to the mod_spdy source
tree because that file isn't actually _in_ our source tree -- rather, it gets
checked out from the Chromium source tree by gclient. So we either need to get
a patch into Chromium, or else adjust our build parameters in some way. I will
look into getting this fixed one way or the other.
Original comment by mdste...@google.com
on 27 Jan 2012 at 11:34
Issue 28 has been merged into this issue.
Original comment by mdste...@google.com
on 23 Feb 2012 at 9:15
I finally had a chance to figure out the tweak needed to our build config to
fix this issue; sorry it took so long. This should now be fixed as of r252.
Please let me know if there are any other problems with building.
Original comment by mdste...@google.com
on 24 Feb 2012 at 2:47
Original issue reported on code.google.com by
laz...@gmail.com
on 12 Apr 2011 at 4:00