mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] cross compiling for the target fails
@ 2020-09-16 11:25 Simon Ruetzler
  0 siblings, 0 replies; only message in thread
From: Simon Ruetzler @ 2020-09-16 11:25 UTC (permalink / raw)
  To: rauc

I'm trying to cross compile for my target.

What I do:
Include the path to the compiler to the PATH variable.

./configure --host=arm-linux-gnueabihf --with-sysroot=PATH_TO_MY_SYSROOT

There are 2 problems:
1. sysroot is ignored:
./include/bundle.h:3:25: fatal error: openssl/cms.h: No such file or 
  #include <openssl/cms.h>
There is no -I entry in the compiler call to my sysroot

2. Headers are searched on the host
/usr/include/x86_64-linux-gnu/sys/cdefs.h:467:49: error: missing binary 
operator before token "("
  #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5)
There is an entry -I/usr/include/x86_64-linux-gnu in the compiler call.

This is the first compiler call: (printed with make -n)
echo "  CC      " src/librauc_la-bootchooser.lo;/bin/bash ./libtool 
--silent --tag=CC   --mode=compile arm-linux-gnueabihf-gcc -std=gnu99 
-DHAVE_CONFIG_H -I.  -I./include -include ./config.h 
-DG_LOG_DOMAIN=\"rauc\" -fdata-sections -ffunction-sections 
-fno-strict-aliasing -Wall -Wextra -Wundef -Wnested-externs 
-Wwrite-strings -Wpointer-arith -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls 
-Wno-unused-parameter -Wno-missing-field-initializers 
-Wdeclaration-after-statement -Wformat=2 -Wold-style-definition 
-Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare 
-Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute 
-Wmissing-noreturn -Winit-self -Wmissing-include-dirs 
-Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration 
-Wreturn-type -Wswitch-enum -Wswitch-default -Wno-error=unused-parameter 
-Wno-error=missing-field-initializers -pthread 
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 
-I/usr/include/x86_64-linux-gnu  -g -MT src/librauc_la-bootchooser.lo 
-MD -MP -MF src/.deps/librauc_la-bootchooser.Tpo -c -o 
src/librauc_la-bootchooser.lo `test -f 'src/bootchooser.c' || echo 

If I remove the entry -I/usr/include/x86_64-linux-gnu and add the enty 
-IPATH_TO_MY_SYSROOT/usr/include at least this command succeeded.

I'm using the source code tags with v1.4

According to the documentation can be cross compiled.
What I'm doing wrong?

Regards Simon

RAUC mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-16 11:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 11:25 [RAUC] cross compiling for the target fails Simon Ruetzler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox