Giter VIP home page Giter VIP logo

Comments (21)

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git That's odd ! How did you get that error ? Please give me step-by-step instructions so I can reproduce this 👍

from rooster.

 avatar commented on May 14, 2024

I am trying to create a package for Void linux :)
As you can see, my template is very similar to the AUR PKGBUILD, so it should work...
But it fails at this moment:

do_build() {
	cargo build --release
}

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

Are you saying that the PKGBUILD for rooster is failing or the PKGBUILD for Void linux?

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git You need to explain what you did to get the error. Otherwise, I can't help you.

from rooster.

 avatar commented on May 14, 2024

Yes my template is failing.
I haven't tested the AUR PKGBUILD.

  1. I got the checksum error while compiling with xbps-src (the Void package manager).

  2. Now if I try to manually compile the package, I get a different error:

$ wget https://github.com/conradkdotcom/rooster/archive/v2.7.1.tar.gz
$ tar xf v2.7.1.tar.gz
$ cd rooster-2.7.1/
$ cargo build --release
   Compiling cfg-if v0.1.2
   Compiling serde v1.0.15
   Compiling lazy_static v0.2.9
   Compiling regex-syntax v0.4.1
   Compiling dtoa v0.4.2
   Compiling rustc-demangle v0.1.5
   Compiling byteorder v1.1.0
   Compiling derive_builder v0.5.0
error: could not exec the linker `cc`: No such file or directory (os error 2)
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m32" "-L" "/usr/lib32/rustlib/i686-unknown-linux-gnu/lib" "/home/rooster-2.7.1/target/release/build/derive_builder-e61533723db8a9f8/build_script_mod-e61533723db8a9f8.0.o" "-o" "/home/rooster-2.7.1/target/release/build/derive_builder-e61533723db8a9f8/build_script_mod-e61533723db8a9f8" "/home/rooster-2.7.1/target/release/build/derive_builder-e61533723db8a9f8/build_script_mod-e61533723db8a9f8.crate.allocator.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/rooster-2.7.1/target/release/deps" "-L" "/usr/lib32/rustlib/i686-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstd-b90d0c76386a24cb.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc_jemalloc-10b33217ec925c6b.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc_system-6c4ad228b61620cd.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-52cffdf3087cae85.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/librand-a1e8dab944c77732.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libunwind-19485def8d5ea577.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-63b2f16afbb21048.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc-90d543e3e4e27cb0.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libstd_unicode-9af347a7d348c4fe.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcore-c958a853d9c51850.rlib" "/usr/lib/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-0260336da324a9ba.rlib" "-Wl,-Bdynamic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util"

error: aborting due to previous error

error: Could not compile `derive_builder`.
warning: build failed, waiting for other jobs to finish...

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

In your error message, it says "cc" was not found. You probably need to install gcc.

from rooster.

 avatar commented on May 14, 2024

gcc was missing, of course!
ok, I just made a new attempt:

