Menu

cannot build on Manjaro/Aarch64 today

Help
norayr
2023-01-18
2023-01-22
  • norayr

    norayr - 2023-01-18

    hello, I believe the errors do not relate to aarch64 at all:

    so i installed dependencies:

    #  pamac install rebar
    Preparing...
    Synchronizing package databases...
    Resolving dependencies...
    Checking inter-conflicts...
    
    To install (2):
      erlang-nox  25.2-1     (Required By: rebar)  community  40.5 MB
      rebar       1:2.6.4-3                        community  203.6 kB
    

    now make:

    $ make
    WINGS_VSN = 2.2.9
    make TYPE=opt common
    make[1]: Entering directory '/home/zona/src/wings-2.2.9'
    git -c advice.detachedHead=false clone --depth 1 -b cl-1.2.4 https://github.com/tonyrog/cl.git _deps/cl
    Cloning into '_deps/cl'...
    remote: Enumerating objects: 47, done.
    remote: Counting objects: 100% (47/47), done.
    remote: Compressing objects: 100% (42/42), done.
    remote: Total 47 (delta 3), reused 20 (delta 1), pack-reused 0
    Receiving objects: 100% (47/47), 145.11 KiB | 438.00 KiB/s, done.
    Resolving deltas: 100% (3/3), done.
    git -c advice.detachedHead=false clone --depth 1 -b master https://github.com/dgud/libigl.git _deps/libigl
    Cloning into '_deps/libigl'...
    remote: Enumerating objects: 1404, done.
    remote: Counting objects: 100% (1404/1404), done.
    remote: Compressing objects: 100% (1302/1302), done.
    remote: Total 1404 (delta 301), reused 398 (delta 94), pack-reused 0
    Receiving objects: 100% (1404/1404), 1.38 MiB | 388.00 KiB/s, done.
    Resolving deltas: 100% (301/301), done.
    git -c advice.detachedHead=false clone --depth 1 -b 3.3.7 https://github.com/eigenteam/eigen-git-mirror.git _deps/eigen
    Cloning into '_deps/eigen'...
    remote: Enumerating objects: 1732, done.
    remote: Counting objects: 100% (1732/1732), done.
    remote: Compressing objects: 100% (1174/1174), done.
    remote: Total 1732 (delta 594), reused 958 (delta 507), pack-reused 0
    Receiving objects: 100% (1732/1732), 2.51 MiB | 691.00 KiB/s, done.
    Resolving deltas: 100% (594/594), done.
    make --directory=c_src opt
    make[2]: Entering directory '/home/zona/src/wings-2.2.9/c_src'
    install -d ../priv
    cc -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-switch -g -O3 -fPIC  -I"/usr/lib/erlang/usr/include" -I../_deps/eigen -I../_deps/libigl/include  -o../priv/libigl.so libigl.cpp -shared -lstdc++
    
    
    
    
    install -d ../priv
    cc -g -O3 -fPIC -I"/usr/lib/erlang/usr/include"  -o ../priv/wings_pick_nif.so wings_pick_nif.c -shared
    cc -g -O3 -fPIC -c -otess/dict.o tess/dict.c
    cc -g -O3 -fPIC -c -otess/geom.o tess/geom.c
    cc -g -O3 -fPIC -c -otess/memalloc.o tess/memalloc.c
    cc -g -O3 -fPIC -c -otess/mesh.o tess/mesh.c
    cc -g -O3 -fPIC -c -otess/normal.o tess/normal.c
    cc -g -O3 -fPIC -c -otess/priorityq.o tess/priorityq.c
    cc -g -O3 -fPIC -c -otess/render.o tess/render.c
    cc -g -O3 -fPIC -c -otess/sweep.o tess/sweep.c
    cc -g -O3 -fPIC -c -otess/tess.o tess/tess.c
    cc -g -O3 -fPIC -c -otess/tessmono.o tess/tessmono.c
    install -d ../priv
    cc -g -O3 -fPIC -I"/usr/lib/erlang/usr/include"  -o../priv/wings_tess.so wings_tess.c tess/dict.o tess/geom.o tess/memalloc.o tess/mesh.o tess/normal.o tess/priorityq.o tess/render.o tess/sweep.o tess/tess.o tess/tessmono.o -shared
    make[2]: Leaving directory '/home/zona/src/wings-2.2.9/c_src'
    make --directory=intl_tools opt
    make[2]: Entering directory '/home/zona/src/wings-2.2.9/intl_tools'
    make TYPE=opt common
    make[3]: Entering directory '/home/zona/src/wings-2.2.9/intl_tools'
    erlc  -Werror +debug_info +debug_info -o. tools.erl
    escript gen_char_hrl
    make[3]: Leaving directory '/home/zona/src/wings-2.2.9/intl_tools'
    make[2]: Leaving directory '/home/zona/src/wings-2.2.9/intl_tools'
    make --directory=e3d opt
    make[2]: Entering directory '/home/zona/src/wings-2.2.9/e3d'
    make TYPE=opt common
    make[3]: Entering directory '/home/zona/src/wings-2.2.9/e3d'
    erlc -Werror +debug_info -o../ebin e3d_image.erl
    erlc -Werror +debug_info -o../ebin e3d_mesh.erl
    erlc -Werror +debug_info -o../ebin e3d_file.erl
    erlc -Werror +debug_info -o../ebin e3d_obj.erl
    erlc -Werror +debug_info -o../ebin e3d_tds.erl
    erlc -Werror +debug_info -o../ebin e3d_transform.erl
    erlc -Werror +debug_info -o../ebin e3d_mat.erl
    erlc -Werror +debug_info -o../ebin e3d_util.erl
    erlc -Werror +debug_info -o../ebin e3d_vec.erl
    erlc -Werror +debug_info -o../ebin e3d_q.erl
    erlc -Werror +debug_info -o../ebin e3d_bv.erl
    erlc -Werror +debug_info -o../ebin e3d_bvh.erl
    erlc -Werror +debug_info -o../ebin e3d_kd3.erl
    erlc -Werror +debug_info -o../ebin e3d__tri_quad.erl
    erlc -Werror +debug_info -o../ebin e3d__meshclean.erl
    erlc -Werror +debug_info -o../ebin e3d__bmp.erl
    erlc -Werror +debug_info -o../ebin e3d__dds.erl
    erlc -Werror +debug_info -o../ebin e3d__tga.erl
    erlc -Werror +debug_info -o../ebin e3d__png.erl
    erlc -Werror +debug_info -o../ebin e3d__tif.erl
    erlc -Werror +debug_info -o../ebin e3d_bzw.erl
    make[3]: Leaving directory '/home/zona/src/wings-2.2.9/e3d'
    make[2]: Leaving directory '/home/zona/src/wings-2.2.9/e3d'
    make --directory=src opt
    make[2]: Entering directory '/home/zona/src/wings-2.2.9/src'
    make TYPE=opt common
    make[3]: Entering directory '/home/zona/src/wings-2.2.9/src'
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin wings_lang.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin libigl.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin user_default.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin wings.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin wings_align.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin wings_body.erl
    erlc -Werror -I ../.. -I../_deps +debug_info '-Dwings_version="2.2.9"' -pa ../intl_tools -o../ebin wings_bool.erl
    wings_bool.erl:17:14: can't find include lib "wings/e3d/e3d.hrl"
    %   17| -include_lib("wings/e3d/e3d.hrl").
    %     |              ^
    
    wings_bool.erl:1384:38: record e3d_face undefined
    % 1384|     Tris = e3d_mesh:triangulate_face(#e3d_face{vs=FaceVs}, VsPos),
    %     |                                      ^
    
    wings_bool.erl:1386:15: record e3d_face undefined
    % 1386|     Tri = fun(#e3d_face{vs=[A,B,C]}, Acc) ->
    %     |               ^
    
    wings_bool.erl:1387:30: variable 'A' is unbound
    % 1387|                   [{{element(A+1,VsT), element(B+1,VsT), element(C+1,VsT)}, Face}|Acc]
    %     |                              ^
    
    wings_bool.erl:1387:48: variable 'B' is unbound
    % 1387|                   [{{element(A+1,VsT), element(B+1,VsT), element(C+1,VsT)}, Face}|Acc]
    %     |                                                ^
    
    wings_bool.erl:1387:66: variable 'C' is unbound
    % 1387|                   [{{element(A+1,VsT), element(B+1,VsT), element(C+1,VsT)}, Face}|Acc]
    %     |                                                                  ^
    
    wings_bool.erl:1383:5: variable 'FaceVs' is unused
    % 1383|     FaceVs = lists:seq(0, length(Vs)-1),
    %     |     ^
    
    make[3]: *** [Makefile:176: ../ebin/wings_bool.beam] Error 1
    make[3]: Leaving directory '/home/zona/src/wings-2.2.9/src'
    make[2]: *** [Makefile:157: opt] Error 2
    make[2]: Leaving directory '/home/zona/src/wings-2.2.9/src'
    make[1]: *** [Makefile:34: src] Error 2
    make[1]: Leaving directory '/home/zona/src/wings-2.2.9'
    make: *** [Makefile:27: opt] Error 2
    

    also, build doc recommends running ./configure like this:

    $ ./configure --enable-threads --disable-hipe
    -bash: ./configure: No such file or directory
    

    but there seem to be no configure script.

     
  • Micheus

    Micheus - 2023-01-21

    Hi norayr

    For future questions I would like to ask you to use the Wings3D's forum (Programming session would fit well for this one) or the current main code repository at GitHub (Issues is the place to discuss this kind of subject).

    This place uses to not be checked anymore for the main devs, I'm going to try help you although I don't have a Mac.

    The information related to "./configure" is on the "Installing Erlang/OTP". So, it's applied only to build the Erlang from source. :-)

    And because the log is showing the code started compile some sources correctly it seems the Erlang is OK and the Wings3D's sources also started fine. The issue is related to the "includelib" used in wingsbool.erl (which is is correct).
    That means the root for the alternative include paths was not found by the compiler which in this case should be "/home/zona/src" (assuming Erlang is also under this directory, otherwise you can append the "wings-2.2.9" folder).

    In the past I remember this was part of the readme.unix

    Setup $ERL_LIBS
    Create a directory to hold Erlang applications and set the
    environment variable ERL_LIBS to its path.

    Example:
    export ERL_LIBS=/Users/bjorng/src

    Please try this and let me know if the problem was fixed or not.

    /Micheus

     
  • Micheus

    Micheus - 2023-01-21

    norayr
    Sorry for the delay to answer you.
    I did something wrong - forgot to hit the Post button and my replay was (fortunately) still pending to send . :-/

     
  • norayr

    norayr - 2023-01-22

    hello, thank you! i'll try in several hours.

    right now i would only mention that the machine works under linux, that's aarch64 linux laptop.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.