Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue #247

Open
abhijeeetkumar opened this issue Feb 27, 2021 · 6 comments
Open

compilation issue #247

abhijeeetkumar opened this issue Feb 27, 2021 · 6 comments

Comments

@abhijeeetkumar
Copy link

hi despite the fact the correct path of libstdc++ is given, im facing linking error! can you please help?

[amk7371@e5-cse-204-01 zsim]$ scons-3 -j16
scons: Reading SConscript files ...
Building opt zsim at build/opt
Checking for C library hdf5... (cached) no
Checking for C library hdf5_serial... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/opt/fftoggle -Wl,-R/home/mdl/amk7371/CSE530/libconfig-1.7.2/build/lib --static build/opt/fftoggle.o build/opt/config.o build/opt/galloc.o build/opt/log.o build/opt/pin_cmd.o -L/home/mdl/amk7371/CSE530/libconfig-1.7.2/build/lib -L/home/mdl/amk7371/CSE530/hdf5-1.8.22/lib -lconfig++ -lpthread
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

g++ -o build/opt/libzsim.so -Wl,-R/home/mdl/amk7371/CSE530/libconfig-1.7.2/build/lib -Wl,--hash-style=sysv -Wl,-Bsymbolic -Wl,--version-script=/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin/pintool.ver -shared build/opt/decoder.os build/opt/network.os build/opt/text_stats.os build/opt/virt/cpu.os build/opt/cache_arrays.os build/opt/null_core.os build/opt/ooo_core.os build/opt/parse_vdso.os build/opt/zsim.os build/opt/pin_cmd.os build/opt/contention_sim.os build/opt/virt/time.os build/opt/stats_filter.os build/opt/ddr_mem.os build/opt/process_tree.os build/opt/detailed_mem.os build/opt/scheduler.os build/opt/trace_driver.os build/opt/hdf5_stats.os build/opt/virt/timeout.os build/opt/mem_ctrls.os build/opt/virt/fs.os build/opt/hash.os build/opt/utility_monitor.os build/opt/config.os build/opt/virt/syscall_name.os build/opt/proc_stats.os build/opt/cache.os build/opt/log.os build/opt/timing_cache.os build/opt/prefetcher.os build/opt/process_stats.os build/opt/virt/virt.os build/opt/access_tracing.os build/opt/coherence_ctrls.os build/opt/init.os build/opt/tracing_cache.os build/opt/lookahead.os build/opt/ooo_core_recorder.os build/opt/simple_core.os build/opt/timing_core.os build/opt/detailed_mem_params.os build/opt/debug_zsim.os build/opt/memory_hierarchy.os build/opt/timing_event.os build/opt/core_recorder.os build/opt/galloc.os build/opt/virt/ports.os build/opt/monitor.os build/opt/partition_mapper.os build/opt/dramsim_mem_ctrl.os -L/home/mdl/amk7371/CSE530/libconfig-1.7.2/build/lib -L/home/mdl/amk7371/CSE530/hdf5-1.8.22/lib -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2 -L/usr/lib/x86_64-redhat-linux6E/lib -L/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/extras/xed-intel64/lib -L/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/intel64/lib -L/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/intel64/lib-ext -lconfig++ -lpin -lxed -lpindwarf -lelf -ldl -lrt -lhdf5 -lhdf5_hl
printf "#define ZSIM_BUILDDATE "date"\n#define ZSIM_BUILDVERSION "python misc/gitver.py"" >>build/opt/version.h
scons: *** [build/opt/fftoggle] Error 1
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
scons: building terminated because of errors.
[amk7371@e5-cse-204-01 zsim]$ ls /usr/lib/gcc/x86_64-redhat-linux/4.8.2/
32/ crtendS.o finclude/ libatomic.so libgcc_s.so@ libgomp.a libquadmath.so
crtbegin.o crtfastmath.o include/ libcaf_single.a libgcov.a libgomp.so@ libstdc++.so@
crtbeginS.o crtprec32.o libasan_preinit.o libcloog-isl.so.4* libgfortranbegin.a libgomp.spec libtsan.so
crtbeginT.o crtprec64.o libasan.so libgcc.a libgfortran.so@ libitm.so rpmver
crtend.o crtprec80.o libatomic.a libgcc_eh.a libgfortran.spec libitm.spec
[amk7371@e5-cse-204-01 zsim]$ ls -la /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.so
lrwxrwxrwx 1 root root 37 Sep 20 2019 /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++.so -> ../../../../lib64/libstdc++.so.6.0.19
[amk7371@e5-cse-204-01 zsim]$

