Project

General

Profile

Actions

Bug #3158

closed

'make' in /usr/src gives errors

Added by dosadi over 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/16/2018
Due date:
% Done:

0%

Estimated time:

Description

Not too sure what is supposed to happen, but when I execute 'make' in /usr/src after a fresh install, it gives me this:


osiris# make src-create-shallow
If problems occur you may have to 'rm -rf src' and try again.

git clone --depth 1 --branch master -- git://git.dragonflybsd.org/dragonfly.git /usr/src
Cloning into '/usr/src'...
remote: Counting objects: 39582, done.
remote: Compressing objects: 100% (32281/32281), done.
remote: Total 39582 (delta 11974), reused 21563 (delta 6231)
Receiving objects: 100% (39582/39582), 121.73 MiB | 6.84 MiB/s, done.
Resolving deltas: 100% (11974/11974), done.
Checking out files: 100% (36536/36536), done.

cd /usr/src
make

[...]

collect2: error: ld returned 1 exit status


Actions #1

Updated by htse over 5 years ago

hi dosadi,

master is the development branch, so it's possible that at certain points in time it doesn't compile, if your intent is not to do kernel programming but using the system with the latest kernel then you should checkout a stable release branch for your regular dragonflybsd system, these will compile fine. (otherwise identify the origin of the error and inform the devs via IRC maybe?)
for your reference: http://lists.dragonflybsd.org/pipermail/users/2018-April/335721.html

cd /usr/src
git fetch origin
git branch DragonFly_RELEASE_5_2 origin/DragonFly_RELEASE_5_2
git checkout DragonFly_RELEASE_5_2
git pull

and then rebuild your kernel and world

dosadi wrote:

Not too sure what is supposed to happen, but when I execute 'make' in /usr/src after a fresh install, it gives me this:


osiris# make src-create-shallow
If problems occur you may have to 'rm -rf src' and try again.

git clone --depth 1 --branch master -- git://git.dragonflybsd.org/dragonfly.git /usr/src
Cloning into '/usr/src'...
remote: Counting objects: 39582, done.
remote: Compressing objects: 100% (32281/32281), done.
remote: Total 39582 (delta 11974), reused 21563 (delta 6231)
Receiving objects: 100% (39582/39582), 121.73 MiB | 6.84 MiB/s, done.
Resolving deltas: 100% (11974/11974), done.
Checking out files: 100% (36536/36536), done.

cd /usr/src
make

[...]

collect2: error: ld returned 1 exit status


Actions #2

Updated by swildner over 5 years ago

To build world, use 'make buildworld', to build the kernel, 'make buildkernel'. The other targets we support are documented in the build(7) manual page.

Whether just 'make' should do something useful could be debated. It might be used for something like 'make nativeworld', i.e. build world using host tools, libs and includes.

Actions #3

Updated by Anonymous over 5 years ago

Dollar General Corporation is a famous variety store in the United States. It was established in the year 1939. The company has started the customer satisfaction survey in order to identify the needs of their customers.

https://tellpayless.xyz/www-dgcustomerfirst-com/

Actions #4

Updated by liweitianux almost 5 years ago

  • Status changed from New to Resolved

As the reporter showed, simply running 'make' without any target would fail. So I've made the change that an explicit target is now required, otherwise a simple 'make' just fails and refer the user to build(7) manual page.

Actions

Also available in: Atom PDF