I have an issue with ld during the linking process in SystemC environment.
I would like to know if someone knows any workaround or idea to solve this issue!? Thank you.
OS: Ubuntu 16.04 and 16.10
The ncsc_env_check output is (only relevant information):
ncsc_env_check: 15.10-p001: (c) Copyright 1995-2008 Cadence Design Systems, Inc.
There is no native option on linux, switching to gnu.
64-bit environment variable detected, switching to 64-bit mode
INFO: You are using an older make version
[SOME LINES WERE REMOVED]
------------------------------------------------------------
- Performing compiler version check
------------------------------------------------------------
INFO: Your gnu C++ 4.4 compiler is supported
------------------------------------------------------------
- Performing linker/assembler version check
------------------------------------------------------------
INFO: GNU LD version: GNU ld (GNU Binutils) 2.20
INFO: Assembler: <NOT GNU ASSEMBLER>
WARNING: [AS] Assembler version not supported, looking for version (2.16.1|2.17.50|2.18)
[SOME LINES WERE REMOVED]
------------------------------------------------------------
- Performing OS version check
------------------------------------------------------------
ERROR: Your linux OS version is NOT supported: 4.4.0-59-generic
------------------------------------------------------------
- Showing environment data
------------------------------------------------------------
The sanity of your environment is being tested with the following
environment setup
CXX = /soft64/cadence/ferramentas/INCISIVE151/tools/cdsgcc/gcc/4.4/bin/g++
CXX Version = 4.4
CC = gcc
CC Version = 4.4.5
LD = /soft64/cadence/ferramentas/INCISIVE151/tools.lnx86/cdsgcc/gcc/4.4/bin/ld
Perl Directory = /usr/bin
Perl = perl version 5,
Make Directory = /usr/bin
Make = GNU make v4.1
Assembler Directory = /soft64/cadence/ferramentas/INCISIVE151/tools.lnx86/cdsgcc/gcc/4.4/install/bin/as
Assembler = <NOT GNU ASSEMBLER>
CDSROOT = /soft64/cadence/ferramentas/INCISIVE151
NCSC Version = 15.10-p001
NC-Verilog Version = 15.10-p001
NC-VHDL Version = 15.10-p001
[SOME LINES WERE REMOVED]
ncsc_env_check found a total of 14 errors.
---------------------------------------------------------------------
For example, the log from the hello_world_sc is:
» cat ncsc_run.log
TOOL: ncsc_run(64) 15.10-p001: (c) Copyright 1995-2013 Cadence Design Systems, Inc.
ncsc_run \
-64BIT \
test.cpp \
-dynamic \
-top sc_main \
-gnu \
-64BIT
$CDSROOT = /soft64/cadence/ferramentas/INCISIVE151
$TESTDIR = /home/leco/Dropbox/ultrawideband-luis-moreira/uwb-tx-ctrl/ams_sim/envtest/hello_world_sc
TOOL: ncsc(64) 15.10-p001
ncsc C++ parameters:
ncsc -COMPILER $CDSROOT/tools/cdsgcc/gcc/4.4/bin/g++
-f INCA_libs/ncsc_obj/ncsc.args
-MANUAL
-CFLAGS "-DNCSC
-I$CDSROOT/tools/systemc/include_pch
-I$CDSROOT/tools/tbsc/include
-I$CDSROOT/tools/vic/include
-I$CDSROOT/tools/methodology/OVM/CDNS-2.1.2/sc/src
-I$CDSROOT/tools/methodology/UVM/CDNS-1.1d/sc/sc
-I$CDSROOT/tools/methodology/UVM/CDNS-1.1d/ml/sc
-I$CDSROOT/tools/systemc/include/cci
-I$CDSROOT/tools/systemc/include/factory
-I$CDSROOT/tools/systemc/include/tlm2
-fPIC
-c
-x c++ -Wall"
ncsc: compiling $TESTDIR/test.cpp
building library ncsc_model.so
ld: BFD (GNU Binutils) 2.20 internal error, aborting at ../../binutils-2.20/bfd/reloc.c line 446 in bfd_get_reloc_size
ld: Please report this bug.
collect2: ld returned 1 exit status
INCA_libs/Makefile.ncsc:411: recipe for target 'libncsc_model.so' failed
make: *** [libncsc_model.so] Error 1
ncsc_run: *E,TBBLDF: Failed to build test library
./libncsc_model.so