joyhughes / Jen

Image processing, generative photography, cellular automata
https://discord.gg/GQQHUbkf
21 stars 20 forks source link

C++ syntax error using clang-13 from Dockerfile #103

Closed rudi-cilibrasi closed 2 months ago

rudi-cilibrasi commented 2 months ago

I'm trying to build Lux using the command line snippet with clang-13 as installed from the Dockerfile.

Script started on 2024-05-11 11:28:08-07:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="80" LINES="25"]
[?2004hrudi@mgnuc ~/src/joy/Jen  (GHI-100-add-dockerfile-01)$ ./rund 
[?2004l
[?2004h]0;root@7c74be5f7b43: /srcroot@7c74be5f7b43:/src# cd /home/rudi/src/joy/Jen/Lux/
[?2004l
[?2004h]0;root@7c74be5f7b43: /home/rudi/src/joy/Jen/Luxroot@7c74be5f7b43:/home/rudi/src/joy/Jen/Lux# rm -rf build && mkdir build && cd  
build
[?2004l
[?2004h]0;root@7c74be5f7b43: /home/rudi/src/joy/Jen/Lux/buildroot@7c74be5f7b43:/home/rudi/src/joy/Jen/Lux/build# cmake ..
[?2004l
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: Use Debug by default
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rudi/src/joy/Jen/Lux/build
[?2004h]0;root@7c74be5f7b43: /home/rudi/src/joy/Jen/Lux/buildroot@7c74be5f7b43:/home/rudi/src/joy/Jen/Lux/build# make
[?2004l
[  3%] Building CXX object CMakeFiles/common.dir/src/any_effect.cpp.o
[  6%] Building CXX object CMakeFiles/common.dir/src/any_function.cpp.o
[ 10%] Building CXX object CMakeFiles/common.dir/src/any_rule.cpp.o
[ 13%] Building CXX object CMakeFiles/common.dir/src/buffer_pair.cpp.o
[ 16%] Building CXX object CMakeFiles/common.dir/src/effect.cpp.o
/home/rudi/src/joy/Jen/Lux/src/effect.cpp:327:16: error: no matching constructor for initialization of 'vortex'
        vortex v( *diameter, *soften, *intensity, *center_orig, revolving, *velocity, *center_of_revolution );
               ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:18:5: note: candidate constructor not viable: requires at most 4 arguments, but 7 were provided
    vortex( float diam = 0.33f, float soft = 0.25f, float inten = 1.0f, vec2f c_orig = { 0.0f, 0.0f } ) :
    ^
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:6:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 7 were provided
struct vortex {
       ^
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:6:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 7 were provided
/home/rudi/src/joy/Jen/Lux/src/effect.cpp:340:22: error: no matching constructor for initialization of 'vortex_field'
        vortex_field v( *n, revolving, *scale_factor, *min_diameter, *max_diameter, *min_soften, *max_soften, *min_intensity, *max_intensity, intensity_direction, *min_velocity, *max_velocity, velocity_direction, *min_orbital_radius, *max_orbital_radius );
                     ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:49:5: note: candidate constructor not viable: requires at most 2 arguments, but 15 were provided
    vortex_field( int n_init = 10, bool revolving_init = true ) 
    ^
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:26:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 15 were provided
struct vortex_field  {                  // parameters for field of vortices
       ^
/home/rudi/src/joy/Jen/Lux/src/vector_field.hpp:26:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 15 were provided
2 errors generated.
make[2]: *** [CMakeFiles/common.dir/build.make:132: CMakeFiles/common.dir/src/effect.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[?2004h]0;root@7c74be5f7b43: /home/rudi/src/joy/Jen/Lux/buildroot@7c74be5f7b43:/home/rudi/src/joy/Jen/Lux/build# [?2004l

exit
[?2004hrudi@mgnuc ~/src/joy/Jen  (GHI-100-add-dockerfile-01)$ [?2004l

exit

Script done on 2024-05-11 11:29:00-07:00 [COMMAND_EXIT_CODE="2"]
rudi-cilibrasi commented 2 months ago

this is using PR https://github.com/joyhughes/Jen/pull/102