vsergeev/c-periphery

Portage error: make: *** No rule to make target 'install'. Stop.

Petross404 opened this issue · 1 comments

I want to package c-periphery for Gentoo, but I am getting an error that an installation target doesn't exit.

>>> Emerging (1 of 1) sys-libs/c-periphery-9999::testing
 * sys-libs/c-periphery will not be compiled with PGO.
>>> Unpacking source...
 * Repository id: vsergeev_c-periphery.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_VSERGEEV_C_PERIPHERY
 *   EGIT_OVERRIDE_BRANCH_VSERGEEV_C_PERIPHERY
 *   EGIT_OVERRIDE_COMMIT_VSERGEEV_C_PERIPHERY
 *   EGIT_OVERRIDE_COMMIT_DATE_VSERGEEV_C_PERIPHERY
 * 
 * Fetching https://github.com/vsergeev/c-periphery.git ...
git fetch https://github.com/vsergeev/c-periphery.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/sys-libs/c-periphery/0/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/vsergeev/c-periphery.git to /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/vsergeev/c-periphery.git
   at the commit:            2379567960b9f72ccfb8f9db7271092612e89bdf
>>> Source unpacked in /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work
>>> Preparing source in /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999 ...
>>> Source prepared.
>>> Configuring source in /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999 ...
>>> Source configured.
>>> Compiling source in /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999 ...
make -j3 -l2 
mkdir obj
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/gpio.c -o obj/gpio.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/pwm.c -o obj/pwm.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/spi.c -o obj/spi.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/i2c.c -o obj/i2c.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/mmio.c -o obj/mmio.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/serial.c -o obj/serial.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/version.c -o obj/version.o
cc -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -std=gnu99 -pedantic -O3 -Wall -Wextra -Wno-stringop-truncation  -fPIC -DPERIPHERY_VERSION_COMMIT=\"v2.3.1-1-g2379567\" -DPERIPHERY_GPIO_CDEV_SUPPORT=1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,--trace -Wl,-z,relro -Wl,-z,now -Wl,--stats -Wl,--print-map -Wl,--hash-style=gnu -Wl,--enable-new-dtags -march=native -mprefer-avx128 -mvzeroupper  -frecord-gcc-switches -mno-tbm  -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register  -flto -flto-report -fuse-linker-plugin  -pipe -O2 -c src/led.c -o obj/led.o
ar rcs periphery.a obj/gpio.o obj/led.o obj/pwm.o obj/spi.o obj/i2c.o obj/mmio.o obj/serial.o obj/version.o
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/c-periphery-9999

>>> Install sys-libs/c-periphery-9999 into /mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/image
make -j3 -l2 DESTDIR=/mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/image install 
make: *** No rule to make target 'install'.  Stop.
 * ERROR: sys-libs/c-periphery-9999::testing failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/c-periphery-9999::testing'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/c-periphery-9999::testing'`.
 * The complete build log is located at '/var/log/portage/sys-libs:c-periphery-9999:20220611-143939.log'.
 * For convenience, a symlink to the build log is located at '/mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/temp/build.log'.
 * The ebuild environment file is located at '/mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/temp/environment'.
 * Working directory: '/mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999'
 * S: '/mnt/Volume_3/Gentoo/temp/portage/sys-libs/c-periphery-9999/work/c-periphery-9999'

I am confused since there is an install command in CMakeLists.txt here.[1] What am I missing here?

Thank you for your time.

[1] https://github.com/vsergeev/c-periphery/blob/v2.3.1/CMakeLists.txt#L52

Found it, this is on me.

I was missing inherit cmake on top of the ebuild. I am sorry, it can be installed normally!