OK, thanks for the hint. I have patched away the "-m32", but the build process tries to link a precompiled 32-bit lib, which is part of the sources.
I think this software is just too old and anyway seems to be abandonware (user manual for last version from March 2014). There are some RPMs, so I'll have a look at them before I give up. Cheers, Loris Åke Sandgren <[email protected]> writes: > The main problem is probably that there is a "-m32" in the options > there. I think that software needs some patching... > > On 12/1/20 3:08 PM, Loris Bennett wrote: >> OK, so I am on CentOS 7 and so have installed >> >> glibc-devel-i686 >> >> but now I get the error: >> >> gcc -o OpenBUGSCli OpenBUGSCli.c -L ../lib -Wl,-rpath,\$ORIGIN/../lib -m32 >> -lOpenBUGS >> /trinity/shared/easybuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: >> error: >> /trinity/shared/easybuild/software/GCCcore/9.3.0/lib/gcc/x86_64-pc-linux-gnu/9.3.0/crtbegin.o: >> incompatible target >> /trinity/shared/easybuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: >> error: >> /trinity/shared/easybuild/software/GCCcore/9.3.0/lib/gcc/x86_64-pc-linux-gnu/9.3.0/crtend.o: >> incompatible target >> >> /trinity/shared/easybuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: >> error: cannot find -lgcc_s >> >> /trinity/shared/easybuild/software/binutils/2.34-GCCcore-9.3.0/bin/ld.gold: >> error: cannot find -lgcc_s >> >> So I seem to be trying to link 32 and 64 bit objects. Aren't I going to >> need a 32-bit versions of crtbegin.o etc.? >> >> Åke Sandgren <[email protected]> writes: >> >>> That one comes from libc6-dev-i386 or similar for RH based systems. >>> >>> On 12/1/20 2:28 PM, Loris Bennett wrote: >>>> Hi, >>>> >>>> I am getting the following error with the foss-2020a toolchain: >>>> >>>> /usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file >>>> or directory >>>> 7 | # include <gnu/stubs-32.h> >>>> >>>> Am I right in assuming that the toolchain would have to be compiled >>>> with >>>> >>>> m32=True >>>> >>>> to avoid this problem? >>>> >>>> Cheers, >>>> >>>> Loris >>>> -- Dr. Loris Bennett (Hr./Mr.) ZEDAT, Freie Universität Berlin Email [email protected]

