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 17:41]
miquel [Problemes amb l'IconNMR (xwish3)]
Line 695: Line 695:
   * [[https://queue.acm.org/detail.cfm?id=1388786 | Corba: Gone But (Hopefully) Not Forgotten.]] There is no magic and the lessons of the past apply just as well today. Terry Coatta. Component Technologies, ACMQUEUE June 30, 2006, Volume 4, issue 5.   * [[https://queue.acm.org/detail.cfm?id=1388786 | Corba: Gone But (Hopefully) Not Forgotten.]] There is no magic and the lessons of the past apply just as well today. Terry Coatta. Component Technologies, ACMQUEUE June 30, 2006, Volume 4, issue 5.
  
 +===== Java JAR Depdendencies =====
  
-===== Problemes amb la compilació dels programes AU =====+Cal instal·lar el paquet 
 +  * default-jdk-headless 
 +per tenir accés al programa ''jdeps'' i poder trobar les dependències d'un fitxer JAR.
  
 +  * [[https://blog.codefx.org/tools/jdeps-tutorial-analyze-java-project-dependencies/ | A JDeps Tutorial – Analyze Your Project’s Dependencies]]
 +  * [[https://examples.javacodegeeks.com/core-java/java-9-jdeps-example/ | Java 9 JDeps Example]]
  
- 
-  * [[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://forums.xilinx.com/t5/Vivado-High-Level-Synthesis-HLS/Testbench-error-with-gcc/td-p/756773 | Testbench error with gcc]] 
  
  
 +===== 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/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]]
  
 <file> <file>
Line 746: Line 751:
 # #
 </file> </file>
 +
 +
 +==== Configuració de LD_LIBRARY_PATH  ====
 +
 +Few hints:
 +
 +Use the ldconfig command to show the dynamic linker/loader (ldd) paths:
 +   ldconfig -v | grep -v ^$'\t'
 +
 +The ldd paths are set in ///etc/ld.so.conf// and ///etc/ld.so.conf.d//.
 +
 +If your libraries are not on standard path then either you need to add them to the path or add non-standard path to LD_LIBRARY_PATH
 +   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<Your_non-Standard_path>
 +Once you done any one of above things then you need to update the dynamic linker run-time binding by executing below command:
 +   sudo ldconfig
 +
 +Per més informació consultar:
 +
 +  * [[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 809:
 ... ...
 </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]]
 +
 +==== Multiarchitecture cross-compilation ====
 +
 +  * [[https://wiki.debian.org/Multiarch/Implementation | Debian Multiarch Implementation]]
 +  * [[https://debian-administration.org/article/531/Using_proprietary_i386_apps_on_an_amd64_system | Debian Administrator - Using proprietary i386 apps on an amd64 system]]
 +
 +
 +
  
informatica/hp_z230t_400wb_topspin327.txt · Last modified: 2020/08/12 12:21 by miquel