Build FreeBSD: FAILED 6/rtems-sparc on x86_64-freebsd12.1 (sparc-rtems6-gdb-5085593976-x86_64-freebsd12.1-1)

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Dec 5 07:50:43 UTC 2019


On 05/12/2019 08:46, Sebastian Huber wrote:
> On 05/12/2019 08:38, Sebastian Huber wrote:
>> On 04/12/2019 14:56, sebastian.huber at embedded-brains.de wrote:
>>> ../../../sourceware-mirror-binutils-gdb-5085593976/sim/erc32/sis.c:36:10: 
>>> fatal error: 'readline/readline.h' file not found
>>> #include "readline/readline.h"
>>
>> This is the GDB build failure on FreeBSD 12.1. I have a readline.h in:
>>
>> /usr/local/include/readline/readline.h
> 
> Maybe the problem is that /usr/local/include is not in the compiler 
> search path by default:
> 
> $ echo "" | cc  -E -P -v  -
> FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on 
> LLVM 8.0.1)
> Target: x86_64-unknown-freebsd12.1
> Thread model: posix
> InstalledDir: /usr/bin
>   "/usr/bin/cc" -cc1 -triple x86_64-unknown-freebsd12.1 -E -disable-free 
> -disable-llvm-verifier -discard-value-names -main-file-name - 
> -mrelocation-model static -mthread-model posix -mdisable-fp-elim 
> -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array 
> -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -P 
> -resource-dir /usr/lib/clang/8.0.1 -fdebug-compilation-dir 
> /usr/home/user/rtems-source-builder/rtems -ferror-limit 19 
> -fmessage-length 151 -fobjc-runtime=gnustep -fdiagnostics-show-option 
> -fcolor-diagnostics -o - -x c - -faddrsig
> clang -cc1 version 8.0.1 based upon LLVM 8.0.1 default target 
> x86_64-unknown-freebsd12.1
> #include "..." search starts here:
> #include <...> search starts here:
>   /usr/lib/clang/8.0.1/include
>   /usr/include
> End of search list.

On my openSUSE machine it looks like this:

echo "" | clang  -E -P -v  -
clang version 9.0.0 (tags/RELEASE_900/final 372316)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: 
/usr/bin/../lib64/gcc/x86_64-suse-linux/4.8
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/6
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/7
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/8
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/4.8
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/6
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/8
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/8
Candidate multilib: .;@m64
Selected multilib: .;@m64
  "/usr/bin/clang-9.0.0" -cc1 -triple x86_64-unknown-linux-gnu -E 
-disable-free -disable-llvm-verifier -discard-value-names 
-main-file-name - -mrelocation-model static -mthread-model posix 
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases 
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info 
-debugger-tuning=gdb -v -P -resource-dir /usr/lib64/clang/9.0.0 
-internal-isystem /usr/local/include -internal-isystem 
/usr/lib64/clang/9.0.0/include -internal-externc-isystem /include 
-internal-externc-isystem /usr/include -fdebug-compilation-dir 
/home/EB/sebastian_h/Daten/Projects/Documents/Arch/ARM/digi 
-ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc 
-fdiagnostics-show-option -fcolor-diagnostics -faddrsig -o - -x c -
clang -cc1 version 9.0.0 based upon LLVM 9.0.0 default target 
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
  /usr/local/include
  /usr/lib64/clang/9.0.0/include
  /usr/include
End of search list.

Here /usr/local/include is in the search path by default.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list