Any way to not compiling source code?

Hi ,all
  I have been using graph_tool for a few months.
  I finished compiling it in Archlinux in 4G memory, but failed to compile
in Ubuntu linux in 4G memory.
  I wonder if there exists some way to directly use the library without
compiling source code.
  Or , what have been done during the compiling of graph_tool?
  How can we use the post-compile files in another computer?
  Advise on same operating system or different operating system are both
OK.

Thank you all!

attachment.html (791 Bytes)

Hi,

Hi,

I had the same problem trying to compile graph-tool in Ubuntu. At first
I tried to simply buy more memory, and went all the way up to 12 G.

Unfortunately the exhausted memory problem was still there (so this
might more be some kind of a bug, no?). I then followed the advice given
in jully on a similar thread:

    g.venkatasubramaniyan
    <http://search.gmane.org/?author=g.venkatasubramaniyan&sort=date&gt; |
    1 Jul 23:52

    I noticed that the temp file( ccwxyz.s) getting bigger and bigger
    before shooting this error.
    So i did a "make -n" in the directory were did this error is
    reported to get the exact compilation syntax and hand created the
    .lo file myself (maually) for that file alone.

    After that I was able to proceed with compilation successfully and
    able to do examples. seems to a problem with the tools libtool, etc ...
    May be you can also try that way.

So I did this and it worked. More precisely, in the graph-tool directory
(after a make clean or on a fresh copy of the source):

graph-tool $ ./autogen.sh
graph-tool $ ./configure
graph-tool $ cd src/graph/layout/
graph-tool $ make -n

This last command issues several chunks of bash code (one for each .cc
files). Just copy-paste the section corresponding to sfdp_layout and
wait until it compiles that part. After that go back to the source tree
root and

graph-tool $ make && sudo make install

It worked for me. I haven't tried with less memory of course, but I
suspect it should work.

Hope this helps,

Cheers

Guillaume

attachment.html (3.92 KB)

This is absolutely strange... I don't have that much memory on my laptop
and I compile graph-tool just fine. I'm curious: What GCC version do you
have in your ubuntu install (exact version, including ubuntu patches)?
Did you try with different versions?

Does the compilation stay below 4G if you disable sfdp_layout? If not,
what maximum value does it scale to?

Although this is almost certainly a problem with a specific version of
GCC, I intend to modify sfdp_layout to use less memory during
compilation in any case.

Cheers,
Tiago

Hi,

I had the same problem trying to compile graph-tool in Ubuntu. At first I tried to simply buy more memory, and went all the way up to 12 G.

Unfortunately the exhausted memory problem was still there (so this might more be some kind of a bug, no?). I then followed the advice given in jully on a similar thread:

This is absolutely strange... I don't have that much memory on my laptop
and I compile graph-tool just fine. I'm curious: What GCC version do you
have in your ubuntu install (exact version, including ubuntu patches)?
Did you try with different versions?

"apt-cache show gcc" returns this on my box:

Package: gcc
Priority: optional
Section: devel
Installed-Size: 41
Maintainer: Ubuntu Developers <ubuntu-devel-discuss(a)lists.ubuntu.com>
Original-Maintainer: Debian GCC Maintainers <debian-gcc(a)lists.debian.org>
Architecture: i386
Source: gcc-defaults (1.112ubuntu5)
Version: 4:4.6.3-1ubuntu5
Provides: c-compiler
Depends: cpp (>= 4:4.6.3-1ubuntu5), gcc-4.6 (>= 4.6.3-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9,
libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Filename: pool/main/g/gcc-defaults/gcc_4.6.3-1ubuntu5_i386.deb

That's the basic up-to-date gcc package provided by ubuntu.
I didn't try any other version. On my 4G ram laptop, with sfdp_layout
disabled (brutally taken away from source, though that leads to problems
later on) it manages to compile, I remeber monitoring memory an it would
seat around 3 G.

attachment.html (3.19 KB)

Ubuntu also offers GGC 4.7, although it is not the default. Could you
please try with it and say if you encounter the same problem?

Cheers,
Tiago

Hi,

Hi,

I was absent last week so couldn't follow up on that.

I'll give it a try some time this week on my small laptop.

Guillaume

attachment.html (1.5 KB)

Hi list, hi Tiago,

Just to conclude the thread: the latest git (release-2.2.18-2-g01d9c51)
compiles like a charm under Ubuntu 12.10 with (the package manager
default) gcc4.7

Cheers,

Guillaume

attachment.html (1.57 KB)