I want to build a kernel for the MIPS processor.
Naturally, I performed all the rites - said "config", "make cleandepend && make depend". Then I do build the kernel.
I use the default compiler.
I installed in the system gcc49.
Nothing changed.
Colleagues, tell me please what I'm doing wrong.
Ogogon
Naturally, I performed all the rites - said "config", "make cleandepend && make depend". Then I do build the kernel.
Code:
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2# make
cc -c -O -pipe -g -nostdinc -I. -I../../.. -I../../../contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0x80050000 -march=mips32 -MD -MF.depend.genassym.o -MTgenassym.o -msoft-float -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 ../../../mips/mips/genassym.c
cc: error: unknown argument: '-mno-abicalls'
*** Error code 1
Stop.
make: stopped in /usr/src11/sys/mips/compile/TL-WR1043NDv2
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2#
I use the default compiler.
Code:
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2# cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.4
Thread model: posix
Selected GCC installation:
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2#
I installed in the system gcc49.
Code:
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2# pkg info gcc49
gcc49-4.9.4_6
Name : gcc49
Version : 4.9.4_6
Installed on : Tue Apr 3 14:10:48 2018 MSK
Origin : lang/gcc49
Architecture : FreeBSD:10:amd64
Prefix : /usr/local
Categories : lang
Licenses : GPLv3, GPLv3RLE
Maintainer : gerald@FreeBSD.org
WWW : https://gcc.gnu.org
Comment : GNU Compiler Collection 4.9
Options :
BOOTSTRAP : on
Shared Libs required:
libmpfr.so.4
libmpc.so.3
libgmp.so.10
Shared Libs provided:
libitm.so.1
libssp.so.0
libatomic.so.1
libgfortran.so.3
libgcc_s.so.1
libquadmath.so.0
libcilkrts.so.5
liblto_plugin.so.0
libstdc++.so.6
libgomp.so.1
Annotations :
FreeBSD_version: 1004000
cpe : cpe:2.3:a:gnu:gcc:4.9.4:::::freebsd10:x64:6
deprecated : Unsupported by upstream. Use GCC 6 or newer instead.
Flat size : 110MiB
Description :
GCC, the GNU Compiler Collection, supports a number of languages. This
port installs the C, C++, and Fortran front ends as gcc49, g++49, and
gfortran49, respectively.
WWW: https://gcc.gnu.org
Gerald Pfeifer <gerald@FreeBSD.org>
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2# cat /etc/make.conf
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc49)
CC=gcc49
CXX=g++49
CPP=cpp49
.endif
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2# cat /etc/libmap.conf
# $FreeBSD: releng/10.4/etc/libmap.conf 253853 2013-08-01 05:50:42Z jlh $
includedir /usr/local/etc/libmap.d
libgcc_s.so.1 gcc49/libgcc_s.so.1
libgomp.so.1 gcc49/libgomp.so.1
libobjc.so.3 gcc49/libobjc.so.4
libssp.so.0 gcc49/libssp.so.0
libstdc++.so.6 gcc49/libstdc++.so.6
ogogon@ot:/usr/src11/sys/mips/compile/TL-WR1043NDv2#
Colleagues, tell me please what I'm doing wrong.
Ogogon