Skip to content

Does not work in ubuntu 18.04 #3

Description

@Squantor

I am trying to run the rt0 build in ubuntu 18.04 but I am getting the following error:

$ make 
make: *** No rule to make target '/usr/include//asm/unistd_64.h', needed by 'include/rt0/sys64.h'.  Stop.

After digging into the Makefile I come to the conclusion that there is something wrong on this line:

OS = $(shell cat /etc/os-release | grep "rhel\|fedora\|centos" && echo "rhel" || cat /etc/os-release | grep "debian\|ubuntu" && echo "debian" || uname)

As when I execute make showconfig the line for OS looks like this:

OS=ID=ubuntu ID_LIKE=debian HOME_URL=https://www.ubuntu.com/ SUPPORT_URL=https://help.ubuntu.com/ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy debian

Instead of the expected "debian", after staring at the line in the Makefile for a while, I can understand what is happening, grep searches for the strings "debian" or "ubuntu" and will echo debian when this matches. But this does not happen correctly. Maybe somebody better versed in unix commandline magic would be a better candidate to solve this problem :-).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions