Markus Heidt wrote:
>>>> Es hat also noch keiner in der Community das alles auf Os x probiert?
>>>> > A college of mine tried. First you need a case sensitive filesystem.
>>>> Yes, I went through this.
>>>> I have a log file logging everything I made.
>>>> Rather in a short style but you should get an overview:

The overview is pretty good. :)

I managed to get access to a mac book pro, running 10.6, and I started
hacking, some fixes can be found in these repos, please use them:

ptxdist:
http://git.pengutronix.de/?p=mkl/ptxdist.git;a=shortlog;h=refs/heads/dev/osx

OSELAS.Toolchain:
http://git.pengutronix.de/?p=mkl/OSELAS.Toolchain.git;a=shortlog;h=refs/heads/dev/osx

> checking for sed... /usr/bin/sed
> checking sed version... configure: error: we need at least GNU sed 4.x
> 
> solution:

put /opt/local/bin in the path _before_ /usr/bin....

> sudo port install gsed
> sudo cp /usr/bin/sed /usr/bin/sed_orig
> sudo rm /usr/bin/sed
> sudo ln -s /opt/local/bin/gsed /usr/bin/sed

...and create the link in /op/local/bin should be enough.

> **
> checking for awk... awk
> checking awk version... configure: error: we need GNU awk
> 
> solution:
> sudo port install gawk
> **
> checking for wget... no
> configure: error: wget could not be found, please install
> 
> solution:
> sudo port install wget
> **
> checking for find... /usr/bin/find
> checking find version... configure: error: we need at least GNU find 4.x
> 
> solution:
> sudo port install findutils
> sudo cp /usr/bin/find /usr/bin/find_orig
> sudo rm /usr/bin/find
> sudo ln -s /opt/local/bin/gfind /usr/bin/find

dito

