Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2015 09:58:58 +0100
From:      Eivind Evensen <eivinde@terraplane.org>
To:        freebsd-stable@freebsd.org
Subject:   Cross build error
Message-ID:  <20150217085857.GA87703@klump.hjerdalen.lokalnett>

next in thread | raw e-mail | index | archive | help
Hello.

Using https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD
as a reference, I've tried building for i386 on an amd64 machine.

It stops in rescue/rescue with:

(cd /home/rumrunner/midlertidig/krysskomp/rescue/rescue/../../usr.sbin/chown &&  make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/chown/ chown.o)
cc  -O2 -pipe   -DRESCUE -std=gnu99 -Qunused-arguments  -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -c /home/rumrunner/midlertidig/krysskomp/usr.sbin/chown/chown.c
MAKEOBJDIRPREFIX=/home/rumrunner/midlertidig/krysskomp/rescue/rescue make -f rescue.mk exe
cc  -O2 -pipe   -c rescue.c
rescue.c:59:2: warning: implicit declaration of function
      'crunched_usage' is invalid in C99
      [-Wimplicit-function-declaration]
        crunched_usage();
        ^
1 warning generated.
echo "int _crunched_cat_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >cat_stub.c
cc  -O2 -pipe   -c cat_stub.c
cat_stub.c:1:67: warning: implicit declaration of function 'main' is
      invalid in C99 [-Wimplicit-function-declaration]
  ...argc, char **argv, char **envp){return main(argc,argv,envp);}
                                            ^
1 warning generated.
cc  -O2 -pipe   -c /home/rumrunner/midlertidig/krysskomp/bin/cat/cat.c
ld -dc -r -o cat.lo cat_stub.o /home/rumrunner/midlertidig/krysskomp/bin/cat/cat.o
ld: /home/rumrunner/midlertidig/krysskomp/bin/cat/cat.o: No such file: No such file or directory
*** Error code 1

Stop.
make[5]: stopped in /home/rumrunner/midlertidig/krysskomp/rescue/rescue
*** Error code 1

Stop.
make[4]: stopped in /home/rumrunner/midlertidig/krysskomp/rescue/rescue
*** Error code 1

Stop.
make[3]: stopped in /home/rumrunner/midlertidig/krysskomp/rescue
*** Error code 1

Stop.
make[2]: stopped in /home/rumrunner/midlertidig/krysskomp
*** Error code 1

Stop.
make[1]: stopped in /home/rumrunner/midlertidig/krysskomp
*** Error code 1

Stop.
make: stopped in /home/rumrunner/midlertidig/krysskomp



make.conf is empty and I don't have a src.conf. I started the build
using
$ make buildworld TARGET=i386 TARGET_ARCH=i386 \
  MAKEOBJDIRPREFIX=/home/rumrunner/midlertidig/kryssobj


which is how I interpreted the doc. Did I miss anything, or is this a
real problem?


-- 
Eivind



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150217085857.GA87703>