Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build requires pod2man & creating a recipe for Yoctor #1111

Closed
veripoolbot opened this issue Nov 17, 2016 · 2 comments
Closed

build requires pod2man & creating a recipe for Yoctor #1111

veripoolbot opened this issue Nov 17, 2016 · 2 comments
Labels
resolution: no fix needed Closed; no fix required (not a bug)

Comments

@veripoolbot
Copy link
Contributor


Author Name: Edward Vidal Jr.
Original Redmine Issue: 1111 from https://www.veripool.org


Helo All,
Created an Image for a Raspberry Pi 2B using yocto.

Downloaded the source code

commit 183cabc
Author: Wilson Snyder wsnyder@wsnyder.org
Date: Tue Nov 8 21:16:22 2016 -0500

in the verilator folder I ran the following commands

autoconf
./configure

make which ran okay with out error.

running make install had the following error

mkdir /usr/local/share/verilator/bin
( cd ./bin ; /usr/bin/install -c verilator_includer /usr/local/share /verilator/bin/verilator_includer )
pod2man bin/verilator verilator.1
make: pod2man: Command not found
make: *** [Makefile:214: verilator.1] Error 127

A version of pod2man from /usr/bin/ on a Ubuntu 16.04 was tested

root@raspberrypi2Xula:~/verilator# cp ~/arty_repo/verilator_fix/pod2man /usr/bin/

Ran the make install command this time no error.

For documentation see 'man verilator' or 'verilator --help'
For forums and to report bugs see http://www.veripool.org/verilator

I am also trying to create a recipe for Yocto to build verilator
as part of the image. Yocto provides builds for many systems
packages provide can be of several formats depending on the local.conf
file.

1. Package Management configuration
#
1. This variable lists which packaging formats to enable. Multiple package backends
1. can be enabled at once and the first item listed in the variable will be used
1. to generate the root filesystems.
1. Options are:
1.  - 'package_deb' for debian style deb files
1.  - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
1.  - 'package_rpm' for rpm style packages
1. E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
1. We default to rpm:
PACKAGE_CLASSES ?= "package_rpm"

I created the recipe verilator.bb using the yocto recipetool

recipetool http://git.veripool.org/git/verilator ~/wkg/yocto/verilator.bb

recipetool create http://git.veripool.org/git/verilator -o ~/wkg/yocto/verilator.bb

I made some minor chgs to the verilator.bb
vidal@ws009:~/wkg/yocto/RaspberryPi2/poky/build$ diff -u ../../../verilator.bb ../meta-raspberrypi/recipes-devtools/verilator/verilator.bb

--- ../../../verilator.bb	2016-11-17 10:41:23.322710059 -0700
+++ ../meta-raspberrypi/recipes-devtools/verilator/verilator.bb	2016-11-17 10:01:53.486802853 -0700
@@ -9,7 +9,7 @@
 # these in the LICENSE value using & if the multiple licenses all apply, or | if there
 # is a choice between the multiple licenses. If in doubt, check the accompanying
 # documentation to determine which situation is applicable.
-LICENSE = "GPLv3 LGPLv3"
+LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
                      file://COPYING.LESSER;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
 
@@ -26,7 +26,7 @@
 # NOTE: if this software is not capable of being built in a separate build directory
 # from the source, you should replace autotools with autotools-brokensep in the
 # inherit line
-inherit perlnative autotools
+inherit perlnative autotools-brokensep
 
 # Specify any options you want to pass to the configure script using EXTRA_OECONF:
 EXTRA_OECONF = ""

My recipe is still not working correctly but now is getting further
when I execute the bitbake verilator
The recipe is read and the download is completed.

vidal@ws009:~/wkg/yocto/RaspberryPi2/poky/build$ bitbake verilator
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 2617 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi2"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         
meta-yocto-bsp    = "morty:6c9f6b5f70ab3ee194b2c2c6f3bd462c994848fa"
meta-raspberrypi  = "master:6bd1bfe472ea491c0edeb7c854d1c0cc5192afeb"
meta-oe           
meta-python       
meta-multimedia   
meta-gnome        = "morty:6c9f6b5f70ab3ee194b2c2c6f3bd462c994848fa"
meta-browser      = "master:1edcce7791b4cee9a515c1f11b351753a4f8b12e"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: verilator-3.889+gitAUTOINC+183cabc77d-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this.
ERROR: verilator-3.889+gitAUTOINC+183cabc77d-r0 do_configure: Function failed: do_qa_configure
ERROR: Logfile of failure stored in: /home/vidal/wkg/yocto/RaspberryPi2/poky/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/verilator/3.889+gitAUTOINC+183cabc77d-r0/temp/log.do_configure.8782
ERROR: Task (/home/vidal/wkg/yocto/RaspberryPi2/poky/meta-raspberrypi/recipes-devtools/verilator/verilator.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 402 tasks of which 401 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/vidal/wkg/yocto/RaspberryPi2/poky/meta-raspberrypi/recipes-devtools/verilator/verilator.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

The log provides the following.

ts -Qunused-arguments... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/Makefile_obj
config.status: creating include/verilated.mk
config.status: creating include/verilated_config.h
config.status: creating verilator.pc
config.status: creating src/config_build.h
config.status: src/config_build.h is unchanged
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-dependency-tracking, --with-libtool-sysroot, --disable-static

Now type 'make' (or sometimes 'gmake') to build Verilator.

DEBUG: Shell function do_configure finished
DEBUG: Executing python function do_qa_configure
NOTE: Checking autotools environment for common misconfiguration
ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this.
DEBUG: Python function do_qa_configure finished
ERROR: Function failed: do_qa_configure

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-11-19T17:29:18Z


Thanks for working on this. I'm not sure if any changes are needed in verilator or not, but if so we'd welcome a patch to help out the process.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-10-05T22:20:18Z


Thanks again for the work on this - but closing as basically informative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: no fix needed Closed; no fix required (not a bug)
Projects
None yet
Development

No branches or pull requests

1 participant