Skip to content

How to install torch7-cutorch

I want to install torch7-cutorch https://aur.archlinux.org/packages/torch7-cutorch-git/

when I run makepkg -si I get

$ makepkg -si
==> Making package: torch7-cutorch-git r1026.5e9d86c-5 (Thu 16 Sep 2021 22:25:43)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating torch7-cutorch-git git repo...
Fetching origin
  -> Found THCAtomics.cuh.patch
==> Validating source files with sha512sums...
    torch7-cutorch-git ... Skipped
    THCAtomics.cuh.patch ... Passed
==> Extracting sources...
  -> Creating working copy of torch7-cutorch-git git repo...
Reset branch 'makepkg'
==> Starting prepare()...
patching file lib/THC/THCAtomics.cuh
Hunk #2 succeeded at 118 with fuzz 2.
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is unknown
CMake Error in CMakeLists.txt:
  The CMAKE_C_COMPILER:

    gcc-8

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/huy/Downloads/waifu2x-git/torch7-cutorch-git/src/torch7-cutorch-git/CMakeFiles/CMakeOutput.log".
See also "/home/huy/Downloads/waifu2x-git/torch7-cutorch-git/src/torch7-cutorch-git/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

How can I resolve this?

1 points1 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 57% up
Kind
Text
ID
pplda9

Author

45
posts
65
comments
0
media
View profile

1 comment

unknown author

It seems that you need gcc8 to build that package for some reason

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.