



EAN1
by tarunbunkar on Feb 16, 2015 |
tarunbunkar
Posts: 6 Joined: May 14, 2014 Last seen: Jul 18, 2015 |
||
hi,
i am trying to configure the EAN1 provided by embescom, i am using systemc2.3.1 which already have TLM installed but i am getting this error when i looked into config.log file....
onfigure:15809: g++ -o conftest -g -O2 -I/usr/local/systemc-2.3.1/include -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/systemc-2.3.1/include/tlm -I/opt/or1ksim/include -L/usr/local/systemc-2.3.1/lib-linux64 -L/opt/or1ksim/lib conftest.cpp -lsystemc >&5
/usr/local/systemc-2.3.1/lib-linux64/libsystemc.so: undefined reference to `sc_main'
collect2: error: ld returned 1 exit status
configure:15816: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "esp1-tlm2-or1ksim-examples"
| #define PACKAGE_TARNAME "esp1-tlm2-or1ksim-examples"
| #define PACKAGE_VERSION "2.0"
| #define PACKAGE_STRING "esp1-tlm2-or1ksim-examples 2.0"
| #define PACKAGE_BUGREPORT "jeremy.bennett@embecosm.com"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PACKAGE "esp1-tlm2-or1ksim-examples"
| #define VERSION "2.0"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
| #include
| int
| main ()
| {
| sc_core::sc_start ();
| ;
| return 0;
| }
configure:15830: error: in `/home/tarun/build':
configure:15833: error: SystemC library not found
See `config.log' for more details.
regards
tarun
|
RE: EAN1
by tarunbunkar on Feb 16, 2015 |
tarunbunkar
Posts: 6 Joined: May 14, 2014 Last seen: Jul 18, 2015 |
||
configure:15809: g++ -o conftest -g -O2 -I/usr/local/systemc-2.3.1/include -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/systemc-2.3.1/include/tlm -I/opt/or1ksim/include -L/usr/local/systemc-2.3.1/lib-linux64 -L/opt/or1ksim/lib conftest.cpp -lsystemc >&5
/usr/local/systemc-2.3.1/lib-linux64/libsystemc.so: undefined reference to `sc_main'
collect2: error: ld returned 1 exit status
configure:15816: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "esp1-tlm2-or1ksim-examples"
| #define PACKAGE_TARNAME "esp1-tlm2-or1ksim-examples"
| #define PACKAGE_VERSION "2.0"
| #define PACKAGE_STRING "esp1-tlm2-or1ksim-examples 2.0"
| #define PACKAGE_BUGREPORT "jeremy.bennett@embecosm.com"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PACKAGE "esp1-tlm2-or1ksim-examples"
| #define VERSION "2.0"
| #define _GNU_SOURCE 1
| /* end confdefs.h. */
| #include
| int
| main ()
| {
| sc_core::sc_start ();
| ;
| return 0;
| }
configure:15830: error: in `/home/tarun/build':
configure:15833: error: SystemC library not found
See `config.log' for more details.
config.log (32 kb)
|
RE: EAN1
by wallento on Feb 16, 2015 |
wallento
Posts: 28 Joined: Jan 24, 2009 Last seen: Nov 8, 2018 |
||
Hi,
did you set SYSTEMC and/or SYSTEMC_HOME properly? Best, Stefan |
RE: EAN1
by tarunbunkar on Feb 21, 2015 |
tarunbunkar
Posts: 6 Joined: May 14, 2014 Last seen: Jul 18, 2015 |
||
yes stefan i have provided systemc_home path in my bash file.
|



