dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.61k stars 114 forks source link

Build failure on clang #2325

Open alex3kov opened 3 years ago

alex3kov commented 3 years ago

This is on aarch64 PC, let me know if you want me to try it on amd64.

$ export | egrep 'LANG|LC_CTYPE|TERM'
declare -x COLORTERM="truecolor"
declare -x LANG="en_US.UTF-8"
declare -x LESS_TERMCAP_mb=""
declare -x LESS_TERMCAP_md=""
declare -x LESS_TERMCAP_me=""
declare -x LESS_TERMCAP_se=""
declare -x LESS_TERMCAP_so=""
declare -x LESS_TERMCAP_ue=""
declare -x LESS_TERMCAP_us=""
declare -x TERM="foot"

Trying to build notcurses from v2.4.8 dfsg tarball with this:

$ echo $CC $CXX $AR $LD $CC_LD ; ninja --version ; cmake --version ; clang -v
clang clang++ llvm-ar lld lld
1.10.2
cmake version 3.21.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
clang version 12.0.1
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/aarch64-unknown-linux-gnu/10.2.0
Found candidate GCC installation: /usr/lib/gcc/aarch64-unknown-linux-gnu/10.2.0
Selected GCC installation: /usr/bin/../lib/gcc/aarch64-unknown-linux-gnu/10.2.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

Using CMake:

$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DUSE_MULTIMEDIA=none -DDFSG_BUILD=on -DUSE_PANDOC=off ..
-- The C compiler identification is Clang 12.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is Clang 12.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Requested multimedia engine: none
-- Requested build mode: Release
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for one of the modules 'tinfo>=6.1;ncursesw>=6.1'
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Looking for unigbrk.h
-- Looking for unigbrk.h - found
-- The following REQUIRED packages have been found:

 * PkgConfig
 * terminfo
 * Threads
 * ZLIB
 * doctest (required version >= 2.3.5)
 * libunistring

-- Configuring done
-- Generating done
-- Build files have been written to: /media/126GiB-on-256SSD/src/notcurses-2.4.8/build

And ninja:

$ ninja
[0/2] Re-checking globbed directories...
[1/2] Re-running CMake...
-- Requested multimedia engine: none
-- Requested build mode: Release
-- Looking for unigbrk.h
-- Looking for unigbrk.h - found
-- The following REQUIRED packages have been found:

 * PkgConfig
 * terminfo
 * Threads
 * ZLIB
 * doctest (required version >= 2.3.5)
 * libunistring

