qbism / q2tools-220

Quake 2 map compiler tools with v220 map support, automatic phong, enhancements, and fixes.
GNU General Public License v2.0
61 stars 20 forks source link

Errors out trying to compile 4rad #10

Closed eGax closed 3 years ago

eGax commented 3 years ago

I'm trying to build on Manjaro Linux KDE 64bit as I have successfully in the past. Recent code errors out when it comes to compiling 4rad:

/usr/bin/ld: release/lightmap.o:(.bss+0x2b50040): multiple definition of `dlightdata_ptr'; release/4rad.o:(.bss+0x1580420): first defined here
/usr/bin/ld: release/lightmap.o:(.bss+0x2350040): multiple definition of `dlightdata_raw'; release/4rad.o:(.bss+0xd80420): first defined here
/usr/bin/ld: release/lightmap.o:(.bss+0x2b50048): multiple definition of `refine_setting'; release/4rad.o:(.bss+0x1580428): first defined here
/usr/bin/ld: release/lightmap.o:(.bss+0x2b5004c): multiple definition of `refine_amt'; release/4rad.o:(.bss+0x158042c): first defined here
/usr/bin/ld: release/lightmap.o:(.bss+0x2b50060): multiple definition of `texture_sizes'; release/4rad.o:(.bss+0x1580440): first defined here
/usr/bin/ld: release/lightmap.o:(.bss+0x2b70060): multiple definition of `texture_data'; release/4rad.o:(.bss+0x15a0440): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x850040): multiple definition of `texture_data'; release/4rad.o:(.bss+0x15a0440): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x830040): multiple definition of `texture_sizes'; release/4rad.o:(.bss+0x1580440): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x30020): multiple definition of `dlightdata_raw'; release/4rad.o:(.bss+0xd80420): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x830020): multiple definition of `dlightdata_ptr'; release/4rad.o:(.bss+0x1580420): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x830028): multiple definition of `refine_setting'; release/4rad.o:(.bss+0x1580428): first defined here
/usr/bin/ld: release/patches.o:(.bss+0x83002c): multiple definition of `refine_amt'; release/4rad.o:(.bss+0x158042c): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x20): multiple definition of `dlightdata_raw'; release/4rad.o:(.bss+0xd80420): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x800020): multiple definition of `dlightdata_ptr'; release/4rad.o:(.bss+0x1580420): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x800028): multiple definition of `refine_setting'; release/4rad.o:(.bss+0x1580428): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x80002c): multiple definition of `refine_amt'; release/4rad.o:(.bss+0x158042c): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x800040): multiple definition of `texture_sizes'; release/4rad.o:(.bss+0x1580440): first defined here
/usr/bin/ld: release/trace.o:(.bss+0x820040): multiple definition of `texture_data'; release/4rad.o:(.bss+0x15a0440): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:210: release/4rad] Error 1
qbism commented 3 years ago

I could not duplicate with a clean git clone.

What is your output of cc -v ?

Mine:

Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
eGax commented 3 years ago

Thanks for answering. I will check when I'm home and put what I get from that here.

eGax commented 3 years ago

Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC) ```
qbism commented 3 years ago

gcc-10 is more strict with proper external variables than prior versions. Cleaned up, should compile now.

eGax commented 3 years ago

That you! All set now.