frankc

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Fixing -rpath-link issues with cross-compilers #8181
    frankc
    Participant

    Please ignore my previous post.
    I was wondering if your approach of creating the ld.so.conf  file in the correct folder
    could be used to solve the problem where I am trying to build an ArmV6 executable
    in our Ubuntu 16.04 instance containing both a recently downloaded ARM v6
    arm-linux-gnueabi-g++-4.6.3 compiler and preinstalled(i.e LiveCD Ubuntu 16.04 iso)
    ARM v7 arm-linux-gnueabi-g++-5.3.1 compiler which does not
    SIGSEGV when it is “pscp-ed” and executed in the /home/pi folder of my Raspian
    ARMv6 Wheezy emulator mounted on an SD card. Here are the bash command line
    statements I used to build this problematic executable:
    1. arm-linux-gnueabi-g++-4.6.3 -o Program.o -g -DLINUX -fPIC -c Program.cpp
    2. arm-linux-gnueabi-ld-4.6.3 -o Program.exe
    -L /home/frank/tools/usr/lib/arm-linux-gnueabi  -lgcc_s -L /home/frank/tools/usr/lib/arm-linux-gnueabi -lc
    When I run strace on command line statement #2, I noticed that I am
    picking up unintended Ubuntu 16.04 instance Armv7 libraries and object files
    in the /usr/lib/arm-linux-gnueabi  folder. Could that or something else I did cause a
    SIGSEGV? May I ask the best way to  compile and link an ARMv6 executable in my
    heterogenous ARMv6-g++ and ARMv7-g++ compiler situation which does not segfault when copied and
    executed on the Raspian Wheezy emulator? Thank you

Viewing 1 post (of 1 total)