@abhijeeetkumar
Copy link
Author

can someone please help?

@bakhshalipour
Copy link

Your linker can't find the library file. Follow this.

@abhijeeetkumar
Copy link
Author

abhijeeetkumar commented Mar 9, 2021 via email

@abhijeeetkumar
Copy link
Author

abhijeeetkumar commented Mar 9, 2021 via email

@abhijeeetkumar
Copy link
Author

i tried sample test. but i get lot of undefined symbols (??) from the stack trace output. is it expected?
external dependencies versions are pin-2.14-71313-gcc.4.4.7-linux, libconfig-1.7.2 and hdf5-1.8.22

[amk7371@e5-cse-204-01 zsim]$ ./build/opt/zsim tests/simple.cfg
[H] Starting zsim, built Tue Mar 9 17:01:55 EST 2021 (rev master:113:2aea90e:2fc 13+ 9- 4fc4325d)
[H] Creating global segment, 1024 MBs
[H] Global segment shmid = 3637307
[H] Deadlock detection ON
A: Source/pin/injector_nonmac/auxvector.cpp: CopyAux: 291: unexpected AUX VEC type 26

################################################################################

STACK TRACE

################################################################################
addr2line -C -f -e "/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin" 0x5555557147f9 0x5555557155ce 0x5555557158a0 0x555555937b3c 0x55555593d2ff 0x55555593ee2d 0x55555592efe1 0x555555933b2d 0x55555592422e 0x55555592e230 0x7ffff700b555 0x55555570917a
A: Source/pin/injector_nonmac/auxvector.cpp: CopyAux: 291: unexpected AUX VEC type 26

################################################################################

STACK TRACE

################################################################################
addr2line -C -f -e "/home/mdl/amk7371/CSE530/pin-2.14-71313-gcc.4.4.7-linux/intel64/bin/pinbin" 0x5555557147f9 0x5555557155ce 0x5555557158a0 0x555555937b3c 0x55555593d2ff 0x55555593ee2d 0x55555592efe1 0x555555933b2d 0x55555592422e 0x55555592e230 0x7ffff700b555 0x55555570917a
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
Detach Service Count: 1
??:0
??
??:0
??
??:0
??
??:0
Pin 2.14
Copyright (c) 2003-2015, Intel Corporation. All rights reserved.
@CHARM-VERSION: $Rev: 71293 $
@CHARM-BUILDER: BUILDER
@CHARM-COMPILER: gcc 4.4.7
@CHARM-TARGET: ia32e
@CHARM-CFLAGS: OPTIMIZE=1 NO_INLINE=NO_INLINE
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
Detach Service Count: 1
Pin 2.14
Copyright (c) 2003-2015, Intel Corporation. All rights reserved.
@CHARM-VERSION: $Rev: 71293 $
@CHARM-BUILDER: BUILDER
@CHARM-COMPILER: gcc 4.4.7
@CHARM-TARGET: ia32e
@CHARM-CFLAGS: OPTIMIZE=1 NO_INLINE=NO_INLINE
C: Injector exited with signal 6
E: Wait for injector failed: No child processes
C: Injector exited with signal 6
E: Wait for injector failed: No child processes
[H] Child 14776 done
[H] Child 14775 done
[H] All children done, exiting

@YalandHong
Copy link

Duplicate of #228

A workaround is to add args.push_back("-ifeellucky"); near line 80 where there're a lot of arg pushes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants