Re: [GXemul-users] Issues Compiling
Status: Alpha
Brought to you by:
gavare
From: Anders G. <ga...@gm...> - 2021-04-28 06:33:46
|
This seems to have to do with redefinition of __attribute__ that happens in some of the .h files, and if the Linux system headers are included after that, things fail. Short-term workaround 1: Use the --debug argument to the configure script. This turns off optimizations, but seems to allow the linking stage to pass. Short-term workaround 2: Comment out the following lines in src/include/thirdparty/sgi_arcbios.h and pcireg.h: #define __attribute__(x) /* */ #define __noreturn__ /* */ before running configure && make. (In trunk, the attribute and noreturn undef/refinitions have been removed for now.) Anders On Tue, Apr 27, 2021 at 3:52 PM Michael F. <mf...@gm...> wrote: > As the title says I'm having trouble compiling the latest source. Before > it's able to finish linking I get the following error: > > > c -fstrict-aliasing -fomit-frame-pointer -fpeephole -O3 -DNDEBUG > src/console/*.o src/cpus/*.o src/debugger/*.o src/devices/*.o src/disk/*.o > src/file/*.o src/machines/*.o src/net/*.o src/core/*.o src/promemul/*.o > src/symbol/*.o -L/usr/X11R6/lib -lX11 -Wl,-rpath,/usr/X11R6/lib -lm -o > gxemul > /usr/bin/ld: src/devices/dev_sgi_mec.o: in function `__cmsg_nxthdr': > dev_sgi_mec.c:(.text+0x11d0): multiple definition of `__cmsg_nxthdr'; > src/devices/dev_sgi_ip32.o:dev_sgi_ip32.c:(.text+0xdc0): first defined here > /usr/bin/ld: src/machines/machine_sgi.o: in function `__cmsg_nxthdr': > machine_sgi.c:(.text+0x9f0): multiple definition of `__cmsg_nxthdr'; > src/devices/dev_sgi_ip32.o:dev_sgi_ip32.c:(.text+0xdc0): first defined here > /usr/bin/ld: src/core/emul.o: in function `__cmsg_nxthdr': > emul.c:(.text+0x10): multiple definition of `__cmsg_nxthdr'; > src/devices/dev_sgi_ip32.o:dev_sgi_ip32.c:(.text+0xdc0): first defined here > collect2: error: ld returned 1 exit status > make: *** [Makefile:31: build] Error 1 > > This happens with the snapshot, the 0.7.0 tar.gz archive on the website > and svn. > _______________________________________________ > GXemul-users mailing list > GXe...@li... > https://lists.sourceforge.net/lists/listinfo/gxemul-users > |