...you need something to get something more!
http://www.codesourcery.com
ulimit -s 32768
http://linuxfromscratch.org/lfs/view/development/chapter06/gcc.html
Code:
SED=sed
../configure --prefix=/usr
--enable-languages=c,c++
--disable-multilib
--disable-bootstrap
--with-system-zlib
dpkg-buildpackage -G -us -ui -uc
https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
Code:
$ cd gcc-4.9.2
$ ln -s ../mpfr-3.1.2 mpfr
$ ln -s ../gmp-6.0.0 gmp
$ ln -s ../mpc-1.0.2 mpc
$ ln -s ../isl-0.12.2 isl
$ ln -s ../cloog-0.18.1 cloog
$ cd ..
dont want to maintain a thing, just want to have, but...
https://www.debian.org/doc/manuals/maint-guide/
or short version
https://ubuntuforums.org/showthread.php?t=910717
https://developer.arm.com/tools-and-software/open-source-software/developer-
tools/gnu-
toolchain/gnu-a/downloads
https://www.boost.org/users/download/
https://cmake.org/download/
https://solarianprogrammer.com/2017/12/08/raspberry-pi-raspbian-install-gcc-compile-
cpp-17-
programs/
https://blog.packagecloud.io/eng/2015/07/14/using-dh-make-to-prepare-debian-packages/
=====
wget
http://ftp.snt.utwente.nl/pub/software/gnu/binutils/binutils-2.29.tar.xz
wget
ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.xz
wget
http://ftp.gnu.org/gnu/glibc/glibc-2.26.tar.xz
tar xvf binutils-2.29.tar.xz
tar xvf gcc-7.2.0.tar.xz
cd binutils-2.29
./configure --target=armv7l-unknown-linux-gnueabihf --disable-multilib
make
sudo make install
cd ..
scp drone:headers.tar.gz .
cd /usr/local/armv7l-unknown-linux-gnueabihf
sudo tar xzvf $OLDPWD/headers.tar.gz
cd -
cd gcc-7.2.0
./contrib/download_prerequisites
mkd ../gcc-build
../gcc-7.2.0/configure --enable-languages=c,c++,lto --enable-shared --enable-
threads=posix --
with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --
enable-
clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --
enable-linker-
build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-
style=gnu --
enable-gnu-indirect-function --disable-multilib --disable-werror --enable-
checking=release --
target=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-
fpu=vfpv3-d16
make all-gcc
sudo make install-gcc
cd ..
tar xvf glibc-2.26.tar.xz
mkd glibc-build
../glibc-2.26/configure --prefix=/usr/local/armv7l-unknown-linux-gnueabihf --
build=$MACHTYPE --
host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --with-
headers=/usr/local/armv7l-unknown-linux-gnueabihf/include --disable-multilib
libc_cv_forced_unwind=yes
make # This fails, but it does succeed buildling the parts we need now.
sudo make install-bootstrap-headers=yes install-headers
sudo install csu/crt1.o csu/crti.o csu/crtn.o /usr/local/armv7l-unknown-linux-
gnueabihf/lib/
sudo touch /usr/local/armv7l-unknown-linux-gnueabihf/include/gnu/stubs.h
sudo /usr/local/bin/armv7l-unknown-linux-gnueabihf-gcc -nostdlib -nostartfiles -
shared -x c
/dev/null -o /usr/local/armv7l-unknown-linux-gnueabihf/lib/libc.so
cd ../gcc-build
make all-target-libgcc
sudo make install-target-libgcc
cd ../glibc-build
make
sudo make install
cd ../gcc-build
make
sudo make install
====
SDL2 + DRM needs LIBGDM-dev!
new strategy: build a toolchain, build boost, build cmake, build game
I would prefer to do the last!
if fail...
make distclean
DEB Debian packaging
build-essential
devscripts
debhelper
export LD_LIBRARY_PATH="$LOCAL/lib"
export PKG_CONFIG_PATH="$LOCAL/lib/pkgconfig:$LOCAL/share/pkgconfig"
export CFLAGS="-I/usr/include/arm-linux-gnueabihf" # for the C compiler
export CXXFLAGS="-I/usr/include/arm-linux-gnueabihf/sys" # for the C++ compiler
export LDFLAGS="-L$LOCAL/lib" # for the linker
I have no idea, but it sounds like something to care for
Code:
System calls that are interrupted by signals can either abort and return EINTR
or
automatically restart themselves if and only if SA_RESTART is specified in
sigaction(2)
...
and the one responsible for this task is the restart_block which used to track
information and
arguments for restarting system calls
dEQP failures on llvmpipe
GALLIVM_DEBUG=no_rho_approx,no_bilinear,no_quad_lod
VALKYRIE(GUI for Valgrind)
VALGRIND utilize MEMCHECK and mockup MALLOC by vg_replace_malloc.c to produce a more
detailed
output
And keep in mind: MALLOC don't produce the ERROR, it detects it!
Doubly/double linked list example
Code:
struct symbol *next_sym = NULL;
for(sym = st[i]; sym != NULL; ) {
next_sym = sym->next;
free(sym);
sym = next_sym;
}
just to have fun
https://forum.unity.com/threads/why-wasnt-timeline-named-compositor.536102/
https://en.wikipedia.org/wiki/Input%E2%80%93output_memory_management_unit
RPI3b(bcm2835) has 2 MMU's(Memory Management Unit - block/frame wise RAM access by DMA)
...MMU for CPU<=>RAM
...SMMU(IOMMU) for IO<=>RAM
activating the GL(Full KMS) by
raspi-config allocates 256MB CMA(Contiguous memory allocation)
CMA is designed for system without MMU, so reallocation may be not possible
I wonder what's the differnce of the deprecated UMP(Universal Memory Provider) which is still needed for MALI drivers on Banana PI?
export CFLAGS="-mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits"
--with-arch=armv6 --with-fpu=vfp --with-float=hard
https://www.andreasch.com/2018/05/08/rpi3-kernel-aarch64/
Code:
s25client: malloc.c:2883: mremap_chunk: Assertion `((size + offset) & (GLRO
(dl_pagesize) - 1)) == 0' failed.
realloc(): invalid old size
Trace/Breakpoint ausgelöst
...the signed/unsigned issue ?...
In file included from /home/pi/s25clientl/s-c/resample-1.8.1/sndlib-20/sound.c:36:
/home/pi/s25clientl/s-c/resample-1.8.1/sndlib-20/sound.c: In function
‘mus_sound_set_maxamps’:
/home/pi/s25clientl/s-c/resample-1.8.1/sndlib-20/_sndlib.h:399:22: error: argument 1
value ‘4294967295’ exceeds
maximum object size 2147483647 [-Werror=alloc-size-larger-than=]
#define CALLOC(a, b) calloc((size_t)(a), (size_t)(b))
#s-c/resample-1.8.1/sndlib-20/headers.c
static int read_avi_header(const char* filename, int chan)
if(cksizer < (off_t)HDRBUFSIZ)
Code:
from /home/pi/s25client/external/libutil/src/FileWriter.cpp:18:
/usr/include/c++/8/ext/concurrence.h:122:34: error: too many initializers for
‘__pthread_mutex_s’
__gthread_mutex_t _M_mutex = __GTHREAD_MUTEX_INIT;
^~~~~~~~~~~~~~~~~~~~
It is illegal to have an array of unknown bound as a non-static member of a struct.
[class.mem]/13
Non-static data members shall not have incomplete types.
This is because the size of the class must be known when the closing brace is
reached.
Maybe you should make stateDuration a std::vector<unsigned int> instead.
...compiling RPI3 + GLES2.0...
/home/pi/s25client/external/libsiedler2/include/libsiedler2/ColorARGB.h:107:5: error:
"RTTR_USE_UNALIGNED_ACCESS" is
not defined, evaluates to 0 [-Werror=undef]
#if RTTR_USE_UNALIGNED_ACCESS
/home/pi/s25client/external/s-c/resample-1.8.1/sndlib-20/headers.c:2175:44: error:
comparison of integer expressions
of different signedness: ‘off_t’ {aka ‘long int’} and ‘unsigned int’ [-Werror=sign-
compare]
if(cksizer < HDRBUFSIZ)
"Vomiting is not Projectile" bug