-- Configuring done
-- Generating done
-- Build files have been written to: /media/126GiB-on-256SSD/src/notcurses-2.4.8/build
[0/2] Re-checking globbed directories...
[1/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/Exceptions.cpp.o
[2/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/direct.cpp.o
[3/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/Ncpp.cpp.o
[4/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/channel.cpp.o
[5/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/blit.cpp.o
[6/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/egcpool.cpp.o
[7/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fbuf.cpp.o
[8/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/erase.cpp.o
[9/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fade.cpp.o
[10/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/cell.cpp.o
[11/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fds.cpp.o
[12/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/geom.cpp.o
[13/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/libunistring.cpp.o
[14/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/internal.cpp.o
[15/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/bitmap.cpp.o
[16/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/media.cpp.o
[17/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/menu.cpp.o
[18/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fills.cpp.o
[19/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/palette.cpp.o
[20/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/notcurses.cpp.o
[21/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/metric.cpp.o
[22/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/plot.cpp.o
[23/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/progbar.cpp.o
[24/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reader.cpp.o
[25/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/piles.cpp.o
[26/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reelgaps.cpp.o
[27/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/resize.cpp.o
[28/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reel.cpp.o
[29/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/sixel.cpp.o
[30/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/scrolling.cpp.o
[31/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/selector.cpp.o
[32/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/rotate.cpp.o
[33/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/stacking.cpp.o
[34/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/version.cpp.o
[35/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/tree.cpp.o
[36/274] Building C object CMakeFiles/ncneofetch.dir/src/fetch/main.c.o
[37/274] Building C object CMakeFiles/ncneofetch.dir/src/fetch/ncart.c.o
[38/274] Building C object CMakeFiles/ncneofetch.dir/src/compat/compat.c.o
[39/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/main.cpp.o
[40/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/textlayout.cpp.o
[41/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/plane.cpp.o
[42/274] Building C object CMakeFiles/notcurses-info.dir/src/info/main.c.o
FAILED: CMakeFiles/notcurses-info.dir/src/info/main.c.o 
/usr/bin/clang -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -I/media/126GiB-on-256SSD/src/notcurses-2.4.8/src -I/media/126GiB-on-256SSD/src/notcurses-2.4.8/include -I/media/126GiB-on-256SSD/src/notcurses-2.4.8 -I/media/126GiB-on-256SSD/src/notcurses-2.4.8/build/include -O3 -DNDEBUG -fvisibility=hidden -Wformat -Werror=format-security -Wall -Wextra -W -Wshadow -fno-signed-zeros -fno-trapping-math -fassociative-math -fno-math-errno -freciprocal-math -funsafe-math-optimizations -fexceptions -fstrict-aliasing -std=gnu11 -MD -MT CMakeFiles/notcurses-info.dir/src/info/main.c.o -MF CMakeFiles/notcurses-info.dir/src/info/main.c.o.d -o CMakeFiles/notcurses-info.dir/src/info/main.c.o -c /media/126GiB-on-256SSD/src/notcurses-2.4.8/src/info/main.c
In file included from /media/126GiB-on-256SSD/src/notcurses-2.4.8/src/info/main.c:5:
In file included from /media/126GiB-on-256SSD/src/notcurses-2.4.8/src/lib/internal.h:37:
/usr/include/pthread.h:1029:6: error: '__nonnull__' attribute parameter 3 is out of bounds
     __nonnull ((1, 2, 4));
     ^                 ~
/usr/include/sys/cdefs.h:293:44: note: expanded from macro '__nonnull'
# define __nonnull(params) __attribute__ ((__nonnull__ params))
                                           ^           ~~~~~~
1 error generated.
[43/274] Building C object CMakeFiles/notcurses-info.dir/src/compat/compat.c.o
[44/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/tabbed.cpp.o
[45/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/zaxis.cpp.o
[46/274] Building CXX object CMakeFiles/notcurses-input.dir/src/input/input.cpp.o
[47/274] Building CXX object CMakeFiles/nctetris.dir/src/tetris/main.cpp.o
[48/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/visual.cpp.o
[49/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/wide.cpp.o
ninja: build stopped: subcommand failed.
dankamongmen commented 3 years ago

awesome, thanks for the report! got some interesting stuff in there.

/usr/include/pthread.h:1029:6: error: '__nonnull__' attribute parameter 3 is out of bounds
     __nonnull ((1, 2, 4));

this is not good...hrmm. so this seems to be a problem in your system headers? but that seems unlikely. what's declared on line 1029 of /usr/include/pthread.h? perhaps we're enabling some weird definition due to our compilation flags. i assume you've been able to build other things making use of pthreads =].

alex3kov commented 3 years ago

i assume you've been able to build other things making use of pthreads

Not sure, I don't examine outputs of build scripts that closely unless they fail.

alex3kov commented 3 years ago

what's declared on line 1029 of /usr/include/pthread.h?

$ awk 'NR==1029' /usr/include/pthread.h
__nonnull ((1, 2, 4));
dankamongmen commented 3 years ago

what's declared on line 1029 of /usr/include/pthread.h?

$ awk 'NR==1029' /usr/include/pthread.h
     __nonnull ((1, 2, 4));

let's get lines 1028 and maybe even 1027 =] honestly if we could get the 10 or so around that. i'm looking for some kind of #ifdef or whatnot. honestly if you just want to attach the file, that might be best.

dankamongmen commented 3 years ago

what distro is this btw?

dankamongmen commented 3 years ago
# ifdef __USE_GNU                                                                                                                   
/* Wait for condition variable COND to be signaled or broadcast until                                                               
   ABSTIME measured by the specified clock. MUTEX is assumed to be                                                                  
   locked before. CLOCK is the clock to use. ABSTIME is an absolute                                                                 
   time specification against CLOCK's epoch.                                                                                        

   This function is a cancellation point and therefore not marked with                                                              
   __THROW. */                                                                                                                      
extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond,                                                               
           pthread_mutex_t *__restrict __mutex,                                                                                     
           __clockid_t __clock_id,                                                                                                  
           const struct timespec *__restrict __abstime)                                                                             
     __nonnull ((1, 2, 4));                                                                                                         
# endif                                                                                                                             

this is it

dankamongmen commented 3 years ago

"parameter 4 is out of bounds"...but it is not? that looks perfectly legal. hrmmmm.

alex3kov commented 3 years ago

what distro is this btw?

Arch ARM

what's declared on line 1029 of /usr/include/pthread.h?

$ awk 'NR==1029' /usr/include/pthread.h
     __nonnull ((1, 2, 4));

let's get lines 1028 and maybe even 1027 =] honestly if we could get the 10 or so around that. i'm looking for some kind of #ifdef or whatnot. honestly if you just want to attach the file, that might be best.

http://0x0.st/-5ba.c

dankamongmen commented 3 years ago

yep, it's the pthread_cond_clockwait() defintion i pasted above, which is indeed controlled by __USE_GNU. the weirdness is that the __nonnull((1,2,4)) directive there is perfectly valid....hrmm.

alex3kov commented 3 years ago

Would trying gcc+binutils help?

dankamongmen commented 3 years ago

it might, but even if it does, i want to figure out what's going on here. clang builds just fine for me (and on any number of autobuilding setups, including some aarch ones). this is a surprising thing you have found!

dankamongmen commented 3 years ago

yeah, i'd love to know if gcc can handle this. is one of the arguments somehow being elided? even if those were null definitions, the comma would still break the parsing. strange!!

alex3kov commented 3 years ago
$ echo $CC $CXX $AR $LD $CC_LD 
gcc g++ ar ld ld
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DUSE_MULTIMEDIA=none -DDFSG_BUILD=on -DUSE_PANDOC=off ..
-- The C compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Requested multimedia engine: none
-- Requested build mode: Release
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for one of the modules 'tinfo>=6.1;ncursesw>=6.1'
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Looking for unigbrk.h
-- Looking for unigbrk.h - found
-- The following REQUIRED packages have been found:

 * PkgConfig
 * terminfo
 * Threads
 * ZLIB
 * doctest (required version >= 2.3.5)
 * libunistring

-- Configuring done
-- Generating done
-- Build files have been written to: /media/126GiB-on-256SSD/src/notcurses-2.4.8/build

Ninja:

[0/2] Re-checking globbed directories...
[1/2] Re-running CMake...
-- Requested multimedia engine: none
-- Requested build mode: Release
-- Looking for unigbrk.h
-- Looking for unigbrk.h - found
-- The following REQUIRED packages have been found:

 * PkgConfig
 * terminfo
 * Threads
 * ZLIB
 * doctest (required version >= 2.3.5)
 * libunistring

-- Configuring done
-- Generating done
-- Build files have been written to: /media/126GiB-on-256SSD/src/notcurses-2.4.8/build
[0/2] Re-checking globbed directories...
[1/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/Exceptions.cpp.o
[2/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/direct.cpp.o
[3/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/Ncpp.cpp.o
[4/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/channel.cpp.o
[5/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/blit.cpp.o
[6/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/erase.cpp.o
[7/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fade.cpp.o
[8/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/egcpool.cpp.o
[9/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fbuf.cpp.o
[10/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fds.cpp.o
[11/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/cell.cpp.o
[12/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/geom.cpp.o
[13/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/libunistring.cpp.o
[14/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/internal.cpp.o
[15/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/media.cpp.o
[16/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/menu.cpp.o
[17/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/notcurses.cpp.o
[18/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/palette.cpp.o
[19/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/bitmap.cpp.o
[20/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/metric.cpp.o
[21/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/progbar.cpp.o
[22/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/fills.cpp.o
[23/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reader.cpp.o
[24/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/piles.cpp.o
[25/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/plot.cpp.o
[26/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reelgaps.cpp.o
[27/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/resize.cpp.o
[28/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/sixel.cpp.o
[29/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/stacking.cpp.o
[30/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/rotate.cpp.o
[31/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/scrolling.cpp.o
[32/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/selector.cpp.o
[33/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/reel.cpp.o
[34/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/main.cpp.o
[35/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/version.cpp.o
[36/274] Building C object CMakeFiles/ncneofetch.dir/src/fetch/main.c.o
[37/274] Building C object CMakeFiles/ncneofetch.dir/src/fetch/ncart.c.o
[38/274] Building C object CMakeFiles/ncneofetch.dir/src/compat/compat.c.o
[39/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/tree.cpp.o
[40/274] Building CXX object CMakeFiles/notcurses-input.dir/src/input/input.cpp.o
[41/274] Building CXX object CMakeFiles/nctetris.dir/src/tetris/main.cpp.o
[42/274] Building C object CMakeFiles/notcurses-info.dir/src/compat/compat.c.o
[43/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/zaxis.cpp.o
[44/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/textlayout.cpp.o
[45/274] Building C object CMakeFiles/notcurses-info.dir/src/info/main.c.o
[46/274] Building CXX object CMakeFiles/rgbbg.dir/src/pocpp/rgbbg.cpp.o
[47/274] Building CXX object CMakeFiles/resize.dir/src/pocpp/resize.cpp.o
[48/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/tabbed.cpp.o
[49/274] Building C object CMakeFiles/zalgo.dir/src/poc/zalgo.c.o
[50/274] Building C object CMakeFiles/tabbed.dir/src/poc/tabbed.c.o
[51/274] Building C object CMakeFiles/statepixel.dir/src/poc/statepixel.c.o
[52/274] Building C object CMakeFiles/sgr-direct.dir/src/poc/sgr-direct.c.o
[53/274] Building CXX object CMakeFiles/widestomp.dir/src/pocpp/widestomp.cpp.o
[54/274] Building C object CMakeFiles/scroll.dir/src/poc/scroll.c.o
[55/274] Building C object CMakeFiles/rtl.dir/src/poc/rtl.c.o
[56/274] Building C object CMakeFiles/menu.dir/src/poc/menu.c.o
[57/274] Building CXX object CMakeFiles/reader.dir/src/pocpp/reader.cpp.o
[58/274] Building CXX object CMakeFiles/reel.dir/src/pocpp/reel.cpp.o
[59/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/banner.c.o
[60/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/debug.c.o
[61/274] Building CXX object CMakeFiles/ncpp_build_exceptions.dir/src/pocpp/ncpp_build_exceptions.cpp.o
[62/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/fade.c.o
[63/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/fd.c.o
[64/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/gpm.c.o
[65/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/automaton.c.o
[66/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/fill.c.o
[67/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/layout.c.o
[68/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/blit.c.o
[69/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/direct.c.o
[70/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/metric.c.o
[71/274] Building C object CMakeFiles/notcurses-static.dir/src/media/shim.c.o
[72/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/in.c.o
[73/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/menu.c.o
[74/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/linux.c.o
[75/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/progbar.c.o
[76/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/reader.c.o
[77/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/visual.cpp.o
[78/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/kitty.c.o
[79/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/reel.c.o
[80/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/signal.c.o
[81/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/sprite.c.o
[82/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/selector.c.o
[83/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/stats.c.o
[84/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/plot.c.o
[85/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/tabbed.c.o
[86/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/util.c.o
[87/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/tree.c.o
[88/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/sixel.c.o
[89/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/windows.c.o
[90/274] Building C object CMakeFiles/notcurses-core.dir/src/compat/compat.c.o
[91/274] Building C object CMakeFiles/interp.dir/src/poc/interp.c.o
[92/274] Building C object CMakeFiles/pixel.dir/src/poc/pixel.c.o
[93/274] Building C object CMakeFiles/procroller.dir/src/poc/procroller.c.o
[94/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/notcurses.c.o
[95/274] Building C object CMakeFiles/direct.dir/src/poc/direct.c.o
[96/274] Building C object CMakeFiles/fbconscroll.dir/src/poc/fbconscroll.c.o
[97/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/termdesc.c.o
[98/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/render.c.o
[99/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/FDPlane.cc.o
[100/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Menu.cc.o
[101/274] Building C object CMakeFiles/notcurses-core.dir/src/lib/visual.c.o
[102/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/MultiSelector.cc.o
[103/274] Linking C shared library libnotcurses-core.so.2.4.8
[104/274] Creating library symlink libnotcurses-core.so.2 libnotcurses-core.so
[105/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/NotCurses.cc.o
[106/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Plot.cc.o
[107/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Root.cc.o
[108/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Reel.cc.o
[109/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Plane.cc.o
[110/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Selector.cc.o
[111/274] Building C object CMakeFiles/multiselect.dir/src/poc/multiselect.c.o
[112/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Subproc.cc.o
[113/274] Building C object CMakeFiles/rotate.dir/src/poc/rotate.c.o
[114/274] Building C object CMakeFiles/rgb.dir/src/poc/rgb.c.o
[115/274] Building C object CMakeFiles/grid.dir/src/poc/grid.c.o
[116/274] Building C object CMakeFiles/qrcode.dir/src/poc/qrcode.c.o
[117/274] Building C object CMakeFiles/gradients.dir/src/poc/gradients.c.o
[118/274] Building C object CMakeFiles/notcurses.dir/src/media/ffmpeg.c.o
[119/274] Building C object CMakeFiles/notcurses.dir/src/media/oiio-indep.c.o
[120/274] Building CXX object CMakeFiles/notcurses.dir/src/media/oiio.cpp.o
[121/274] Building C object CMakeFiles/notcurses.dir/src/media/none.c.o
[122/274] Building C object CMakeFiles/linuxconjammer.dir/src/poc/linuxconjammer.c.o
[123/274] Building C object CMakeFiles/notcurses.dir/src/media/shim.c.o
[124/274] Building C object CMakeFiles/notcurses.dir/src/compat/compat.c.o
[125/274] Building C object CMakeFiles/selector.dir/src/poc/selector.c.o
[126/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Utilities.cc.o
[127/274] Linking CXX shared library libnotcurses.so.2.4.8
[128/274] Creating library symlink libnotcurses.so.2 libnotcurses.so
[129/274] Linking C executable ncneofetch
[130/274] Linking C executable notcurses-info
[131/274] Building CXX object CMakeFiles/notcurses++.dir/src/libcpp/Tablet.cc.o
[132/274] Linking C executable zalgo
[133/274] Linking C executable tabbed
[134/274] Linking C executable statepixel
[135/274] Linking C executable sgr-direct
[136/274] Linking C executable scroll
[137/274] Linking C executable rtl
[138/274] Linking C executable menu
[139/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/FDPlane.cc.o
[140/274] Building CXX object CMakeFiles/ncpp_build.dir/src/pocpp/ncpp_build.cpp.o
[141/274] Linking C executable pixel
[142/274] Linking C executable interp
[143/274] Linking C executable procroller
[144/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/MultiSelector.cc.o
[145/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Menu.cc.o
[146/274] Linking C executable direct
[147/274] Linking C executable fbconscroll
[148/274] Linking C executable rotate
[149/274] Linking CXX shared library libnotcurses++.so.2.4.8
[150/274] Linking C executable multiselect
[151/274] Creating library symlink libnotcurses++.so.2 libnotcurses++.so
[152/274] Linking C executable rgb
[153/274] Linking C executable grid
[154/274] Linking C executable qrcode
[155/274] Linking C executable gradients
[156/274] Linking C executable linuxconjammer
[157/274] Linking CXX executable nctetris
[158/274] Linking CXX executable notcurses-input
[159/274] Linking CXX executable widestomp
[160/274] Linking CXX executable rgbbg
[161/274] Linking CXX executable reel
[162/274] Linking CXX executable resize
[163/274] Linking CXX executable reader
[164/274] Linking CXX executable ncpp_build_exceptions
[165/274] Linking CXX executable ncpp_build
[166/274] Linking C executable selector
[167/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Selector.cc.o
[168/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Plot.cc.o
[169/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/NotCurses.cc.o
[170/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Root.cc.o
[171/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Reel.cc.o
[172/274] Building C object CMakeFiles/notcurses-static.dir/src/media/ffmpeg.c.o
[173/274] Building C object CMakeFiles/blitters.dir/src/poc/blitters.c.o
[174/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Plane.cc.o
[175/274] Building C object CMakeFiles/notcurses-static.dir/src/media/none.c.o
[176/274] Linking C executable blitters
[177/274] Building C object CMakeFiles/notcurses-static.dir/src/media/oiio-indep.c.o
[178/274] Building CXX object CMakeFiles/notcurses-static.dir/src/media/oiio.cpp.o
[179/274] Building C object CMakeFiles/bitmapstates.dir/src/poc/bitmapstates.c.o
[180/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Subproc.cc.o
[181/274] Linking C executable bitmapstates
[182/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/banner.c.o
[183/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/debug.c.o
[184/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Utilities.cc.o
[185/274] Building CXX object CMakeFiles/notcurses++-static.dir/src/libcpp/Tablet.cc.o
[186/274] Linking CXX static library libnotcurses++.a
[187/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/fade.c.o
[188/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/fd.c.o
[189/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/gpm.c.o
[190/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/automaton.c.o
[191/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/fill.c.o
[192/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/layout.c.o
[193/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/blit.c.o
[194/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/direct.c.o
[195/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/metric.c.o
[196/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/in.c.o
[197/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/linux.c.o
[198/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/menu.c.o
[199/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/progbar.c.o
[200/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/reader.c.o
[201/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/kitty.c.o
[202/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/reel.c.o
[203/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/signal.c.o
[204/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/sprite.c.o
[205/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/selector.c.o
[206/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/stats.c.o
[207/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/tabbed.c.o
[208/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/sixel.c.o
[209/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/plot.c.o
[210/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/util.c.o
[211/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/windows.c.o
[212/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/tree.c.o
[213/274] Building C object CMakeFiles/cjkscroll.dir/src/poc/cjkscroll.c.o
[214/274] Building C object CMakeFiles/cursor.dir/src/poc/cursor.c.o
[215/274] Linking C executable cjkscroll
[216/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/termdesc.c.o
[217/274] Linking C executable cursor
[218/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/chunli.c.o
[219/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/animate.c.o
[220/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/boxdemo.c.o
[221/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/dragon.c.o
[222/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/eagle.c.o
[223/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/notcurses.c.o
[224/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/fission.c.o
[225/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/demo.c.o
[226/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/highcon.c.o
[227/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/visual.c.o
[228/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/input.c.o
[229/274] Building C object CMakeFiles/notcurses-core-static.dir/src/lib/render.c.o
[230/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/keller.c.o
[231/274] Linking C static library libnotcurses-core.a
[232/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/luigi.c.o
[233/274] Linking CXX static library libnotcurses.a
[234/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/intro.c.o
[235/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/grid.c.o
[236/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/hud.c.o
[237/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/qrcode.c.o
[238/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/normal.c.o
[239/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/outro.c.o
[240/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/mojibake.c.o
[241/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/reel.c.o
[242/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/sliding.c.o
[243/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/view.c.o
[244/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/trans.c.o
[245/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/xray.c.o
[246/274] Building C object CMakeFiles/notcurses-demo.dir/src/compat/compat.c.o
[247/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/unicodeblocks.c.o
[248/274] Building C object CMakeFiles/direct-input.dir/src/poc/direct-input.c.o
[249/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/yield.c.o
[250/274] Building C object CMakeFiles/tree.dir/src/poc/tree.c.o
[251/274] Building C object CMakeFiles/sgr-full.dir/src/poc/sgr-full.c.o
[252/274] Linking C executable direct-input
[253/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/whiteout.c.o
[254/274] Building C object CMakeFiles/notcurses-demo.dir/src/demo/zoo.c.o
[255/274] Building C object CMakeFiles/dirgb.dir/src/poc/dirgb.c.o
[256/274] Linking C executable tree
[257/274] Linking C executable sgr-full
[258/274] Linking C executable notcurses-demo
[259/274] Building C object CMakeFiles/dirlines.dir/src/poc/dirlines.c.o
[260/274] Linking C executable dirgb
[261/274] Building C object CMakeFiles/fileroller.dir/src/poc/fileroller.c.o
[262/274] Linking C executable dirlines
[263/274] Linking C executable fileroller
[264/274] Building C object CMakeFiles/progbar.dir/src/poc/progbar.c.o
[265/274] Building C object CMakeFiles/readline.dir/src/poc/readline.c.o
[266/274] Building C object CMakeFiles/linuxconsole.dir/src/poc/linuxconsole.c.o
[267/274] Building C object CMakeFiles/ncwidth.dir/src/poc/ncwidth.c.o
[268/274] Linking C executable linuxconsole
[269/274] Linking C executable ncwidth
[270/274] Linking C executable readline
[271/274] Linking C executable progbar
[272/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/plane.cpp.o
[273/274] Building CXX object CMakeFiles/notcurses-tester.dir/src/tests/wide.cpp.o
[274/274] Linking CXX executable notcurses-tester

Wanted to watch the demo but that is make-only?

dankamongmen commented 3 years ago

no, notcurses-demo ought build just fine with ninja. nothing's "make-only" so far as i'm aware.

so it looks like things worked with gcc? or is that amd64 instead of arch?

are we still seeing the same problem compiling with clang on arm, as you initially were?

alex3kov commented 3 years ago

no, notcurses-demo ought build just fine with ninja. nothing's "make-only" so far as i'm aware.

In documentation it says run make demo, so I assumed it's make-only. But now I see I can run ./notcurses-demo directly as well.

so it looks like things worked with gcc? or is that amd64 instead of arch?

Things worked with gcc, arch seems to not be a factor.

are we still seeing the same problem compiling with clang on arm, as you initially were?

Yes.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/dankamongmen/notcurses/issues/2325#issuecomment-964783803

dankamongmen commented 3 years ago

thanks for the update. yeah you ought just be able to run ./notcurses-demo -p ../data.

dankamongmen commented 3 years ago

alright, since you have a way to build it, i'm deprioritizing this. i might try to get an ARM arch setup going and see if i can reproduce this. i don't understand the error that's being generated at all.

alex3kov commented 3 years ago

alright, since you have a way to build it, i'm deprioritizing this. i might try to get an ARM arch setup going and see if i can reproduce this. i don't understand the error that's being generated at all.

I used Generic AArch64 Installation root tarball of Arch ARM.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/dankamongmen/notcurses/issues/2325#issuecomment-964790026

dankamongmen commented 2 years ago

i have a raspberry pi 4 available now; that ought be able to run AArch64, and i can investigate this