LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2012, 01:48 PM   #1
newdevos
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Problem, compilation option : lgb-linux


Hi all,
I am installing GT ITM on my Ubuntu distribution (Ubuntu 12.04 LTS).
But, when I run "make all" I face this problem:
Code:
/usr/bin/ld: skipping incompatible ../lib/libgb-linux.a when searching for -lgb-linux
/usr/bin/ld: cannot find -lgb-linux
collect2: ld returned 1 exit status
make: *** [itm] Error 1
In fact, the problem is due to the compile option : "lgb-linux" !!!
I did not find any good answer to fix this issue !
I am looking for your support.
Thanks in advance !
 
Old 06-07-2012, 02:00 PM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 635

Rep: Reputation: 186Reputation: 186
The issue is that the only libgb-linux you have in your system is in a form not compatible with the compiler output you're generating.
This frequently happens in multilib systems, where one should find 32 bit and 64 bit versions of the same library but happens to find only the one which is not currently needed by the compilation job.
It could also be that the program you're compiling needs a shared version of libgb-linux (libraryName.so) and not a static one (libraryName.a).
 
Old 06-07-2012, 04:00 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Welcome to LQ.

May be you are trying to compile an ancient version of 'gt-itm' ?
( Never seen a libgb-linux.a ).
I see gt-itm compile OK several times a week, at test compiling all
the patched versions of ns-allnone-2.xx, that LQ members ask about.

The dependencies ctangle, sgb (creates libgb.a) are included in ns-allinone.

Example, Ubuntu 12.04, both versions : 32bits and 64bits ....
cd ns-allinone-2.35/ && export CC=gcc-4.4 CXX=g++-4.4 && ./install ;
cd gt-itm/bin/ && sudo cp * /usr/local/bin/
Result : /usr/local/bin/ itm edriver sgb2alt sgb2comns sgb2hierns sgb2ns

.

Last edited by knudfl; 06-08-2012 at 03:25 PM.
 
Old 06-10-2012, 01:39 AM   #4
newdevos
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your help.
In fact, to fix my problem I downloaded NS package and build it, so I got GT-ITM (which is a component in NS).
Before, I tried to build GT-ITM as standalone package but I think the source code should be updated !

I am looking now on the output of GT-ITM.
In fact, I can get something like that:
Code:
GRAPH (#nodes #edges id uu vv ww xx yy zz):
10 28 geo(0,{10,10,3,0.200,0.500,0.500}) 10 

VERTICES (index name u v w x y z):
0 0 3 4 
1 1 8 6 
2 2 7 6 
3 3 6 0 
4 4 8 1 
5 5 0 3 
6 6 4 0 
7 7 3 6 
8 8 1 5 
9 9 7 2 

EDGES (from-node to-node length a b):
0 9 4 0 
0 4 6 0 
0 2 4 0 
1 8 7 0 
2 6 7 0 
3 9 2 0 
3 8 7 0 
3 5 7 0 
4 7 7 0 
4 6 4 0 
5 9 7 0 
5 7 4 0 
7 9 6 0 
8 9 7 0
when I apply sgb2alt (binary file), but I didn't understand the meaning of each column.
The 1st and the 2nd are for ID and name, however I haven't any idea about the remaining columns for Nodes and Arcs.

Thanks in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Any option in GCC to SEE the dynamic bindings processing happening, in the compilation output? TheIndependentAquarius Programming 8 02-23-2011 02:19 AM
MySql Compilation Error with Archive storage option ashish_neekhra Linux - Server 0 11-04-2009 11:25 PM
cross compilation error -- /usr/local/bin/ld: unrecognized option '--as-needed' shabeervsm Linux - Kernel 1 09-08-2008 05:01 AM
Compilation error : cc: unrecognized option `-KPIC' adarshkmr Linux - Newbie 2 02-12-2008 12:00 AM
Kernel compilation: Is it posiible to change built-in[] option to module<> ravime Linux - Kernel 4 07-30-2007 09:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration