On 10/22/2014 02:46 AM, arvidjaar wrote:
On Wed, Oct 22, 2014 at 3:02 AM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
$ gcc -v -m32 -o first main.c first.o asm_io.o -Wl,-melf_i386 <snip> x86_64-suse-linux/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status
You need to install gcc-32bit
Grr.. you mean multilib doesn't provide the needed 32-bit gcc requirements? I looked at that and thought that multilib covered it. I'll install and give it a go, but I still am unclear why it isn't covered by multilib. Oh well, learned much more about the ABI that I had planned in this exercise... I still do not understand why the independent link with ld: $ ld -dynamic-linker /lib/ld-linux.so.2 \ -o first first.o asm_io.o main.o \ -m elf_i386 -lc worked fine while the call from gcc failed?? If the missing gcc 32-bit is the case -- then there must be a way to disable the gcc_s search from the command line since it is not needed. Any thought on why '-dynamic-linker /lib/ld-linux.so.2' is expressly required when it is the default? Thanks for your help. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org