Closed amiga23 closed 10 years ago
Can you take gcc from macports ? Does the error repeat ?
I switched to gcc48 from macports by modifying bootstrap.sh
CC="/opt/local/bin/gcc-mp-4.8" #"$(which gcc)"
CXX="/opt/local/bin/g++-mp-4.8" #"$(which g++)"
did remove the stamps folder to recompile everything (is that enough?). Then I got the following error:
...
+ make install
/usr/bin/install -c -d /opt/m68k-amigaos/bin /opt/m68k-amigaos/share/fd2sfd
# Install tools
/usr/bin/install -c -s fd2sfd /opt/m68k-amigaos/bin
/usr/bin/install -c -s cross/bin/gg-fix-includes /opt/m68k-amigaos/bin
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't process non-object and non-archive file: /opt/m68k-amigaos/bin/gg-fix-includes
for f in `cd ./cross/share/ && find * -type f`; do \
/usr/bin/install -c -m 644 -D ./cross/share/${f} /opt/m68k-amigaos/share/fd2sfd/${f}; \
done
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64
I solved it by installing coreutils and putting them in front of the path
sudo port install coreutils
PATH=/opt/local/libexec/gnubin/:$PATH ./bootstrap.sh --prefix=/opt/m68k-amigaos build
Thank you very much for sharing this and spending your time.
I switched to gcc48 from macports by modifying bootstrap.sh
CC="/opt/local/bin/gcc-mp-4.8" #"$(which gcc)" CXX="/opt/local/bin/g++-mp-4.8" #"$(which g++)"
did remove the stamps folder to recompile everything (is that enough?).
Probably you could achieve the same with "port select gcc". Removing stamps is good enough, though several times I needed to just clean everything by issuing "./bootstrap.sh clean".
Then I got the following error:
...
- make install /usr/bin/install -c -d /opt/m68k-amigaos/bin /opt/m68k-amigaos/share/fd2sfd
Install tools
/usr/bin/install -c -s fd2sfd /opt/m68k-amigaos/bin /usr/bin/install -c -s cross/bin/gg-fix-includes /opt/m68k-amigaos/bin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't process non-object and non-archive file: /opt/m68k-amigaos/bin/gg-fix-includes
I'm aware this warning / error. On some systems it can break compilation.
for f in
cd ./cross/share/ && find * -type f
; do \ /usr/bin/install -c -m 644 -D ./cross/share/${f} /opt/m68k-amigaos/share/fd2sfd/${f}; \ done /usr/bin/install: illegal option -- DOk. Once again a minor difference between BSD / MacOSX and GNU tools can break the build. I'll correct the Makefile.in for sfdc.
I solved it by installing coreutils and putting them in front of the path
sudo port install coreutils PATH=/opt/local/libexec/gnubin/:$PATH ./bootstrap.sh --prefix=/opt/m68k-amigaos build
What a nasty hack! But at least we know the culprit.
Thank you very much for sharing this and spending your time.
You're welcome! Did you try to build compile some programs?
Kind regards Krystian Bacławski
@amiga23 There's a pull request: #4 on the way to fix both issues you've encountered :)
On current Mac OS X Mavericks with up to date macports I do get the following error:
GCC Version: