Freedom-u-sdk make error on ubuntu 16.04.5 LTS


(Dinesh) #1

make[2]: Entering directory ‘/home/dt/f/freedom-u-sdk/work/linux’
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
UPD include/config/kernel.release
Using /home/dt/f/freedom-u-sdk/linux as source for kernel
GEN ./Makefile
WRAP arch/riscv/include/generated/uapi/asm/setup.h
WRAP arch/riscv/include/generated/uapi/asm/unistd.h
WRAP arch/riscv/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/riscv/include/generated/uapi/asm/errno.h
WRAP arch/riscv/include/generated/uapi/asm/fcntl.h
WRAP arch/riscv/include/generated/uapi/asm/ioctl.h
WRAP arch/riscv/include/generated/uapi/asm/ioctls.h
WRAP arch/riscv/include/generated/uapi/asm/ipcbuf.h
WRAP arch/riscv/include/generated/uapi/asm/mman.h
WRAP arch/riscv/include/generated/uapi/asm/msgbuf.h
WRAP arch/riscv/include/generated/uapi/asm/param.h
WRAP arch/riscv/include/generated/uapi/asm/poll.h
WRAP arch/riscv/include/generated/uapi/asm/posix_types.h
WRAP arch/riscv/include/generated/uapi/asm/resource.h
WRAP arch/riscv/include/generated/uapi/asm/sembuf.h
WRAP arch/riscv/include/generated/uapi/asm/shmbuf.h
WRAP arch/riscv/include/generated/uapi/asm/signal.h
WRAP arch/riscv/include/generated/uapi/asm/socket.h
WRAP arch/riscv/include/generated/uapi/asm/sockios.h
WRAP arch/riscv/include/generated/uapi/asm/stat.h
WRAP arch/riscv/include/generated/uapi/asm/statfs.h
WRAP arch/riscv/include/generated/uapi/asm/swab.h
WRAP arch/riscv/include/generated/uapi/asm/termbits.h
WRAP arch/riscv/include/generated/uapi/asm/termios.h
WRAP arch/riscv/include/generated/uapi/asm/types.h
WRAP arch/riscv/include/generated/asm/bugs.h
WRAP arch/riscv/include/generated/asm/cacheflush.h
WRAP arch/riscv/include/generated/asm/checksum.h
WRAP arch/riscv/include/generated/asm/clkdev.h
WRAP arch/riscv/include/generated/asm/cputime.h
WRAP arch/riscv/include/generated/asm/device.h
WRAP arch/riscv/include/generated/asm/div64.h
WRAP arch/riscv/include/generated/asm/dma.h
WRAP arch/riscv/include/generated/asm/dma-contiguous.h
WRAP arch/riscv/include/generated/asm/emergency-restart.h
WRAP arch/riscv/include/generated/asm/errno.h
WRAP arch/riscv/include/generated/asm/exec.h
WRAP arch/riscv/include/generated/asm/fb.h
WRAP arch/riscv/include/generated/asm/fcntl.h
WRAP arch/riscv/include/generated/asm/futex.h
WRAP arch/riscv/include/generated/asm/hardirq.h
WRAP arch/riscv/include/generated/asm/hash.h
WRAP arch/riscv/include/generated/asm/handle_irq.h
WRAP arch/riscv/include/generated/asm/hw_irq.h
WRAP arch/riscv/include/generated/asm/ioctl.h
WRAP arch/riscv/include/generated/asm/ioctls.h
WRAP arch/riscv/include/generated/asm/ipcbuf.h
WRAP arch/riscv/include/generated/asm/irq_regs.h
WRAP arch/riscv/include/generated/asm/irq_work.h
WRAP arch/riscv/include/generated/asm/kdebug.h
WRAP arch/riscv/include/generated/asm/kmap_types.h
WRAP arch/riscv/include/generated/asm/kvm_para.h
WRAP arch/riscv/include/generated/asm/local.h
WRAP arch/riscv/include/generated/asm/mm-arch-hooks.h
WRAP arch/riscv/include/generated/asm/mman.h
WRAP arch/riscv/include/generated/asm/module.h
WRAP arch/riscv/include/generated/asm/msgbuf.h
WRAP arch/riscv/include/generated/asm/mutex.h
WRAP arch/riscv/include/generated/asm/param.h
WRAP arch/riscv/include/generated/asm/percpu.h
WRAP arch/riscv/include/generated/asm/poll.h
WRAP arch/riscv/include/generated/asm/posix_types.h
WRAP arch/riscv/include/generated/asm/preempt.h
WRAP arch/riscv/include/generated/asm/resource.h
WRAP arch/riscv/include/generated/asm/scatterlist.h
WRAP arch/riscv/include/generated/asm/sections.h
WRAP arch/riscv/include/generated/asm/sembuf.h
WRAP arch/riscv/include/generated/asm/serial.h
WRAP arch/riscv/include/generated/asm/setup.h
WRAP arch/riscv/include/generated/asm/shmbuf.h
WRAP arch/riscv/include/generated/asm/shmparam.h
WRAP arch/riscv/include/generated/asm/signal.h
WRAP arch/riscv/include/generated/asm/socket.h
WRAP arch/riscv/include/generated/asm/sockios.h
WRAP arch/riscv/include/generated/asm/stat.h
WRAP arch/riscv/include/generated/asm/statfs.h
WRAP arch/riscv/include/generated/asm/swab.h
WRAP arch/riscv/include/generated/asm/termbits.h
WRAP arch/riscv/include/generated/asm/termios.h
WRAP arch/riscv/include/generated/asm/topology.h
WRAP arch/riscv/include/generated/asm/trace_clock.h
WRAP arch/riscv/include/generated/asm/types.h
WRAP arch/riscv/include/generated/asm/unaligned.h
WRAP arch/riscv/include/generated/asm/user.h
WRAP arch/riscv/include/generated/asm/vga.h
WRAP arch/riscv/include/generated/asm/vmlinux.lds.h
WRAP arch/riscv/include/generated/asm/xor.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CC arch/riscv/kernel/asm-offsets.s
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL /home/dt/f/freedom-u-sdk/linux/scripts/checksyscalls.sh
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
CHK scripts/mod/devicetable-offsets.h
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
e[01me[K/home/dt/f/freedom-u-sdk/linux/scripts/extract-cert.c:21:25:e[me[K e[01;31me[Kfatal error: e[me[Kopenssl/bio.h: No such file or directory
compilation terminated.
scripts/Makefile.host:90: recipe for target ‘scripts/extract-cert’ failed
make[3]: *** [scripts/extract-cert] Error 1
/home/dt/f/freedom-u-sdk/linux/Makefile:556: recipe for target ‘scripts’ failed
make[2]: *** [scripts] Error 2
make[2]: Leaving directory ‘/home/dt/f/freedom-u-sdk/work/linux’
Makefile:146: recipe for target ‘sub-make’ failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory ‘/home/dt/f/freedom-u-sdk/linux’
Makefile:135: recipe for target ‘/home/dt/f/freedom-u-sdk/work/linux/vmlinux’ failed
make: *** [/home/dt/f/freedom-u-sdk/work/linux/vmlinux] Error 2
e]0;dt@vrindavan: ~/f/freedom-u-sdkae[01;32mdt@vrindavane[00m:e[01;34m~/f/freedom-u-sdke[00m$ exit

Script done on Thursday 13 December 2018 11:39:12 PM IST


(Dinesh) #2

complete sdk make log at

https://raw.githubusercontent.com/hakrdinesh/e/master/m.out


(Dinesh) #3

sudo apt install libssl-dev

helped.


(Dinesh) #4

Complete list of build dependencies in README.md at freedom-u-sdk.git should be

Build dependencies: build-essential git autotools-dev texinfo bison flex libgmp-dev libmpfr-dev libmpc-dev gawk libz-dev libssl-dev

i.e. gawk libz-dev libssl-dev

should be added. Please kindly update the README.

And kindly fix the spelling in the first line

SiFive Freedom Uleashed SDK

to Unleashed.

Thanks for all the help so far. Excuse my nitpicking. Just did not want others to trip at these places.

Regards,
Dinesh


(Jim Wilson) #5

The README.md file is new. I didn’t realize it was there. I just added a pull request to make the changes you suggested, plus I noticed a second typo that I fixed, and I added info for the simulator targets.


(Dinesh) #6

Looks good to me.

Thanks Jim.

Regards,
Dinesh


(Dinesh) #7

make qemu errors with:

ERROR: glib-2.22 gthread-2.0 is required to compile QEMU

and

ERROR: pixman >= 0.21.8 not present.
Please install the pixman devel package.

logs are at

Please add

libglib2.0-dev libpixman-1-dev

as prerequisities for make qemu or general build requisites in the README.md at freedom-u-sdk.git

Thanks.

https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=libpixman&searchon=names

Regards,
Dinesh


(Dinesh) #8

make sim needs this package

device-tree-compiler

to be installed for compilation.

error log at

Kindly add this info to README.md in git repo.

Thanks,
Dinesh