From 04fe0ebd2ca09736f3f6b5c896c9187b5ee49a53 Mon Sep 17 00:00:00 2001 From: bluew Date: Sun, 10 Mar 2024 23:48:27 +0100 Subject: [PATCH 1/3] README.org: Update build instructions --- README.org | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.org b/README.org index 10c7612..4ad81ec 100644 --- a/README.org +++ b/README.org @@ -22,18 +22,6 @@ The =trdb= binary provides functionality to decompress recorded packages and to compress stimuli/trace files. -** Dependencies - Requires =libbfd.a=, =libopcodes.a=, =libiberty.a= and =libzlib.a= from - [[https://github.com/pulp-platform/pulp-riscv-binutils-gdb][binutils]] built using the =trace_dbg_dev= branch. Build it by calling - - #+BEGIN_SRC bash - export CFLAGS="-g -O2 -fPIC" - ./configure --enable-targets=riscv32, x86_64-pc-linux-gnu --disable-gdb \ - --disable-ld --disable-gas --disable-gold --disable-intl --disable-gprof \ - --disable-readline --disable-sim --disable-libdecnumber - make clean all - #+END_SRC - ** Build To build =trdb=, =tests= and =libtrdb.a= call From a823593b31b560bc72faf026d1dd351b0e4d79ec Mon Sep 17 00:00:00 2001 From: bluew Date: Sun, 10 Mar 2024 23:49:12 +0100 Subject: [PATCH 2/3] ci: Remove .travis.yml Company is basically dead. --- .travis.yml | 59 ----------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0ec7881..0000000 --- a/.travis.yml +++ /dev/null @@ -1,59 +0,0 @@ -dist: xenial -language: c -compiler: - - gcc - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-7 - - valgrind - -env: - global: - - RISCV="/home/travis/riscv_install" - -before_install: - - export CC=gcc-7 - - export PATH=$RISCV/bin:$PATH - - export NUM_JOBS=4 - -stages: - - checkout - - build1 - - build2 - - testdata - - test32 - - test64 - -jobs: - include: - - stage: checkout - name: checkout risc-v gcc - script: - - ./ci/get-gcc.sh 0 - - stage: build1 - name: build risc-v gcc - script: - - ./ci/get-gcc.sh 1 - - stage: build2 - name: build tools - script: - - make spike-32 - - make spike-64 - - make riscv-fesvr/build.ok - - stage: testdata - name: generate test data - script: - - make spike-traces-32 - - make spike-traces-64 - - stage: test32 - name: run spike trace tests (32-bit) - script: - - ./ci/run-tests-32.sh - - stage: test64 - name: run spike trace tests (64-bit) - script: - - ./ci/run-tests-64.sh From b1e086f10d0b179c414a1776a659214e957ec133 Mon Sep 17 00:00:00 2001 From: bluew Date: Sun, 10 Mar 2024 23:50:42 +0100 Subject: [PATCH 3/3] scripts: Simplify debug build _FORTIFY_SOURCE causes trouble when optimizations are disabled. --- configure-debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure-debug b/configure-debug index e966688..34b39a5 100755 --- a/configure-debug +++ b/configure-debug @@ -1,2 +1,2 @@ #!/usr/bin/bash -./configure CFLAGS="-O0 -g -fno-strict-aliasing -DENABLE_LOGGING -DENABLE_DEBUG -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=leak" CPPFLAGS="-D_FORTIFY_SOURCE=2" +./configure CFLAGS="-Og -g -fno-strict-aliasing -DENABLE_LOGGING -DENABLE_DEBUG -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=leak"