User Tools

Site Tools


informatica:hp_z230t_400wb_topspin327

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
informatica:hp_z230t_400wb_topspin327 [2019/08/19 15:49]
miquel [Problemes amb la compilació dels programes AU]
informatica:hp_z230t_400wb_topspin327 [2019/08/19 16:07]
miquel [Problemes amb la compilació dels programes AU]
Line 698: Line 698:
 ===== Problemes amb la compilació dels programes AU ===== ===== Problemes amb la compilació dels programes AU =====
  
 +Primer error:
  
   * [[https://selkieupsilon.blogspot.com/2018/10/starting-topspin-and-compiling-au.html | Starting Topspin and compiling AU programs on update from Ubuntu 16.04 to 18.04]]   * [[https://selkieupsilon.blogspot.com/2018/10/starting-topspin-and-compiling-au.html | Starting Topspin and compiling AU programs on update from Ubuntu 16.04 to 18.04]]
   * [[https://selkieupsilon.blogspot.com/2017/07/issue-with-compiling-au-programs-on.html | Installation and compiling AU programs on Topspin 3.5 pl7 under Ubuntu 16.04 LTS (Xenial)]]   * [[https://selkieupsilon.blogspot.com/2017/07/issue-with-compiling-au-programs-on.html | Installation and compiling AU programs on Topspin 3.5 pl7 under Ubuntu 16.04 LTS (Xenial)]]
- 
   * [[https://forums.xilinx.com/t5/Vivado-High-Level-Synthesis-HLS/Testbench-error-with-gcc/td-p/756773 | Testbench error with gcc]]   * [[https://forums.xilinx.com/t5/Vivado-High-Level-Synthesis-HLS/Testbench-error-with-gcc/td-p/756773 | Testbench error with gcc]]
- 
- 
- 
- 
  
 <file> <file>
Line 746: Line 741:
 # #
 </file> </file>
 +
 +
 +==== Configuració de LD_LIBRARY_PATH  ====
 +
 +The ldconfig command will show these paths for you: ''ldconfig -v | grep -v ^$'\t'''
 +
 +The paths are set in /etc/ld.so.conf and /etc/ld.so.conf.d.
 +
 +
 +
 +  * [[https://unix.stackexchange.com/questions/279397/ldd-does-not-find-path-how-to-add | ldd does not find path, How to add]]
 +  * [[https://serverfault.com/questions/480008/finding-ldd-search-path | finding ldd search path]]
 +
 +
 +
  
  
Line 781: Line 791:
 ... ...
 </file> </file>
 +
 +Algunes comandes útils:
 +
 +<file>
 +# export XWINNMRHOME=/opt/topspin3.6.1
 +# cd $XWINNMRHOME/exp/stan/nmr/au
 +# ./makeau -help
 +# ./makeau -libraries ./src/muiltizg
 +# ./makeau -show ./src/multizg
 +# ./makeau -native -show ./src/multizg
 +</file>
 +
 +==== ld: /usr/lib32/crti.o: unrecognized relocation (0x2b) in section `.init' ====
 +
 +L'intent de compilar un programa (multizg) un cop resolt el problema anterior dona el següent error:
 +
 +<file>
 +# ./makeau -show ./src/multizg
 +/opt/topspin3.6.1/gnu/bin/gcc -B/opt/topspin3.6.1/gnu/lib/gcc/ -c -DLINUX_INTEL -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  -g -m32 -w -I/opt/topspin3.6.1/prog/include -I/opt/topspin3.6.1/gnu/lib/gcc/i686-pc-linux-gnu/4.9.1/include  multizg.c 
 +/opt/topspin3.6.1/gnu/bin/c++ -B/opt/topspin3.6.1/gnu/lib/gcc/ -L/opt/topspin3.6.1/gnu/lib-B/lib32 -B/usr/lib32  -m32 -Wl,-warn-common,-warn-constructors  -s  /opt/topspin3.6.1/prog/au/bin/multizg.o  /opt/topspin3.6.1/prog/shlib/auliba.so [...] /opt/topspin3.6.1/prog/shlib/libxerces-c.so /opt/topspin3.6.1/prog/shlib/libomnithread.so  -lm -ldl   -o multizg
 +/opt/topspin3.6.1/gnu/bin/../lib/gcc/i686-pc-linux-gnu/4.9.1/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib32/crti.o: unrecognized relocation (0x2b) in section `.init'
 +/opt/topspin3.6.1/gnu/bin/../lib/gcc/i686-pc-linux-gnu/4.9.1/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Bad value
 +collect2: error: ld returned 1 exit status
 +</file>
 +
 +que està causat per //using a older version of ld to link a library that had been built with a newer version// i la solució és //The fix is either to build the library that you want to link with a older version of the binutils suite, or to upgrade ld on the machine that wants to link that library.//
 +
 +  * [[https://stackoverflow.com/questions/46058050/unable-to-compile-unrecognized-relocation | Unable to compile: unrecognized relocation]]
  
informatica/hp_z230t_400wb_topspin327.txt · Last modified: 2020/08/12 12:21 by miquel