Stuart Henderson <stu@spacehopper.org> writes:
> On 2017/10/02 09:17, Timo Myyrä wrote:
>
>> Hi,
>>
>> I'm trying to make port of zdoom but I can't get it to link.
>>
>> The error I got was:
>> CMakeFiles/zdoom.dir/scripting/vm/vmexec.cpp.o: In function `__cxx_global_var_init':
>> /home/tmy/tmp/gzdoom-g3.1.0/src/scripting/vm/vmexec.cpp:(.text+0x42): undefined reference to `__cxa_thread_atexit'
>> c++: error: linker command failed with exit code 1 (use -v to see invocation)
>> *** Error 1 in . (src/CMakeFiles/zdoom.dir/build.make:10917 'gzdoom')
>
> is it using (/usr/bin/)c++ to link, or is it using ld directly? it should be using c++.
I guess its using c++ though I'm not sure why its using path within the pobj
directory. Something to do with chroot changes in ports framework I guess.
Any case, the full command before the link error is as follows:
/usr/ports/pobj/zdoom-3.1.0/bin/c++ -std=gnu++14 -Wall -Wextra -Wno-unused
-Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=off
-Wno-inconsistent-missing-override -O2 -pipe -ffp-contract=off
-fno-rtti -fomit-frame-pointer -DNDEBUG -lpthread -lc++abi -s
src/CMakeFiles/zdoom.dir/__autostart.cpp.o ... <very long list of files>
&& cd /usr/ports/pobj/zdoom-3.1.0/build-amd64/src
&& chmod +x /usr/ports/pobj/zdoom-3.1.0/build-amd64/src/link-make
&& /bin/sh -c /usr/ports/pobj/zdoom-3.1.0/build-amd64/src/link-make
&& cd /usr/ports/pobj/zdoom-3.1.0/build-amd64/src
&& /usr/local/bin/cmake -E copy_if_different /usr/ports/pobj/zdoom-3.1.0/gzdoom-g3.1.0/soundfont/gzdoom.sf2 /usr/ports/pobj/zdoom-3.1.0/build-amd64
Timo
No comments:
Post a Comment