Project

General

Profile

Bug #3158

'make' in /usr/src gives errors

Added by dosadi 27 days ago. Updated 23 days ago.

Status:
New
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

--------

History

#1 Updated by htse 24 days 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
>
> --------

#2 Updated by swildner 23 days 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.

Also available in: Atom PDF