Giter VIP home page Giter VIP logo

Comments (10)

dciabrin avatar dciabrin commented on June 16, 2024

Can you specify which version of Debian you're hitting the issue on?

from ngdevkit.

totologic avatar totologic commented on June 16, 2024

Of course. These are the full details of my virtual machine configuration:

memory: 2.0 GiB
processor: Intel® Core™ i7-8550U CPU @ 1.80GHz
graphics: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
base system: Debian GNU/Linux 9 (stretch) 64-bit
virtualization : oracle

The iso I used to install Debian was the debian-9.5.0-amd64-netinst.iso

Prior to build the tool chain, I made the pre-requisite. I precise that I had to add the small fix suggested by ozzyyzzo4096

apt-get install gcc curl
GCC_VERSION_PKG=$(apt-cache depends gcc | awk '/Depends.*gcc/ {print $2}')
apt-get build-dep $GCC_VERSION_PKG
apt-get install graphicsmagick-imagemagick-compat
apt-get build-dep sdcc
apt-get install imagemagick
apt-get install libsdl2-dev
apt-get install python-pygame

from ngdevkit.

dciabrin avatar dciabrin commented on June 16, 2024

Hey thx for your report, I indeed found a bug during the end of the devkit compilation, that one is fixed in 565f7b6

However when I tested on a pristine Debian Stretch set up with virt-builder, I could not reproduce your specific error during gcc compilation, nor the missing dependency :/

# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Before compiling the entire devkit, I made sure to update to the very latest Debian packages:

sudo apt-get update
sudo apt-get upgrade

Could you maybe try with that and make sure you have installed all the prerequisites? Then in the ngdevkit directory:

make distclean
make

If you still have the issue, I'd appreciate to see the entire compilation log to spot the first error.

from ngdevkit.

dciabrin avatar dciabrin commented on June 16, 2024

Oh, when using the image you mentioned, I'm apparently hitting different mirrors and I can see now that package imagemagick is deprecated in favor of graphicsmagick and graphicsmagick-imagemagick-compat.

I'll update README.md accordingly shortly.

from ngdevkit.

totologic avatar totologic commented on June 16, 2024

I decided to completly override my Debian installation so I am ready to restart from scratch.

I will try again after your update.

from ngdevkit.

dciabrin avatar dciabrin commented on June 16, 2024

OK so, it turns out that graphicsmagick not really replaces imagemagick, it only "provides" (in the packaging sense) it via graphicsmagick-imagemagick-compat.

imagemagick for some reason seems to be needed by one of the build dependencies that are being installed in the README. So in 8a81c19, I make sure to install it before everything else and graphicsmagick-imagemagick-compat is not required anymore.

Could you update to this revision and try to rebuild the entire toolkit now?

apt-get update
apt-get upgrade
make distclean
make

I've used the same apt mirrors as your Debian image, and installing the deps in that new order seems to be sufficient for the building process to finish successfully.

from ngdevkit.

totologic avatar totologic commented on June 16, 2024

The result of apt-get build-dep sdcc (in pre-requisite) is the following:

**Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
builddeps:sdcc : Depends: graphicsmagick-imagemagick-compat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.**

Is it good sign ? I have stopped and will continue after your opinion.

from ngdevkit.

dciabrin avatar dciabrin commented on June 16, 2024

Hmm, I have no idea why the build succeeded on my VM and not on yours, but I know why apt wants to install graphicsmagick dependencies:

ngdevkit@ngdk:~$ apt-cache showsrc sdcc
Package: sdcc
Binary: sdcc, sdcc-libraries, sdcc-ucsim, sdcc-doc
Version: 3.5.0+dfsg-2
Maintainer: Gudjon I. Gudjonsson <[email protected]>
Uploaders: Bdale Garbee <[email protected]>
Build-Depends: autoconf, autotools-dev, bison, debhelper (>= 9), dpkg-dev (>= 1.16.1~), flex, gputils, libboost-dev, libncurses5-dev, libtool
Build-Depends-Indep: ghostscript, graphicsmagick-imagemagick-compat, lyx, texlive-fonts-recommended, texlive-generic-recommended, texlive-latex-recommended, gsfonts**
[...]

In fact, there are the only dependencies that we need to rebuild sdcc for ngdevkit are the 'Build-Depends" ones, we can get rid of the "Build-Depends-Indep" ones.

So, I think you can fix your problem by replacing "apt-get build-dep sdcc" with "apt-get build-dep --arch-only sdcc".

I just did that on a Debian 9 for WSL (windows 10), and the dependencies installed fine and the build process finished as expected.

Could you give it a try? If that fixes the problem I'll push a commit with that change in the various README files.

from ngdevkit.

totologic avatar totologic commented on June 16, 2024

Yes it works with well "apt-get build-dep --arch-only sdcc"

from ngdevkit.

dciabrin avatar dciabrin commented on June 16, 2024

Pushed the according doc update, thanks for reporting the issue.

from ngdevkit.

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.