Opened 15 years ago

Closed 15 years ago

#20062 closed defect (fixed)

igraph 0.5.2 build failing

Reported by: alexsusemihl@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: igraph

Description (last modified by nerdling (Jeremy Lavergne))

So I've been trying to get igraph to build through macports but there seems to be something wrong. I get the message below. I don't really know what it means but it seems someone had similar trouble installing ffmpegx. Tickets #16156 and #16157 i think. Any help would be welcome!

Alex Susemihl.

PS: the whole log from ports is attached

ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___gmpn_add_n from /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs

Attachments (2)

output.txt (11.6 KB) - added by alexsusemihl@… 15 years ago.
output of "sudo port install igraph"
out.txt (176.2 KB) - added by alexsusemihl@… 15 years ago.
output of sudo port -v build igraph

Download all attachments as: .zip

Change History (21)

Changed 15 years ago by alexsusemihl@…

Attachment: output.txt added

output of "sudo port install igraph"

comment:1 in reply to:  description Changed 15 years ago by alexsusemihl@…

Replying to alexsusemihl@…:

So I've been trying to get igraph to build through macports but there seems to be something wrong. I get the message below. I don't really know what it means but it seems someone had similar trouble installing ffmpegx. Tickets 16156 and 16157 i think. Any help would be welcome!

Alex Susemihl.

PS: the whole log from ports is attached

ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___gmpn_add_n from /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs

I forgot to add: I'm using mac os 10.5.7.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Keywords: igraph removed
Owner: changed from macports-tickets@… to snc@…

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)
Status: newassigned

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

Are you attempting to use igraph 0.5.1? The current version in MacPorts is 0.5.2 (has been for about 3 weeks).

Can you run these commands let me know if the current version fails as well: sudo port clean igraph sudo port selfupdate sudo port install igraph

Thanks

comment:5 Changed 15 years ago by nerdling (Jeremy Lavergne)

You might also consider running port outdatedto see what other packages you have that are out-of-date.

comment:6 in reply to:  5 Changed 15 years ago by alexsusemihl@…

Replying to snc@…:

You might also consider running port outdatedto see what other packages you have that are out-of-date.

Yes, I was weirdly building the wrong version and there were some things outdated, but i corrected both issues and somehow keep getting the same message! I cleaned igraph, selfupdated and upgraded freetype, readline, gettext and some others, but it still doesnt build, giving me the same error!

comment:7 Changed 15 years ago by nerdling (Jeremy Lavergne)

Summary: igraph 0.5.1 build failingigraph 0.5.2 build failing

Do you have the latest xcode installed? What architecture are you building upon?

Also, can you clean igraph again and send me the results of: port patch igraph port -v build igraph

Thanks!

comment:8 in reply to:  7 ; Changed 15 years ago by alexsusemihl@…

Replying to snc@…:

Do you have the latest xcode installed? What architecture are you building upon?

Also, can you clean igraph again and send me the results of: port patch igraph port -v build igraph

Thanks!

Yes, I couldn't find what the latest version of xcode is, but software update doesnt find a more recent one. I've got version 3.1.2. port patch igraph runs with no further problems, and then building gives the same errors. The last few lines are

ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___gmpn_add_n from /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
make[3]: *** [libigraph.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for igraph): org.macports.build
Error: Status 1 encountered during processing.

Do you want me to attach the whole output? I could build it again then!

Thanks for the attention man! alex.

comment:9 Changed 15 years ago by alexsusemihl@…

My architecture is i386. I'm on an 2.4ghz intel core 2 duo with 2 gb ram! Alex.

comment:10 in reply to:  8 Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to alexsusemihl@…:

Do you want me to attach the whole output? I could build it again then!

Yes I was hoping to get the whole output from the configure and build phases.

You can find out what version of xcode you're running by xcodebuild -version:

Xcode 3.1.3
Component versions: DevToolsCore-1192.0; DevToolsSupport-1186.0
BuildVersion: 9M2736

comment:11 Changed 15 years ago by alexsusemihl@…

I've got the vrsion 3.1.2:

Xcode 3.1.2
Component versions: DevToolsCore-1148.0; DevToolsSupport-1102.0
BuildVersion: 9M2621

I'll build igraph again. And then you'll get the whole picture! Should I try to find some way of updating xcode to 3.1.3?

Thanks.

comment:12 in reply to:  11 Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to alexsusemihl@…:

Should I try to find some way of updating xcode to 3.1.3?

Yes, it's available at apple's site.

Changed 15 years ago by alexsusemihl@…

Attachment: out.txt added

output of sudo port -v build igraph

comment:13 Changed 15 years ago by alexsusemihl@…

Ok, so the output is in the attached file out.txt, not ouput.txt!

Thanks, I'm downloading the latest xcode, lets see!

Alex.

comment:14 in reply to:  13 Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to alexsusemihl@…:

Ok, so the output is in the attached file out.txt, not ouput.txt!

Thanks, I'll start going through it.

Replying to alexsusemihl@…:

Thanks, I'm downloading the latest xcode, lets see!

Awesome. Remember to do a clean before you build it again. If upgrading xcode is all it takes to fix it I'll need to know so I can tell the port to require a minimum version of xcode.

comment:15 Changed 15 years ago by alexsusemihl@…

Well, i tried to build igraph on my friends macbook, also running xcode 3.1.2, and it worked without any problems so that doesnt seem to be the problem. I'm still downloading the new version but I'm not counting on this to work anymore!

If there are any new ideas, i'd be glad!

Thanks, Alex.

comment:16 Changed 15 years ago by alexsusemihl@…

I got it to build!! Apparently, there is some sort of hidden dependence on the gmp port. A friend of mine noticed that the libgmp.a file was being wrongfully linked. So i looked for my libgmp, noticed i didnt have that port installed. After i installed it, everything went fine!

So, problem solved. Thanks for the attention anyways!

Alex.

comment:17 Changed 15 years ago by nerdling (Jeremy Lavergne)

Awesome on locating the gmp dependency. This is important to know, however and I should add it to the portfile.

comment:18 Changed 15 years ago by nerdling (Jeremy Lavergne)

I added the gmp dependency in r53185. Does that appear to be the only dependency you see missing?

comment:19 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.