Niragm installation

890 views
Skip to first unread message

Amit Chaurasia

unread,
Apr 11, 2014, 2:29:30 AM4/11/14
to nirgam...@googlegroups.com
I am getting the following error :

g++  -shared -Wl,-soname,application/lib/App_send.so -o application/lib/App_send.so application/src/App_send.o
/usr/bin/ld: application/src/App_send.o: relocation R_X86_64_32S against `_ZTV8App_send' can not be used when making a shared object; recompile with -fPIC
application/src/App_send.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [application/lib/App_send.so] Error 1


and searched a lot but i got no success please anyone who can help me out and i am getting the same issue with nirgam-3.0. earlier i was using 32-bit OS and it was working perfectly. I don't know what this error and how to remove this

I am using and changes made by me:

1. Using 64 bit Ubuntu13.10(with dual boot Windows8.1 Pro) AND SystemC-2.3.0
2. Changed TARGET_ARCH = linux64, changed W1 to Wl in Makefile
3. applied SC_WRITE.... = DISABLE
4. Set the path of systemc installation path in makefile
5. Even Applied to compile with -fPIC by making changes in makefile.defs

      $(CC) $(CFLAGS) $(INCDIR) -o $@ -c -fPIC $<

Please Help
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


pankaj kumar

unread,
Apr 16, 2014, 12:07:31 AM4/16/14
to nirgam...@googlegroups.com

This error comes up when nirgam is compiled on 64 bit platform using systemc library compiled on 32 bit. solution to this is download and compile systemc and add the path in makefile.defs.

PANKAJ KUMAR
MNIT JAIPUR 

Amit Chaurasia

unread,
Apr 16, 2014, 1:02:16 AM4/16/14
to nirgam...@googlegroups.com
Respected Sir,
 I compiled the systemc-2.3.0 on a 64-bit system but error remains the same.
I even changed the path of SYSTEMC to the default systemC64 comes with the nirgam-2.3.0 package but still the error is same


--
You received this message because you are subscribed to the Google Groups "NIRGAM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nirgam-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--Thanks with Regards--
Amit Chaurasia,
M.Tech. (Computer Science)
Dayalbagh Educational Institute
Mob No.   +91-9045060397
amitde...@yahoo.com

pankaj kumar

unread,
Apr 16, 2014, 1:08:29 AM4/16/14
to nirgam...@googlegroups.com
few more changes need to be made
1) add -Fpic  in comiplation rules (in makefile.defs)
2) set TARGET_ARCH = linux64 in makefile

then it should work.


--
You received this message because you are subscribed to a topic in the Google Groups "NIRGAM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nirgam-users/J_OhTCad_Ao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nirgam-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
PANKAJ KUMAR
MNIT JAIPUR

Amit Chaurasia

unread,
Apr 16, 2014, 1:21:35 AM4/16/14
to nirgam...@googlegroups.com
Respected Sir,
 I made the following Changes but the error is same

.cpp.o:

    $(CC) $(CFLAGS) $(INCDIR) -o $@ -c -fPIC$<

.cc.o:

    $(CC) $(CFLAGS) $(INCDIR) -o $@ -c -fPIC$<


i tried this earlier also compiling with -fPIC but there no effect of this
---- one more thing is that i compiled systemC-2.3 in my Filesystem Drive

pankaj kumar

unread,
Apr 16, 2014, 1:33:23 AM4/16/14
to nirgam...@googlegroups.com
Try it as 
.cpp.o:
    $(CC) $(CFLAGS) $(INCDIR)  
-fPIC -o $@ -c  $<

.cc.o:
    $(CC) $(CFLAGS) $(INCDIR) 
 -fPIC -o $@ -c $<

it is not problem , systemc should be compiled correctly.

Amit Chaurasia

unread,
Apr 16, 2014, 2:11:51 AM4/16/14
to nirgam...@googlegroups.com
Respected Sir,
 I made the above changes as:


.cpp.o:
    $(CC) $(CFLAGS) $(INCDIR) -fPIC -o $@ -c $<

.cc.o:
    $(CC) $(CFLAGS) $(INCDIR) -fPIC -o $@ -c $<


but unfortunately the error is same

Amit Chaurasia

unread,
Apr 17, 2014, 5:21:52 AM4/17/14
to nirgam...@googlegroups.com
Respected Sir,
 I tried all possible steps but the error remains the same is there any alternative to install NIRGAM

pankaj kumar

unread,
Apr 17, 2014, 11:20:42 PM4/17/14
to nirgam...@googlegroups.com
Install a 32 bit os on virtual machine and install nirgam on that os.

PANKAJ KUMAR

Sarzamin khan

unread,
Nov 8, 2015, 11:01:08 AM11/8/15
to NIRGAM Users
Edit the makefile as :
# makefile

# architecture
TARGET_ARCH = linux64

# compiler
CC     = g++ 

# debug flag
DEBUG  = -g2
OTHER  = -Wall
LDFLAG = -rdynamic
SOM    = -fPIC
#CFLAGS = $(DEBUG) $(OTHER) $(LDFLAG)
CFLAGS = $(DEBUG) $(LDFLAG) $(SOM)

MODULE = nirgam

ROUTER_MODEL = core/orion/SIM_router.cpp core/orion/SIM_arbiter.cpp core/orion/SIM_crossbar.cpp 
POWER_MODEL = core/orion/SIM_router_power.cpp core/orion/orion_router_power.cpp
LINK_MODEL   = core/orion/SIM_link.cpp
CLOCK_MODEL  = core/orion/SIM_clock.cpp
AREA_MODEL   = core/orion/orion_router_area.cpp core/orion/SIM_router_area.cpp
ARRAY_MODEL  = core/orion/SIM_array_l.cpp core/orion/SIM_array_m.cpp core/orion/SIM_cam.cpp
ALU_MODEL    = core/orion/SIM_ALU.cpp
OTHER_MODEL  = core/orion/SIM_misc.cpp core/orion/SIM_permu.cpp
STATIC_MODEL = core/orion/SIM_static.cpp
MISC_SRC     = core/orion/SIM_util.cpp core/orion/SIM_time.cpp

SRCS         = $(ARRAY_MODEL) $(ROUTER_MODEL) $(POWER_MODEL) $(ALU_MODEL) $(OTHER_MODEL) \
               $(STATIC_MODEL) $(LINK_MODEL) $(CLOCK_MODEL) $(MISC_SRC) $(AREA_MODEL)

CORE_SRCS = \
core/rng.cpp \
core/fifo.cpp \
core/InputChannel.cpp \
core/ipcore.cpp \
core/OutputChannel.cpp \
core/VCAllocator.cpp \
core/NWTile.cpp \
core/NoC.cpp \
$(SRCS) \
core/main.cpp \
core/Controller.cpp \
core/ranvar.cpp \
application/src/TG.cpp\
application/src/Traffic_patterns.cpp \
application/src/NED_traffic.cpp

APP_SRCS = \
application/src/App_send.cpp \
application/src/App_concat.cpp \
application/src/App_recv.cpp \
application/src/CBR.cpp \
application/src/Bursty.cpp \
application/src/VBR.cpp\
application/src/Trace_traffic.cpp \
application/src/Sink.cpp \
application/src/Multimedia.cpp \


ROUTER_SRCS = \
router/src/OE_router.cpp \
router/src/XY_router.cpp \
router/src/source_router.cpp \
router/src/Q_router.cpp\
router/src/DYADrouter.cpp \
router/src/maxy_router.cpp\
router/src/ftxy.cpp\
router/src/PROM_router.cpp\
router/src/ER_router.cpp

CORE_OBJS = $(CORE_SRCS:.cpp=.o)

APP_OBJS = $(APP_SRCS:.cpp=.o)

ROUTER_OBJS = $(ROUTER_SRCS:.cpp=.o)

APP_LIB = $(subst src,lib,$(APP_OBJS:.o=.so))

ROUTER_LIB = $(subst src,lib,$(ROUTER_OBJS:.o=.so))

include Makefile.defs
# DO NOT DELETE

gopayya

unread,
Apr 18, 2016, 6:42:52 AM4/18/16
to NIRGAM Users
how to apply the bench mark in nirgam?

gopayya

unread,
Apr 18, 2016, 6:44:13 AM4/18/16
to NIRGAM Users
can you give me the sample input of running XY_Routing algorithm?



On Sunday, November 8, 2015 at 9:31:08 PM UTC+5:30, Zaheer khan wrote:
Message has been deleted

Priyadarshan Mohanty

unread,
Feb 9, 2017, 12:35:28 AM2/9/17
to NIRGAM Users
even i have the same error for a 32 bit ubuntu os. any ideas how to remove that error?

Rohit Mahar

unread,
Feb 9, 2017, 4:24:33 AM2/9/17
to nirgam...@googlegroups.com
Nirgam works in linux 32 bit only. This error is related to linux version. Try to install with 32 bit os.

--
You received this message because you are subscribed to the Google Groups "NIRGAM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nirgam-users+unsubscribe@googlegroups.com.

Priyadarshan Mohanty

unread,
Feb 9, 2017, 5:14:39 AM2/9/17
to nirgam...@googlegroups.com

I am using 32 bit Ubuntu only yet I'm getting the same error. Pls help regarding this sir.


 Sent with Mailtrack

--
You received this message because you are subscribed to a topic in the Google Groups "NIRGAM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nirgam-users/J_OhTCad_Ao/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nirgam-users+unsubscribe@googlegroups.com.

Akshay Parashar

unread,
Sep 18, 2017, 1:41:29 PM9/18/17
to NIRGAM Users
I faced the same error....i know u must have solved it by now :P.....bt for anyone looking for a solution to this problem....follow all the steps discussed in the messages here but if you still get this error....then give this command in the terminal inside the nirgam directory: $~ make ultraclean after this command again give the make command and it should successfully install. 

Ali Abuassal

unread,
Mar 21, 2019, 11:18:13 AM3/21/19
to NIRGAM Users
Hi guys,

Anyone still around I am having the same error even though I am using 32 bit Ubuntu.
Any luck ?

Cheers,,,

JUNAID ALI

unread,
Jun 2, 2023, 12:57:42 PM6/2/23
to NIRGAM Users
Hello everyone,
Has anyone solved this problem. I am facing the same issue.
Any help from you would surely be valuable.

Thank You
Reply all
Reply to author
Forward
0 new messages