Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libdart: fix update to 6.13.0 #14624

Merged
merged 1 commit into from
Jan 19, 2023
Merged

libdart: fix update to 6.13.0 #14624

merged 1 commit into from
Jan 19, 2023

Conversation

pvonmoradi
Copy link
Contributor

@pvonmoradi
Copy link
Contributor Author

pvonmoradi commented Jan 17, 2023

FAILED: dart/CMakeFiles/dart.dir/common/PoolAllocator.cpp.o 
/home/builder/.termux-build/_cache/android-r25b-api-24-v3/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/home/builder/.termux-build/_cache/android-r25b-api-24-v3 --sysroot=/home/builder/.termux-build/_cache/android-r25b-api-24-v3/sysroot -DDART_ACTIVE_LOG_LEVEL=2 -DDART_HAVE_spdlog=1 -DFMT_HEADER_ONLY=1 -DSPDLOG_FMT_EXTERNAL -Ddart_EXPORTS -I/home/builder/.termux-build/libdart/src -I/home/builder/.termux-build/libdart/build -isystem /data/data/com.termux/files/usr/include/eigen3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -Oz --target=armv7a-linux-androideabi24  -I/data/data/com.termux/files/usr/include -O3 -DNDEBUG -fPIC -Wall -Wextra -fPIC -Werror -pthread -std=gnu++17 -MD -MT dart/CMakeFiles/dart.dir/common/PoolAllocator.cpp.o -MF dart/CMakeFiles/dart.dir/common/PoolAllocator.cpp.o.d -o dart/CMakeFiles/dart.dir/common/PoolAllocator.cpp.o -c /home/builder/.termux-build/libdart/src/dart/common/PoolAllocator.cpp
/home/builder/.termux-build/libdart/src/dart/common/PoolAllocator.cpp:47:3: error: static_assert failed due to requirement '8 <= sizeof(dart::common::PoolAllocator::MemoryUnit)' "sizeof(MemoryUnit) should be equal to or greater than 8."
  static_assert(
  ^
1 error generated.

Apparently dart no longer supports 32-bit plaforms:
dartsim/dart#1671 (comment)

It's intended. DART used to support and be tested in 32-bit up to 6.8.5 (only on GCC), but not afterward. We could reconsider this if needed, but 32-bit is not currently supported. Would it be possible to disable the 32-bit build for DART in vcpkg?

The breaking commit is introduced here.

Blacklisting arm and i686...

@pvonmoradi
Copy link
Contributor Author

@xtkoba
Any ideas on this?
ERROR: Package contains directory "$PREFIX/$PREFIX" (/data/data/com.termux/files/usr/data/data/com.termux/files/usr)

@2096779623 2096779623 linked an issue Jan 18, 2023 that may be closed by this pull request
@xtkoba
Copy link
Contributor

xtkoba commented Jan 18, 2023

ERROR: Package contains directory "$PREFIX/$PREFIX" (/data/data/com.termux/files/usr/data/data/com.termux/files/usr)

Ah that may be unfriendly. But you can find that directory in termux_step_post_make_install to see what are in.

@xtkoba
Copy link
Contributor

xtkoba commented Jan 18, 2023

Hunk number 3 of CMakeLists.txt.patch contained the fix for $PREFIX/$PREFIX. Why did you delete that file entirely?

@pvonmoradi pvonmoradi force-pushed the fix/libdart branch 2 times, most recently from d66e740 to 4130171 Compare January 18, 2023 19:26
@pvonmoradi
Copy link
Contributor Author

Why did you delete that file entirely?

I had to create the patch again since the upstream introduced a switch to disable dartpy component.
The build problem was that the "patch" had a "diff" extention so it was not applied. I can't figure this out, should git diffs have the patch extension (not diff) so termux build sees them? Also I was generating the git diff based on the wrong branch of upstream

@Grimler91
Copy link
Member

.patch files are applied automatically, .diff is usually used when patch is applied manually in build recipe, for example because a custom variable (i.e. not one of these ones) has to be sed'ed first

@xtkoba xtkoba merged commit 232af96 into termux:master Jan 19, 2023
@pvonmoradi pvonmoradi deleted the fix/libdart branch January 19, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto update failing for libdart
3 participants