Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. ******
  2. main.c
  3. ******
  4. #include <stdio.h>
  5. int main(void){
  6. printf("hello world\n");
  7. return 0;
  8. }
  9.  
  10. ********
  11. Makefile
  12. ********
  13. all: main.c
  14. $(CC) -o maintest main.c
  15.  
  16.  
  17. **********
  18. My Process
  19.  
  20. Note: I installed the SDK into /usr/local/angstrom, I didn't use the default path which was /usr/local/oecore-x86_64/
  21. **********
  22. 1. ~$ cd /usr/local/angstrom
  23.  
  24. 2. /usr/local/angstrom$ source environment-setup-cortexa8hf-vfp-neon-angstrom-linux-gnueabi
  25.  
  26. 3. /usr/local/angstrom$ cd ~
  27.  
  28. 4. ~$ make --dry-run
  29. arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/usr/local/angstrom/sysroots/cortexa8hf-vfp-neon-angstrom-linux-gnueabi -o maintest main.c
  30.  
  31. 5. ~$ make
  32. arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/usr/local/angstrom/sysroots/cortexa8hf-vfp-neon-angstrom-linux-gnueabi -o maintest main.c
  33. arm-angstrom-linux-gnueabi-gcc: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
  34. make: *** [main] Error 127
  35.  
  36. 6. If I use the hack from http://www.linuxquestions.org/questions/linux-general-1/glibc-backward-compatibility-4175445005/ I get a little further. See below:
  37.  
  38. ~$ LD_LIBRARY_PATH=/usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/lib/:/lib /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/lib/ld-linux-x86-64.so.2 /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/usr/bin/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc main.c -S
  39. /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/usr/bin/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/../../libexec/cortexa8hf-vfp-neon-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.7.4/cc1: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
  40.  
  41. I get the same for qmake2:
  42.  
  43. ~$ which qmake2
  44. /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/usr/bin/qmake2
  45. ~$ qmake2 --version
  46. qmake2: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
  47.  
  48. But the hack generates:
  49.  
  50. ~$ LD_LIBRARY_PATH=/usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/lib/:/lib /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/lib/ld-linux-x86-64.so.2 /usr/local/angstrom/sysroots/x86_64-angstromsdk-linux/usr/bin/qmake2 --version
  51. QMake version 2.01a
  52. Using Qt version 4.8.4 in /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/lib
  53.  
  54. I hope this helps.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement