Already 6 months cannot still cross compile one
Already 6 months cannot still cross compile one
(Done; see the page 2 post)
=================================
Trying many times. Really. Any help to have a sample configuration including a working script would be much appreciated.
Try it under
- Win7-32 (MingW and cygwin)
- Win10-64 (MingW and cygwin)
- MacOSX now El Captain (under brew)
- ubuntu (Mac-VM, Mac-Docker)
None work. Finally just download the binary and move on as after OSDev11, Broken Thorn switch to vc++ and cannot proceed any further. BTW, the binary work and can compile barebone (using NASM) ok.
Working on baremetal os but not really care much about cross dev itself. Just a tool. But a tool never make it. What worry me is that like the ARM one (which I work ok using the version recommended by the cambridge ARM series), the tool may be gone one day. Hence, whilst I am moving on after 6 months, I really want to have a working one by myself just in case .
My question again - any sample way to do it.
I did try to the table which combination it works and ... I even go back to a version under gcc 3 which one MIT OS course said it has done but still cannot. Trying 3 combination.
Believe me 6 months.
Any help would be appreciated. May be hard but really would try all the platforms I tried to work in: Windows-32 bit, 64bit, Mac, Ubuntu-14,16. One of these platforms plus the links and commands. I would share the final result in github for others like me.
=================================
Trying many times. Really. Any help to have a sample configuration including a working script would be much appreciated.
Try it under
- Win7-32 (MingW and cygwin)
- Win10-64 (MingW and cygwin)
- MacOSX now El Captain (under brew)
- ubuntu (Mac-VM, Mac-Docker)
None work. Finally just download the binary and move on as after OSDev11, Broken Thorn switch to vc++ and cannot proceed any further. BTW, the binary work and can compile barebone (using NASM) ok.
Working on baremetal os but not really care much about cross dev itself. Just a tool. But a tool never make it. What worry me is that like the ARM one (which I work ok using the version recommended by the cambridge ARM series), the tool may be gone one day. Hence, whilst I am moving on after 6 months, I really want to have a working one by myself just in case .
My question again - any sample way to do it.
I did try to the table which combination it works and ... I even go back to a version under gcc 3 which one MIT OS course said it has done but still cannot. Trying 3 combination.
Believe me 6 months.
Any help would be appreciated. May be hard but really would try all the platforms I tried to work in: Windows-32 bit, 64bit, Mac, Ubuntu-14,16. One of these platforms plus the links and commands. I would share the final result in github for others like me.
Last edited by Dng88 on Wed Jun 01, 2016 7:55 pm, edited 1 time in total.
Re: Already 6 months cannot still cross compile one
1. Follow, exactly, the Wiki instructions for creating a cross-compiler.
2. Report, exactly, the error message you get.
2. Report, exactly, the error message you get.
Re: Already 6 months cannot still cross compile one
It would be long post but I am not sure why a novice trying would be interest. It would be bore everyone to tear I guess. A good example would be better than go through mine. But if there is only way to get help, let me try:iansjack wrote:1. Follow, exactly, the Wiki instructions for creating a cross-compiler.
2. Report, exactly, the error message you get.
Mac OS X
- the first question is using brew or port. The script is not sure sure.
- let us start with the the first step of libiconv
after download from the result
after usual download and ungzip
Code: Select all
$tar -zxvf libiconv-1.14.tar.gz
$cd libiconv-1.14
$./configure --prefix=/usr/local
$sudo make
Password:
builddir="`pwd`"; cd libcharset && /Applications/Xcode.app/Contents/Developer/usr/bin/make all && /Applications/Xcode.app/Contents/Developer/usr/bin/make install-lib libdir="$builddir/lib" includedir="$builddir/lib"
cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
make[2]: Nothing to be done for `all'.
cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
make[2]: Nothing to be done for `all'.
cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make install-lib libdir='/Users/chichunng/Downloads/trying mac-os-x crossdev /libiconv-1.14/lib' includedir='/Users/chichunng/Downloads/trying mac-os-x crossdev /libiconv-1.14/lib'
/bin/sh ../build-aux/mkinstalldirs /Users/chichunng/Downloads/trying mac-os-x crossdev /libiconv-1.14/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c -m 644 libcharset.la /Users/chichunng/Downloads/trying mac-os-x crossdev /libiconv-1.14/lib/libcharset.la
libtool: install: `/libiconv-1.14/lib/libcharset.la' is not a directory
libtool: install: Try `libtool --help --mode=install' for more information.
make[2]: *** [install-lib] Error 1
make[1]: *** [install-lib] Error 2
make: *** [lib/localcharset.h] Error 2
Re: Already 6 months cannot still cross compile one
Don't bother with libiconv. Skip that step.
It's only needed if you're using an old OSX. What version OSX do you have ?
It's only needed if you're using an old OSX. What version OSX do you have ?
If a trainstation is where trains stop, what is a workstation ?
Re: Already 6 months cannot still cross compile one
In fact I continue use brew and then give a warning as El Captain come with one already
---
I cannot post the log as I got an error here:
General Error
SQL ERROR [ mysqli ]
Incorrect string value: '\xF0\x9F\x8D\xBA ...' for column 'draft_message' at row 1 [1366]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
---
Sigh nothing work.
---
I cannot post the log as I got an error here:
General Error
SQL ERROR [ mysqli ]
Incorrect string value: '\xF0\x9F\x8D\xBA ...' for column 'draft_message' at row 1 [1366]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
---
Sigh nothing work.
Re: Already 6 months cannot still cross compile one
brew install homebrew/dupes/libiconv
==> Tapping homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-dupes'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 42 (delta 0), reused 33 (delta 0), pack-reused 0
Unpacking objects: 100% (42/42), done.
Checking connectivity... done.
Tapped 38 formulae (103 files, 116.7K)
==> Installing libiconv from homebrew/dupes
==> Downloading https://homebrew.bintray.com/bottles-du ... 14.el_capi
######################################################################## 100.0%
==> Pouring libiconv-1.14.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/libiconv/lib
CPPFLAGS: -I/usr/local/opt/libiconv/include
==> Summary
/usr/local/Cellar/libiconv/1.14: 28 files, 1.4M
==> Tapping homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-dupes'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 42 (delta 0), reused 33 (delta 0), pack-reused 0
Unpacking objects: 100% (42/42), done.
Checking connectivity... done.
Tapped 38 formulae (103 files, 116.7K)
==> Installing libiconv from homebrew/dupes
==> Downloading https://homebrew.bintray.com/bottles-du ... 14.el_capi
######################################################################## 100.0%
==> Pouring libiconv-1.14.el_capitan.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/libiconv/lib
CPPFLAGS: -I/usr/local/opt/libiconv/include
==> Summary
/usr/local/Cellar/libiconv/1.14: 28 files, 1.4M
Re: Already 6 months cannot still cross compile one
install using brew instead of port of
Then usual ungz binutil 2.24 and after fixing the issue of space character,
./configure, make but make install does not work
As I am not using port, should I switch to port?
Code: Select all
brew install gmp mpfr libmpc
Warning: gmp-6.1.0 already installed
==> Downloading https://homebrew.bintray.com/bottles/mpfr-3.1.4.el_capitan.bottl
######################################################################## 100.0%
==> Pouring mpfr-3.1.4.el_capitan.bottle.tar.gz
/usr/local/Cellar/mpfr/3.1.4: 25 files, 3.6M
==> Downloading https://homebrew.bintray.com/bottles/libmpc-1.0.3.el_capitan.bot
######################################################################## 100.0%
==> Pouring libmpc-1.0.3.el_capitan.bottle.tar.gz
/usr/local/Cellar/libmpc/1.0.3: 11 files, 350.1K
./configure, make but make install does not work
Code: Select all
$ make install
/bin/sh ./mkinstalldirs
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
test -z "/share/info" || .././../install-sh -c -d "/share/info"
mkdir: /share: Permission denied
mkdir: /share: No such file or directory
make[4]: *** [install-info-am] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-bfd] Error 2
make: *** [install] Error 2
Chis-MacBook-Pro:binutils-2.24 chichunng$ ls /share
ls: /share: No such file or directory
Chis-MacBook-Pro:binutils-2.24 chichunng$ sudo make install
Password:
/bin/sh ./mkinstalldirs
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
test -z "/share/info" || .././../install-sh -c -d "/share/info"
/usr/bin/install -c -m 644 ./bfd.info '/share/info'
install-info --info-dir='/share/info' '/share/info/bfd.info'
Making install in po
make[4]: Nothing to be done for `install'.
make[5]: Nothing to be done for `install-exec-am'.
test -z "/include" || ./../install-sh -c -d "/include"
/usr/bin/install -c -m 644 bfd.h ./../include/ansidecl.h ./../include/symcat.h ./../include/bfdlink.h '/include'
test -z "/lib" || ./../install-sh -c -d "/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libbfd.la '/lib'
libtool: install: /usr/bin/install -c .libs/libbfd.lai /lib/libbfd.la
libtool: install: /usr/bin/install -c .libs/libbfd.a /lib/libbfd.a
libtool: install: chmod 644 /lib/libbfd.a
libtool: install: ranlib /lib/libbfd.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /lib/libbfd.a(bfdwin.o) has no symbols
----------------------------------------------------------------------
Libraries have been installed in:
/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in .
i386-tbl.h
make[4]: Nothing to be done for `install-exec-am'.
test -z "/include" || ./../install-sh -c -d "/include"
/usr/bin/install -c -m 644 ./../include/dis-asm.h '/include'
i386-tbl.h
test -z "/lib" || ./../install-sh -c -d "/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libopcodes.la '/lib'
libtool: install: /usr/bin/install -c .libs/libopcodes.lai /lib/libopcodes.la
libtool: install: /usr/bin/install -c .libs/libopcodes.a /lib/libopcodes.a
libtool: install: chmod 644 /lib/libopcodes.a
libtool: install: ranlib /lib/libopcodes.a
----------------------------------------------------------------------
Libraries have been installed in:
/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in po
make[3]: Nothing to be done for `install'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
make[5]: Nothing to be done for `install-exec-am'.
test -z "/share/info" || .././../install-sh -c -d "/share/info"
/usr/bin/install -c -m 644 ./binutils.info '/share/info'
install-info --info-dir='/share/info' '/share/info/binutils.info'
test -z "/share/man/man1" || .././../install-sh -c -d "/share/man/man1"
/usr/bin/install -c -m 644 addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 '/share/man/man1'
Making install in po
make[4]: Nothing to be done for `install'.
test -z "/bin" || ./../install-sh -c -d "/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c size objdump ar strings ranlib objcopy addr2line readelf elfedit '/bin'
libtool: install: /usr/bin/install -c size /bin/size
install: /bin/size: Operation not permitted
make[5]: *** [install-binPROGRAMS] Error 71
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-binutils] Error 2
make: *** [install] Error 2
Chis-MacBook-Pro:binutils-2.24 chichunng$
Re: Already 6 months cannot still cross compile one
I use macports. But it is your decision.
If a trainstation is where trains stop, what is a workstation ?
Re: Already 6 months cannot still cross compile one
Still same error after uninstall brew and use macports.
Seems not allow to add attachment yet, partial log:
Seems not allow to add attachment yet, partial log:
Code: Select all
checking for iconv... (cached) yes
checking how to link with libiconv... -liconv
checking for iconv declaration... (cached) install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
Making info in doc
if test -f cxxfilt.man; then \
man=cxxfilt.man; \
else \
man=./cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
-e 's/cxxfilt/c++filt/' < $man \
> c++filt.1
Making info in po
make[3]: Nothing to be done for `info'.
make[3]: Nothing to be done for `info-am'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in doc
make[4]: Nothing to be done for `all'.
Making all in po
make[4]: Nothing to be done for `all'.
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o od-macho.o ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objdump objdump.o dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o elfcomm.o od-macho.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -ll -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ll -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strings strings.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strings strings.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -ll -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ranlib ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ll -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o objcopy objcopy.o not-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o addr2line addr2line.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o nm-new nm.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o strip-new objcopy.o is-strip.o rename.o rddbg.o debug.o stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o cxxfilt cxxfilt.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o bfdtest1 bfdtest1.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o bfdtest1 bfdtest1.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o bfdtest2 bfdtest2.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o bfdtest2 bfdtest2.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
Configuring in ./etc
configure: loading cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
for f in standards.info configure.info; do \
if test -f ./`echo $f | sed -e 's/.info$/.texi/'`; then \
if /Applications/Xcode.app/Contents/Developer/usr/bin/make "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" $f; then \
true; \
else \
exit 1; \
fi; \
fi; \
done
make[3]: `standards.info' is up to date.
make[3]: `configure.info' is up to date.
make[1]: Nothing to be done for `all-target'.
Chis-MacBook-Pro:binutils-2.24 chichunng$ make install
/bin/sh ./mkinstalldirs
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
test -z "/share/info" || .././../install-sh -c -d "/share/info"
/usr/bin/install -c -m 644 ./bfd.info '/share/info'
install: /share/info/bfd.info: Permission denied
make[4]: *** [install-info-am] Error 71
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-bfd] Error 2
make: *** [install] Error 2
Chis-MacBook-Pro:binutils-2.24 chichunng$ sudo make install
/bin/sh ./mkinstalldirs
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
test -z "/share/info" || .././../install-sh -c -d "/share/info"
/usr/bin/install -c -m 644 ./bfd.info '/share/info'
install-info --info-dir='/share/info' '/share/info/bfd.info'
Making install in po
make[4]: Nothing to be done for `install'.
make[5]: Nothing to be done for `install-exec-am'.
test -z "/include" || ./../install-sh -c -d "/include"
/usr/bin/install -c -m 644 bfd.h ./../include/ansidecl.h ./../include/symcat.h ./../include/bfdlink.h '/include'
test -z "/lib" || ./../install-sh -c -d "/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libbfd.la '/lib'
libtool: install: /usr/bin/install -c .libs/libbfd.lai /lib/libbfd.la
libtool: install: /usr/bin/install -c .libs/libbfd.a /lib/libbfd.a
libtool: install: chmod 644 /lib/libbfd.a
libtool: install: ranlib /lib/libbfd.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /lib/libbfd.a(bfdwin.o) has no symbols
----------------------------------------------------------------------
Libraries have been installed in:
/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in .
i386-tbl.h
make[4]: Nothing to be done for `install-exec-am'.
test -z "/include" || ./../install-sh -c -d "/include"
/usr/bin/install -c -m 644 ./../include/dis-asm.h '/include'
i386-tbl.h
test -z "/lib" || ./../install-sh -c -d "/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c libopcodes.la '/lib'
libtool: install: /usr/bin/install -c .libs/libopcodes.lai /lib/libopcodes.la
libtool: install: /usr/bin/install -c .libs/libopcodes.a /lib/libopcodes.a
libtool: install: chmod 644 /lib/libopcodes.a
libtool: install: ranlib /lib/libopcodes.a
----------------------------------------------------------------------
Libraries have been installed in:
/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Making install in po
make[3]: Nothing to be done for `install'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive
Making install in doc
make[5]: Nothing to be done for `install-exec-am'.
test -z "/share/info" || .././../install-sh -c -d "/share/info"
/usr/bin/install -c -m 644 ./binutils.info '/share/info'
install-info --info-dir='/share/info' '/share/info/binutils.info'
test -z "/share/man/man1" || .././../install-sh -c -d "/share/man/man1"
/usr/bin/install -c -m 644 addr2line.1 ar.1 dlltool.1 nlmconv.1 nm.1 objcopy.1 objdump.1 ranlib.1 readelf.1 size.1 strings.1 strip.1 elfedit.1 windres.1 windmc.1 c++filt.1 '/share/man/man1'
Making install in po
make[4]: Nothing to be done for `install'.
test -z "/bin" || ./../install-sh -c -d "/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c size objdump ar strings ranlib objcopy addr2line readelf elfedit '/bin'
libtool: install: /usr/bin/install -c size /bin/size
install: /bin/size: Operation not permitted
make[5]: *** [install-binPROGRAMS] Error 71
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-binutils] Error 2
make: *** [install] Error 2
Chis-MacBook-Pro:binutils-2.24 chichunng$ ls /bin
[ df launchctl pwd tcsh
bash domainname link rcp test
cat echo ln rm unlink
chmod ed ls rmdir wait4path
cp expr mkdir sh zsh
csh hostname mv sleep
date kill pax stty
dd ksh ps sync
Re: Already 6 months cannot still cross compile one
Seems macports work better. Except for one error message (not in script as I use make install i.e.
All seems fine. May be I have done something wrong in the steps.
Would try other platform and also document what is being done.
Code: Select all
checking how to hardcode library paths into programs... immediate
checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make: *** [all] Error 2
Would try other platform and also document what is being done.
Re: Already 6 months cannot still cross compile one
Could please post your configure and make command lines? I think they are wrong.
If a trainstation is where trains stop, what is a workstation ?
Re: Already 6 months cannot still cross compile one
Mac OS X seems to work and generate the as and gcc but NOT cygwin. The last step generate errors:
I would look into any error before but seems fine.
The message is a bit strange ... no rule to make target ???
I noted that gcc is generated and run ok:
I do not have the right to attach files but this is the search all make-target and really there is only may-by-make-install-gcclib!
Code: Select all
test@132022_TEST ~/src/build-gcc
$ make install-target-libgcc
/bin/sh ../gcc-4.8.3/mkinstalldirs /home/test/opt/cross /home/test/opt/cross
make[1]: Entering directory '/home/test/src/build-gcc/i686-elf/libgcc'
make[1]: *** No rule to make target 'install'. Stop.
make[1]: Leaving directory '/home/test/src/build-gcc/i686-elf/libgcc'
make: *** [Makefile:10739: install-target-libgcc] Error 2
The message is a bit strange ... no rule to make target ???
I noted that gcc is generated and run ok:
Code: Select all
$ ls $HOME/opt/cross/bin
i686-elf-c++.exe i686-elf-gcc.exe i686-elf-gcc-nm.exe
i686-elf-cpp.exe i686-elf-gcc-4.8.3.exe i686-elf-gcc-ranlib.exe
i686-elf-g++.exe i686-elf-gcc-ar.exe i686-elf-gcov.exe
$ $HOME/opt/cross/bin/$TARGET-gcc --version
i686-elf-gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code: Select all
Line 2171: $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
Line 2266: .PHONY: install-target
Line 2267: install-target: \
Line 2268: maybe-install-target-libstdc++-v3 \
Line 2269: maybe-install-target-libmudflap \
Line 2270: maybe-install-target-libsanitizer \
Line 2271: maybe-install-target-libssp \
Line 2272: maybe-install-target-newlib \
Line 2273: maybe-install-target-libgcc \
Line 2274: maybe-install-target-libbacktrace \
Line 2275: maybe-install-target-libquadmath \
Line 2276: maybe-install-target-libgfortran \
Line 2277: maybe-install-target-libobjc \
Line 2278: maybe-install-target-libgo \
Line 2279: maybe-install-target-libtermcap \
Line 2280: maybe-install-target-winsup \
Line 2281: maybe-install-target-libgloss \
Line 2282: maybe-install-target-libffi \
Line 2283: maybe-install-target-libjava \
Line 2284: maybe-install-target-zlib \
Line 2285: maybe-install-target-boehm-gc \
Line 2286: maybe-install-target-rda \
Line 2287: maybe-install-target-libada \
Line 2288: maybe-install-target-libgomp \
Line 2289: maybe-install-target-libitm \
Line 2290: maybe-install-target-libatomic
Line 2312: install-target gcc-install-no-fixedincludes
Line 9589: .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
Line 9589: .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
Line 9590: maybe-install-target-libstdc++-v3:
Line 9591: maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
Line 9591: maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
Line 9593: install-target-libstdc++-v3: installdirs
Line 9949: .PHONY: install-target-libmudflap maybe-install-target-libmudflap
Line 9949: .PHONY: install-target-libmudflap maybe-install-target-libmudflap
Line 9950: maybe-install-target-libmudflap:
Line 10075: .PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
Line 10075: .PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
Line 10076: maybe-install-target-libsanitizer:
Line 10198: .PHONY: install-target-libssp maybe-install-target-libssp
Line 10198: .PHONY: install-target-libssp maybe-install-target-libssp
Line 10199: maybe-install-target-libssp:
Line 10200: maybe-install-target-libssp: install-target-libssp
Line 10200: maybe-install-target-libssp: install-target-libssp
Line 10202: install-target-libssp: installdirs
Line 10558: .PHONY: install-target-newlib maybe-install-target-newlib
Line 10558: .PHONY: install-target-newlib maybe-install-target-newlib
Line 10559: maybe-install-target-newlib:
Line 10732: .PHONY: install-target-libgcc maybe-install-target-libgcc
Line 10732: .PHONY: install-target-libgcc maybe-install-target-libgcc
Line 10733: maybe-install-target-libgcc:
Line 10734: maybe-install-target-libgcc: install-target-libgcc
Line 10734: maybe-install-target-libgcc: install-target-libgcc
Line 10736: install-target-libgcc: installdirs
Line 11092: .PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
Line 11092: .PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
Line 11093: maybe-install-target-libbacktrace:
Line 11215: .PHONY: install-target-libquadmath maybe-install-target-libquadmath
Line 11215: .PHONY: install-target-libquadmath maybe-install-target-libquadmath
Line 11216: maybe-install-target-libquadmath:
Line 11217: maybe-install-target-libquadmath: install-target-libquadmath
Line 11217: maybe-install-target-libquadmath: install-target-libquadmath
Line 11219: install-target-libquadmath: installdirs
Line 11575: .PHONY: install-target-libgfortran maybe-install-target-libgfortran
Line 11575: .PHONY: install-target-libgfortran maybe-install-target-libgfortran
Line 11576: maybe-install-target-libgfortran:
Line 11643: .PHONY: install-target-libobjc maybe-install-target-libobjc
Line 11643: .PHONY: install-target-libobjc maybe-install-target-libobjc
Line 11644: maybe-install-target-libobjc:
Line 11711: .PHONY: install-target-libgo maybe-install-target-libgo
Line 11711: .PHONY: install-target-libgo maybe-install-target-libgo
Line 11712: maybe-install-target-libgo:
Line 11779: .PHONY: install-target-libtermcap maybe-install-target-libtermcap
Line 11779: .PHONY: install-target-libtermcap maybe-install-target-libtermcap
Line 11780: maybe-install-target-libtermcap:
Line 11847: .PHONY: install-target-winsup maybe-install-target-winsup
Line 11847: .PHONY: install-target-winsup maybe-install-target-winsup
Line 11848: maybe-install-target-winsup:
Line 11915: .PHONY: install-target-libgloss maybe-install-target-libgloss
Line 11915: .PHONY: install-target-libgloss maybe-install-target-libgloss
Line 11916: maybe-install-target-libgloss:
Line 11983: .PHONY: install-target-libffi maybe-install-target-libffi
Line 11983: .PHONY: install-target-libffi maybe-install-target-libffi
Line 11984: maybe-install-target-libffi:
Line 12051: .PHONY: install-target-libjava maybe-install-target-libjava
Line 12051: .PHONY: install-target-libjava maybe-install-target-libjava
Line 12052: maybe-install-target-libjava:
Line 12119: .PHONY: install-target-zlib maybe-install-target-zlib
Line 12119: .PHONY: install-target-zlib maybe-install-target-zlib
Line 12120: maybe-install-target-zlib:
Line 12187: .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
Line 12187: .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
Line 12188: maybe-install-target-boehm-gc:
Line 12255: .PHONY: install-target-rda maybe-install-target-rda
Line 12255: .PHONY: install-target-rda maybe-install-target-rda
Line 12256: maybe-install-target-rda:
Line 12323: .PHONY: install-target-libada maybe-install-target-libada
Line 12323: .PHONY: install-target-libada maybe-install-target-libada
Line 12324: maybe-install-target-libada:
Line 12449: .PHONY: install-target-libgomp maybe-install-target-libgomp
Line 12449: .PHONY: install-target-libgomp maybe-install-target-libgomp
Line 12450: maybe-install-target-libgomp:
Line 12517: .PHONY: install-target-libitm maybe-install-target-libitm
Line 12517: .PHONY: install-target-libitm maybe-install-target-libitm
Line 12518: maybe-install-target-libitm:
Line 12585: .PHONY: install-target-libatomic maybe-install-target-libatomic
Line 12585: .PHONY: install-target-libatomic maybe-install-target-libatomic
Line 12586: maybe-install-target-libatomic:
Line 14199: install-target-libgo: maybe-install-target-libatomic
Line 14199: install-target-libgo: maybe-install-target-libatomic
Line 14200: install-target-libgfortran: maybe-install-target-libquadmath
Line 14200: install-target-libgfortran: maybe-install-target-libquadmath
Line 14201: install-target-libgfortran: maybe-install-target-libgcc
Line 14201: install-target-libgfortran: maybe-install-target-libgcc
Line 14202: install-target-libsanitizer: maybe-install-target-libstdc++-v3
Line 14202: install-target-libsanitizer: maybe-install-target-libstdc++-v3
Line 14203: install-target-libsanitizer: maybe-install-target-libgcc
Line 14203: install-target-libsanitizer: maybe-install-target-libgcc
Line 14204: install-target-libjava: maybe-install-target-libgcc
Line 14204: install-target-libjava: maybe-install-target-libgcc
Line 14205: install-target-libitm: maybe-install-target-libgcc
Line 14205: install-target-libitm: maybe-install-target-libgcc
Line 14206: install-target-libobjc: maybe-install-target-libgcc
Line 14206: install-target-libobjc: maybe-install-target-libgcc
Line 14207: install-target-libstdc++-v3: maybe-install-target-libgcc
Line 14207: install-target-libstdc++-v3: maybe-install-target-libgcc
Re: Already 6 months cannot still cross compile one
See the message late for the complete result
-- tg be tested --
MingW32 to be tested
MingW64 to be tested
--- OK ---
--- mac osx el captain, ubuntu 16, cygwin 64, cygwin 32 (offline) ---
--- (except mac no bochs gui_debug but another issues) -------------
--- usually need to use tar xzvf ... but strangely one win10-32 cygwin cannot run this and has to use tar jf ! ---
cygwin win7-32 ok
- problem is cannot download the package using the script but using offline download and then trying step by step
- it is ok just make sure you do the contrib/download_prerequisite offline carefully.
cygwin win10-64 testing
- ignore the 3 package list in the windows part, instead use the contrib/download_...
- then install, work ok
Mac OS X El Captain maports ok
- use macports not brew
- ignore libiconv part and any others, just use the 3 boxed commands (but not the export one)
- follow the script except use install the 3 libs via the mac os x macports part
and the two different configure commands for binutils and gcc
- not sure about why direct download of contrib/download_prerequisite not working
- not sure about the impact of no sysroot ...
- still issues :
bochs has only x11 working (via Quartz) and in particular not sure how to make sdl/sdl2 work or debug-gui ...
Mac OS X EL Captain homebrew ok
- strangely the direct method is not working i.e. instead of using brew/port just
use contrib/download_prerequisite does not go through, port install something
and not sure why it works (as the 3 libraries may not match with the gcc/binutils in general?!)
ports work and testing homebrew again now
- work
Ubuntu 16 under VM ok
- follow the script
- need to do contrib/download_prerequisites
(the discussion of those 3 "libraries" confusing,
do not download those source but instead run the contrib/d... script)
Gentoo under VM (the image from their site) ok
- need to use su (i.e. root)
- need to export the so call overlay ...
====================
For all the simple test code is
For some I would try the barebone later ...
Walk on once do documentation, really just a toolkit but it takes so long to get it.
-- tg be tested --
MingW32 to be tested
MingW64 to be tested
--- OK ---
--- mac osx el captain, ubuntu 16, cygwin 64, cygwin 32 (offline) ---
--- (except mac no bochs gui_debug but another issues) -------------
--- usually need to use tar xzvf ... but strangely one win10-32 cygwin cannot run this and has to use tar jf ! ---
cygwin win7-32 ok
- problem is cannot download the package using the script but using offline download and then trying step by step
- it is ok just make sure you do the contrib/download_prerequisite offline carefully.
cygwin win10-64 testing
- ignore the 3 package list in the windows part, instead use the contrib/download_...
- then install, work ok
Mac OS X El Captain maports ok
- use macports not brew
- ignore libiconv part and any others, just use the 3 boxed commands (but not the export one)
- follow the script except use install the 3 libs via the mac os x macports part
and the two different configure commands for binutils and gcc
- not sure about why direct download of contrib/download_prerequisite not working
- not sure about the impact of no sysroot ...
- still issues :
bochs has only x11 working (via Quartz) and in particular not sure how to make sdl/sdl2 work or debug-gui ...
Mac OS X EL Captain homebrew ok
- strangely the direct method is not working i.e. instead of using brew/port just
use contrib/download_prerequisite does not go through, port install something
and not sure why it works (as the 3 libraries may not match with the gcc/binutils in general?!)
ports work and testing homebrew again now
- work
Ubuntu 16 under VM ok
- follow the script
- need to do contrib/download_prerequisites
(the discussion of those 3 "libraries" confusing,
do not download those source but instead run the contrib/d... script)
Gentoo under VM (the image from their site) ok
- need to use su (i.e. root)
- need to export the so call overlay ...
Code: Select all
(need to use root, otherwise pretend is pointless)
su
emerge -av crossdev
crossdev --help
export PORTDIR_OVERLAY="/usr/local/crossdev"
crossdev --stage1 --binutils 2.24-r3 --gcc 4.8.3 --target i686-elf
For all the simple test code is
Code: Select all
i686-elf-gcc --version
i686-elf-ld --help
i686-as --help
Walk on once do documentation, really just a toolkit but it takes so long to get it.
Last edited by Dng88 on Wed Jun 01, 2016 7:45 pm, edited 9 times in total.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Already 6 months cannot still cross compile one
A fresh Gentoo install has no overlays yet. The reason it fails is that you obviously have ignored the error message or tried to hack your way around doing it properly.
I also just verified that a cross-compiler builds straightforwardly with brew's gmp and friends instead of ports. The only Mac OS creeps that came out under El Capitan is that sudo doesn't actually sudo and I had to use /usr/local/(...) because of directory locks.
I also just verified that a cross-compiler builds straightforwardly with brew's gmp and friends instead of ports. The only Mac OS creeps that came out under El Capitan is that sudo doesn't actually sudo and I had to use /usr/local/(...) because of directory locks.
Re: Already 6 months cannot still cross compile one
Thanks, I would try both. Well, once start one work as I originally intent to ask, the other would find their way easier. In fact, I did the cygwin 64 bit today. Key is to ignore the 3 package list in the windows part, instead use the contrib/download_... then start the script. In fact, because of this failure I lose confidence and hence all others I struggle, hack, ... as no idea what a working script shall look like.Combuster wrote:A fresh Gentoo install has no overlays yet. The reason it fails is that you obviously have ignored the error message or tried to hack your way around doing it properly.
I also just verified that a cross-compiler builds straightforwardly with brew's gmp and friends instead of ports. The only Mac OS creeps that came out under El Capitan is that sudo doesn't actually sudo and I had to use /usr/local/(...) because of directory locks.
I would try the brew.
However, another question is no gui_debug of bochs (good for windows and ubuntu but not mac), a new question to be sorted. (Both brew and macports have one that cannot run sdl and no gui_debug as far as I can test. Keep on trying.)
Gentoo is very different from others in this aspects as others cannot be used as an example. I would try again.
BTW, given the gentoo is so little action I would ask again if I fall through.