Skip to content

Instantly share code, notes, and snippets.

View yashi's full-sized avatar

Yasushi SHOJI yashi

View GitHub Profile
Performing C SOURCE FILE Test toolchain_is_ok failed with the following output:
Change Dir: /home/yashi/src/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_c614c/fast"
/usr/bin/make -f CMakeFiles/cmTC_c614c.dir/build.make CMakeFiles/cmTC_c614c.dir/build
make[1]: Entering directory '/home/yashi/src/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c614c.dir/src.c.obj
/home/yashi/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl --compile_only --c_file=/home/yashi/src/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp/src.c -Dtoolchain_is_ok --entry_point=main --output_file=CMakeFiles/cmTC_c614c.dir/src.c.obj
>> WARNING: invalid compiler option --entry_point=main (ignored)
Linking C executable cmTC_c614c
Error unpausing domain: internal error: failed to parse JSON 1:59: too big integer near '18446744073709551615'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1543, in resume
@yashi
yashi / coop.c
Created June 28, 2018 05:11
Zephyr coop threads test
#include <zephyr.h>
#include <misc/printk.h>
#define STACK_SIZE 1024
static struct k_thread __kernel thread1;
static struct k_thread __kernel thread2;
K_THREAD_STACK_DEFINE(stack1, STACK_SIZE);
K_THREAD_STACK_DEFINE(stack2, STACK_SIZE);
0:00:00.025037520 25419 0x5556381c1f80 DEBUG basetransform gstbasetransform.c:2392:gst_base_transform_activate:<mypayloader0> have_same_caps 0
Pipeline is PREROLLING ...
0:00:00.025303939 25419 0x555638218850 DEBUG basetransform gstbasetransform.c:1396:gst_base_transform_reconfigure:<mypayloader0> we had a pending reconfigure
0:00:00.025323437 25419 0x555638218850 DEBUG basetransform gstbasetransform.c:1467:gst_base_transform_default_query:<mypayloader0> calling propose allocation with query (NULL)
:
:
0:00:00.025594910 25419 0x555638218850 DEBUG basetransform gstbasetransform.c:1676:default_prepare_output_buffer:<mypayloader0> no output caps, source pad has been deactivated
(gst-launch-1.0:25419): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed
@yashi
yashi / gst_harness_add_parse.diff
Created April 29, 2017 13:33
abort if gst_parse_launch_full() failed
diff --git a/libs/gst/check/gstharness.c b/libs/gst/check/gstharness.c
index 7a6d2aafd..9c69dfd57 100644
--- a/libs/gst/check/gstharness.c
+++ b/libs/gst/check/gstharness.c
@@ -912,16 +912,18 @@ gst_harness_add_parse (GstHarness * h, const gchar * launchline)
GstPad *pad;
GstIterator *iter;
gboolean done = FALSE;
+ GError *error = NULL;
@yashi
yashi / fileobject.diff
Last active April 17, 2017 11:16
fileobject.diff
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 3bf840d1..f06436d4 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -1657,7 +1657,8 @@ rule FORTRAN_DEP_HACK
depfilename = generator.get_dep_outname(infilename)
depfile = os.path.join(self.get_target_private_dir(target), depfilename)
args = [x.replace('@DEPFILE@', depfile) for x in base_args]
- args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', sole_output)
+ args = [x.replace("@INPUT@", infilename).replace('@OUTPUT@', sole_output) if isinstance(x, str)
@yashi
yashi / gst-dynamic-pad.c
Last active May 10, 2021 02:25
An Example for GStreamer Dynamic Pad (Decodebin)
#include <gst/gst.h>
static gboolean bus_call (G_GNUC_UNUSED GstBus *bus, GstMessage *msg, gpointer data)
{
GMainLoop *loop = (GMainLoop *) data;
switch (GST_MESSAGE_TYPE (msg)) {
case GST_MESSAGE_EOS:
g_print ("End of stream\n");
@yashi
yashi / re2.cpp
Last active January 4, 2017 10:28
RE2 Regex
// -*- compile-command: "g++ -Wall -Wextra -g -lre2 re2.cc" -*-
#include <re2/re2.h>
#include <string.h>
#include <stdio.h>
using namespace re2;
int main()
{
const char *pattern = "^b";
@yashi
yashi / pcre.c
Last active January 27, 2021 08:37
PCRE Regex
/* -*- compile-command: "gcc -Wall -Wextra -g $(pkg-config --cflags --libs libpcre2-8) pcre.c" -*- */
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
#include <string.h>
#include <stdio.h>
int main(void)
{
pcre2_code *re;
PCRE2_SPTR pattern = (PCRE2_SPTR)"^b";
@yashi
yashi / libc.c
Last active January 4, 2017 10:27
GNU Libc Regex
/* -*- compile-command: "gcc -Wall -Wextra -g libc.c" -*- */
#include <regex.h>
#include <string.h>
#include <stdio.h>
int main(void)
{
regex_t re;
const char *pattern = "^b";
int ret;