$ cargo build --release
   Compiling getopts v0.2.15
   Compiling lazy_static v0.2.9
   Compiling gcc v0.3.54
   Compiling either v1.3.0
   Compiling dtoa v0.4.2
   Compiling unicode-xid v0.0.4
   Compiling void v1.0.2
   Compiling rustc-serialize v0.3.24
   Compiling serde v1.0.15
   Compiling num-traits v0.1.40
   Compiling log v0.3.8
   Compiling rustc-demangle v0.1.5
   Compiling byteorder v1.1.0
   Compiling regex-syntax v0.4.1
   Compiling derive_builder v0.5.0
   Compiling rprompt v1.0.3
   Compiling quote v0.3.15
   Compiling libc v0.2.30
   Compiling cfg-if v0.1.2
   Compiling itoa v0.3.4
   Compiling utf8-ranges v1.0.0
   Compiling quick-error v1.2.1
   Compiling bit-vec v0.4.4
   Compiling shell-escape v0.1.3
   Compiling itertools v0.6.5
   Compiling synom v0.11.3
   Compiling unreachable v1.0.0
   Compiling backtrace-sys v0.1.12
   Compiling rust-crypto v0.2.36
   Compiling rand v0.3.16
   Compiling memchr v1.0.2
   Compiling xcb v0.8.1 (file:///home/rooster-2.7.1/patch-xcb)
   Compiling quale v1.0.0
   Compiling rpassword v2.0.0
   Compiling time v0.1.38
   Compiling serde_json v1.0.3
   Compiling bit-set v0.4.0
   Compiling thread_local v0.3.4
   Compiling syn v0.11.11
   Compiling aho-corasick v0.6.3
error: failed to run custom build command for `xcb v0.8.1 (file:///home/rooster-2.7.1/patch-xcb)`
process didn't exit successfully: `/home/rooster-2.7.1/target/release/build/xcb-3a0cab10475e3669/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

Problem with xcb ?

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

What operating system (and version) are you using ? Have you installed the required dependencies before compiling Rooster: pkg-config, python3, libxmu-dev, libx11-dev and one of xsel/xclip ?

from rooster.

 avatar commented on May 14, 2024

Exact! python3 and xclip was missing.

$ cargo build --release
   Compiling utf8-ranges v1.0.0
   Compiling cfg-if v0.1.2
   Compiling either v1.3.0
   Compiling serde v1.0.15
   Compiling libc v0.2.30
   Compiling rustc-demangle v0.1.5
   Compiling dtoa v0.4.2
   Compiling derive_builder v0.5.0
   Compiling quick-error v1.2.1
   Compiling lazy_static v0.2.9
   Compiling void v1.0.2
   Compiling shell-escape v0.1.3
   Compiling itoa v0.3.4
   Compiling byteorder v1.1.0
   Compiling log v0.3.8
   Compiling rprompt v1.0.3
   Compiling regex-syntax v0.4.1
   Compiling quote v0.3.15
   Compiling bit-vec v0.4.4
   Compiling getopts v0.2.15
   Compiling num-traits v0.1.40
   Compiling gcc v0.3.54
   Compiling unicode-xid v0.0.4
   Compiling rustc-serialize v0.3.24
   Compiling itertools v0.6.5
   Compiling quale v1.0.0
   Compiling rpassword v2.0.0
   Compiling time v0.1.38
   Compiling memchr v1.0.2
   Compiling xcb v0.8.1 (file:///home/rooster-2.7.1/patch-xcb)
   Compiling rand v0.3.16
   Compiling unreachable v1.0.0
   Compiling bit-set v0.4.0
   Compiling synom v0.11.3
   Compiling serde_json v1.0.3
   Compiling rust-crypto v0.2.36
   Compiling backtrace-sys v0.1.12
   Compiling aho-corasick v0.6.3
   Compiling thread_local v0.3.4
   Compiling syn v0.11.11
   Compiling regex v0.2.2
   Compiling serde_derive_internals v0.16.0
   Compiling derive_builder_core v0.1.7
   Compiling backtrace v0.3.3
   Compiling error-chain v0.11.0
   Compiling serde_derive v1.0.15
   Compiling x11-clipboard v0.2.2
   Compiling fancy-regex v0.1.0
   Compiling clipboard v0.4.2
   Compiling zxcvbn v0.6.1
   Compiling rooster v2.7.1 (file:///home/rooster-2.7.1)
    Finished release [optimized] target(s) in 266.76 secs

Good! 😃
Many thanks to you @conradkdotcom
Now I must modify my template for Void linux.

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git I've added gcc to the instructions on the front page of this repo. https://github.com/conradkdotcom/rooster

from rooster.

 avatar commented on May 14, 2024

Just to clarify the situation:
To create new packages, the Void's package manager works in a chroot where gcc is already installed.
When I manually compiled rooster I was outside the chroot, this is why gcc was missing, of course...
😉

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git OK, thanks !

from rooster.

 avatar commented on May 14, 2024

About my first post (the checksum error), somebody gave me the answer in #8725 ...

from rooster.

 avatar commented on May 14, 2024

@conradkdotcom package accepted and merged in Void linux 🎉 see commit.
To install it:
xbps-install rooster

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

Ahh, now I understand that you were working on a Rooster package for Void Linux all this time. I tought you were trying to compile Rust code on Void Linux and had trouble.

Great to hear about the package ! Thanks for making it ! I hope you like Rooster ! 😄

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

If you can, would you mind making a PR in which you add installation instructions for Rooster on Void Linux in the README ? Would be awesome ! 👍

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

/cc @cr6git

from rooster.

 avatar commented on May 14, 2024

If you can, would you mind making a PR in which you add installation instructions for Rooster on Void Linux in the README ?

I'm not sure to understand... what instructions do you want to add, precisely ?

I'm sorry I didn't ask you sooner. Sometimes I'm too busy and I forget to check my emails...

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git Instructions that explain how to install Rooster on Void Linux 😄

from rooster.

 avatar commented on May 14, 2024

xbps-install -S rooster

it's like pacman -S rooster in Arch, if you are used to.

from rooster.

conradkleinespel avatar conradkleinespel commented on May 14, 2024

@cr6git awesome,thanks !

from rooster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.