> **
> checking for xargs... /usr/bin/xargs
> checking if xargs -r works as expected... /usr/bin/xargs: illegal option -- r
> usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
>              [-L number] [-n number [-x]] [-P maxprocs] [-s size]
>              [utility [argument ...]]
> configure: error: xargs with "-r" support needed, please install GNU xargs 
> (unsually located in the "findutils" package
> 
> solution:
> sudo cp /usr/bin/xargs /usr/bin/xargs_orig
> sudo rm /usr/bin/xargs
> sudo ln -s /opt/local/bin/gxargs /usr/bin/xargs

dito

> **********************************
> 
>  ./configure
> checking build system type... powerpc-apple-darwin9.8.0
> checking host system type... powerpc-apple-darwin9.8.0
> checking for ptxdist patches... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... 
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking regex.h usability... yes
> checking regex.h presence... yes
> checking for regex.h... yes
> checking for library containing regcomp... none required
> checking for library containing mvaddch... -lncurses
> checking ncurses.h usability... yes
> checking ncurses.h presence... yes
> checking for ncurses.h... yes
> checking whether #! works in shell scripts... yes
> checking for bash... /bin/bash
> checking for sed... /usr/bin/sed
> checking sed version... 4.2.1
> checking for egrep... (cached) /usr/bin/grep -E
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for gawk... gawk
> checking awk version... 3.1.7
> checking for flex... flex
> checking lex output file root... lex.yy
> checking lex library... -lfl
> checking whether yytext is a pointer... yes
> checking for flex... /usr/bin/flex
> checking for bison... bison -y
> checking for bison... /usr/bin/bison
> checking whether yacc is bison++... no, this is good
> checking yacc/bison version... 2.3
> checking for makeinfo... /usr/bin/makeinfo
> checking for bunzip2... /usr/bin/bunzip2
> checking for gunzip... /usr/bin/gunzip
> checking for gunzip... /usr/bin/gunzip
> checking for readlink... /usr/bin/readlink
> checking for mktemp... /usr/bin/mktemp
> checking for wget... /opt/local/bin/wget
> checking for tar... /usr/bin/tar
> checking for dirname... /usr/bin/dirname
> checking for cat... /bin/cat
> checking for find... /usr/bin/find
> checking find version... 4.4.2
> checking for xargs... /usr/bin/xargs
> checking if xargs -r works as expected... ok
> checking for sort... /usr/bin/sort
> checking for perl... /usr/bin/perl
> checking for expect... /usr/bin/expect
> checking for gmake... no
> checking for gnumake... /usr/bin/gnumake
> checking for file... /usr/bin/file
> checking for msgfmt... /opt/local/bin/msgfmt
> checking for tty... /usr/bin/tty
> checking for gcc... /usr/bin/gcc
> checking whether python finds distutils... yes
> checking whether python development files are present... yes
> checking for patch... /usr/bin/patch
> checking whether /usr/bin/patch will work... yes
> 
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating scripts/ptxdist_version.sh
> config.status: creating rules/ptxdist-version.in
> config.status: creating platforms/ptxdist-version.in
> 
> ptxdist version 1.99.19.1 configured.
> Using '/usr/local' for installation prefix.
> 
> Report bugs to ptxdist@pengutronix.de
> 
> So far so good...
> **********************
> make
> building conf and mconf ...
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c conf.c -o conf.o
> cp zconf.tab.c_shipped zconf.tab.c
> cp lex.zconf.c_shipped lex.zconf.c
> cp zconf.hash.c_shipped zconf.hash.c
> sed < lkc_proto.h > lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c zconf.tab.c -o 
> zconf.tab.o
> gcc conf.o zconf.tab.o  -o conf 
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c mconf.c -o mconf.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c 
> lxdialog/checklist.c -o lxdialog/checklist.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c lxdialog/inputbox.c 
> -o lxdialog/inputbox.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c lxdialog/menubox.c 
> -o lxdialog/menubox.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c lxdialog/textbox.c 
> -o lxdialog/textbox.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c lxdialog/util.c -o 
> lxdialog/util.o
> gcc -g -O2  -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -c lxdialog/yesno.c -o 
> lxdialog/yesno.o
> gcc mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o 
> lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o  -o 
> mconf -lncurses 
> done.
> 
> fine...
> ***************************
> sudo make install 
> throws error-code at the end, but ptxdist was created
> which ptxdist
> /usr/local/bin/ptxdist
> 
> seems to be ok !?

which command does fail? BTW: installing isn't needed. Put
"ptdist-1.99.19.1/bin" in path, or link the ptxdist script into your
project (the OSELAS.Toolchain dir).

> ***************
> Toolchain
> 
> *****************
> sudo port install binutils

not needed.

> 
> **
> ptxdist  platformconfig
> readlink: illegal option -- f
> usage: readlink [-n] [file ...]
> PTXdist: fatal error ... cannot start, sorry!

fixed in dev/osx...

> sudo port install coreutils
> sudo cp /usr/bin/readlink /usr/bin/readlink_orig
> sudo rm /usr/bin/readlink
> sudo ln -s /opt/local/bin/greadlink /usr/bin/readlink

....or use path + ln solution from above

> **
> 
> 
> *****
> OSELAS Projects
> 1.99.3.6
> 
> Copy OSELAS content into case sensitive disk image

It's better to work on a case sensitive disk, but I disabled the test in
dev/osx

> ptxdist select 
> ptxconfigs/powerpc-603e-linux-gnu_gcc-4.3.2_glibc-2.8_binutils-2.18_kernel-2.6.27-sanitized.ptxconfig
> 
> 
> sudo mkdir OSELAS.Toolchain-1.99.3
> sudo chown <user> OSELAS.Toolchain-1.99.3/
> 
> *****
> ptxdist go
> 
> **
> wget problem
> 
> --2009-12-22 17:10:39--  
> http://ftp.uni-kl.de/pub/gnu/binutils/binutils-2.18.tar.bz2
> Resolving ftp.uni-kl.de (ftp.uni-kl.de)... 131.246.120.27
> Connecting to ftp.uni-kl.de (ftp.uni-kl.de)|131.246.120.27|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 14962245 (14M) [text/plain]
> Saving to: 
> `/Volumes/ptx/OSELAS.Toolchain-1.99.3.6/src/binutils-2.18.tar.bz2.DKcmpYyAcn'
> 
> 
> solution:
> ptxd_make_get.sh patched
> the chmod and mv after wget had some -- in the command. Erased them and it 
> works
> **

fixed in dev/osx

> ------------------------------
> target: cross-binutils.install
> ------------------------------
> 
> bash: fakeroot: command not found
> make: *** 
> [/Volumes/ptx/OSELAS.Toolchain-1.99.3.6/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/state/cross-binutils.install]
>  Error 127

fixed in dev/osx

> 
> doesn't work:
> Puck:OSELAS.Toolchain-1.99.3.6 puckadmin$ sudo ptxdist go
> 
> ptxdist: error: refusing to run PTXdist as root
> 
> solution:
> ptxd_make_world_install:
> local fakeroot="cat"
> 
> **
> ld-problem

fixed in dev/osx

> 
> checking for ld --version-script... no
> *** WARNING: You should not compile GNU libc without versioning. Not using
> *** versioning will introduce incompatibilities so that old binaries
> *** will not run anymore.
> *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
> checking for .previous assembler directive... no
> checking for .popsection assembler directive... no
> checking for .protected and .hidden assembler directive... (cached) yes
> checking whether __attribute__((visibility())) is supported... (cached) yes
> checking for broken __attribute__((visibility()))... (cached) no
> checking for broken __attribute__((alias()))... (cached) no
> checking whether to put _rtld_local into .sdata section... (cached) yes
> checking for powerpc-603e-linux-gnu-readelf... no
> checking for .preinit_array/.init_array/.fini_array support... (cached) yes
> checking for libunwind-support in compiler... no
> checking for -z nodelete option... (cached) yes
> checking for -z nodlopen option... (cached) yes
> checking for -z initfirst option... (cached) yes
> checking for -z relro option... no
> configure: error: linker with -z relro support required
> make: *** 
> [/Volumes/ptx/OSELAS.Toolchain-1.99.3.6/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/state/glibc-headers.prepare]
>  Error 1

I managed to compile half way though the first gcc stage, then the
laptop and the person using it went sleeping.

Tell me how far you got.

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to