Compilation failure
Hi guys, after wanting for months to try out ghc-ios I finally have some time to do it. First off thanks for all the work you've done, I can't wait to get up and running. I seem to be running into a problem early on during make: gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -x c compiler/parser/Parser.y.pp | grep -v '^#pragma GCC' > compiler/stage1/build/Parser.y cc1: error: unrecognized command line option "-Wno-invalid-pp-token" cc1: error: unrecognized command line option "-Wno-unicode" make[1]: *** [compiler/stage1/build/Parser.y] Error 1 make[1]: *** Deleting file `compiler/stage1/build/Parser.y' make: *** [all] Error 2 My configure line: ./configure --target=i386-apple-darwin11 --with-gcc=i386-apple-darwin11-clang --with-ghc=/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/bin/ghc Which produces http://lpaste.net/96946. ghc --info: http://lpaste.net/96947 Thanks again. -- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
Hi Schell,
Happy to help!
Most everything looks good, but if I had to guess it would be that your gcc
is *actually* gcc, rather than the fake gcc that modern OS X/Xcode
provides. Have you perhaps installed one with brew or otherwise?
Here I've got:
lukexi@thopminkingscape:~$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.78) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
lukexi@thopminkingscape:~$ which gcc
/usr/bin/gcc
We've set the build system up to expect the Xcode-installed
gcc-which-is-actually-clang so if you can get that one to be primary in the
PATH that should get you past this.
Cheers
Luke
On Fri, Dec 13, 2013 at 1:35 PM, Schell Scivally
Hi guys, after wanting for months to try out ghc-ios I finally have some time to do it. First off thanks for all the work you've done, I can't wait to get up and running. I seem to be running into a problem early on during make:
gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -x c compiler/parser/Parser.y.pp | grep -v '^#pragma GCC' > compiler/stage1/build/Parser.y
cc1: error: unrecognized command line option "-Wno-invalid-pp-token"
cc1: error: unrecognized command line option "-Wno-unicode"
make[1]: *** [compiler/stage1/build/Parser.y] Error 1
make[1]: *** Deleting file `compiler/stage1/build/Parser.y'
make: *** [all] Error 2
My configure line:
./configure --target=i386-apple-darwin11 --with-gcc=i386-apple-darwin11-clang --with-ghc=/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/bin/ghc
Which produces http://lpaste.net/96946.
ghc --info: http://lpaste.net/96947
Thanks again.
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
basically configure the build with ./configure --with-gcc=clang and you
should be set then, right?
On Fri, Dec 13, 2013 at 6:36 PM, Luke Iannini
Hi Schell,
Happy to help!
Most everything looks good, but if I had to guess it would be that your gcc is *actually* gcc, rather than the fake gcc that modern OS X/Xcode provides. Have you perhaps installed one with brew or otherwise?
Here I've got:
lukexi@thopminkingscape:~$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.78) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix lukexi@thopminkingscape:~$ which gcc /usr/bin/gcc
We've set the build system up to expect the Xcode-installed gcc-which-is-actually-clang so if you can get that one to be primary in the PATH that should get you past this.
Cheers Luke
On Fri, Dec 13, 2013 at 1:35 PM, Schell Scivally
wrote: Hi guys, after wanting for months to try out ghc-ios I finally have some time to do it. First off thanks for all the work you've done, I can't wait to get up and running. I seem to be running into a problem early on during make:
gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -x c compiler/parser/Parser.y.pp | grep -v '^#pragma GCC' > compiler/stage1/build/Parser.y
cc1: error: unrecognized command line option "-Wno-invalid-pp-token"
cc1: error: unrecognized command line option "-Wno-unicode"
make[1]: *** [compiler/stage1/build/Parser.y] Error 1
make[1]: *** Deleting file `compiler/stage1/build/Parser.y'
make: *** [all] Error 2
My configure line:
./configure --target=i386-apple-darwin11 --with-gcc=i386-apple-darwin11-clang --with-ghc=/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/bin/ghc
Which produces http://lpaste.net/96946.
ghc --info: http://lpaste.net/96947
Thanks again.
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
Yup - these were the issues. I just un-symlinked my gcc from gcc 4.2, which I had installed for building GHC HEAD. Thanks! On Fri, Dec 13, 2013 at 3:55 PM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
basically configure the build with ./configure --with-gcc=clang and you should be set then, right?
On Fri, Dec 13, 2013 at 6:36 PM, Luke Iannini
wrote: Hi Schell,
Happy to help!
Most everything looks good, but if I had to guess it would be that your gcc is *actually* gcc, rather than the fake gcc that modern OS X/Xcode provides. Have you perhaps installed one with brew or otherwise?
Here I've got:
lukexi@thopminkingscape:~$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.78) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix lukexi@thopminkingscape:~$ which gcc /usr/bin/gcc
We've set the build system up to expect the Xcode-installed gcc-which-is-actually-clang so if you can get that one to be primary in the PATH that should get you past this.
Cheers Luke
On Fri, Dec 13, 2013 at 1:35 PM, Schell Scivally
wrote: Hi guys, after wanting for months to try out ghc-ios I finally have some time to do it. First off thanks for all the work you've done, I can't wait to get up and running. I seem to be running into a problem early on during make:
gcc -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -x c compiler/parser/Parser.y.pp | grep -v '^#pragma GCC' > compiler/stage1/build/Parser.y
cc1: error: unrecognized command line option "-Wno-invalid-pp-token"
cc1: error: unrecognized command line option "-Wno-unicode"
make[1]: *** [compiler/stage1/build/Parser.y] Error 1
make[1]: *** Deleting file `compiler/stage1/build/Parser.y'
make: *** [all] Error 2
My configure line:
./configure --target=i386-apple-darwin11 --with-gcc=i386-apple-darwin11-clang --with-ghc=/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/bin/ghc
Which produces http://lpaste.net/96946.
ghc --info: http://lpaste.net/96947
Thanks again.
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
It seems I've run into another error: Configuring ghc-pkg-6.9... ghc-cabal: At least the following dependencies are missing: terminfo -any make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1 make: *** [all] Error 2 -- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
Hi Schell,
That one was supposed to have been fixed:
https://ghc.haskell.org/trac/ghc/ticket/7700 so perhaps try doing a "make
distclean" and starting again (perl boot, configure etc.) now that you've
fixed your gcc issue?
Cheers
Luke
On Fri, Dec 13, 2013 at 4:14 PM, Schell Scivally
It seems I've run into another error:
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
Yup - that seemed to clear it up. I've successfully built the simulator cc
and am working on the arm cc. Thanks!
On Fri, Dec 13, 2013 at 6:12 PM, Luke Iannini
Hi Schell,
That one was supposed to have been fixed: https://ghc.haskell.org/trac/ghc/ticket/7700 so perhaps try doing a "make distclean" and starting again (perl boot, configure etc.) now that you've fixed your gcc issue?
Cheers Luke
On Fri, Dec 13, 2013 at 4:14 PM, Schell Scivally
wrote: It seems I've run into another error:
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
So it looks like I've run into a problem when building the arm
cross-compiler:
libtool: compile: arm-apple-darwin10-clang -DHAVE_CONFIG_H -I. -I.. -I.
-I../include -Iinclude -I../src -DFFI_BUILDING -I. -I../include -Iinclude
-I../src -DFFI_BUILDING -g -fno-stack-protector -w -c ../src/arm/sysv.S
-Wp,-MD,src/arm/.deps/sysv.TPlo -o src/arm/sysv.o
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters
which are not used in macro body, possible positional parameter found in
body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters
which are not used in macro body, possible positional parameter found in
body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
can't open input file: src/arm/sysv-armv7.o (No such file or directory)
rm: src/arm/sysv-armv7.o: No such file or directory
rm: src/arm/sysv-armv7s.o: No such file or directory
make[5]: *** [src/arm/sysv.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-all] Error 2
make[1]: *** [libffi/stamp.ffi.static.build] Error 2
make: *** [all] Error 2
On Sat, Dec 14, 2013 at 9:19 AM, Schell Scivally
Yup - that seemed to clear it up. I've successfully built the simulator cc and am working on the arm cc. Thanks!
On Fri, Dec 13, 2013 at 6:12 PM, Luke Iannini
wrote: Hi Schell,
That one was supposed to have been fixed: https://ghc.haskell.org/trac/ghc/ticket/7700 so perhaps try doing a "make distclean" and starting again (perl boot, configure etc.) now that you've fixed your gcc issue?
Cheers Luke
On Fri, Dec 13, 2013 at 4:14 PM, Schell Scivally
wrote: It seems I've run into another error:
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
Oops, the wiki had a typo!
Step 3 should have been:
rm libffi-tarballs/libffi-3.0.11.tar.gz
wget
https://github.com/ghc-ios/libffi-tarballs/blob/master/libffi-3.0.13z.tar.gz...
-O libffi-tarballs/libffi-3.0.13z.tar.gz
I’ve fixed it now, can you try those commands and let me know if it helps?
Cheers
Luke
On Sat, Dec 14, 2013 at 9:57 AM, Schell Scivally
So it looks like I've run into a problem when building the arm cross-compiler:
libtool: compile: arm-apple-darwin10-clang -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -DFFI_BUILDING -I. -I../include -Iinclude -I../src -DFFI_BUILDING -g -fno-stack-protector -w -c ../src/arm/sysv.S -Wp,-MD,src/arm/.deps/sysv.TPlo -o src/arm/sysv.o
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: src/arm/sysv-armv7.o (No such file or directory)
rm: src/arm/sysv-armv7.o: No such file or directory
rm: src/arm/sysv-armv7s.o: No such file or directory
make[5]: *** [src/arm/sysv.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-all] Error 2
make[1]: *** [libffi/stamp.ffi.static.build] Error 2
make: *** [all] Error 2
On Sat, Dec 14, 2013 at 9:19 AM, Schell Scivally
wrote: Yup - that seemed to clear it up. I've successfully built the simulator cc and am working on the arm cc. Thanks!
On Fri, Dec 13, 2013 at 6:12 PM, Luke Iannini
wrote: Hi Schell,
That one was supposed to have been fixed: https://ghc.haskell.org/trac/ghc/ticket/7700 so perhaps try doing a "make distclean" and starting again (perl boot, configure etc.) now that you've fixed your gcc issue?
Cheers Luke
On Fri, Dec 13, 2013 at 4:14 PM, Schell Scivally
wrote: It seems I've run into another error:
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
That fixed it! Thanks guys!
On Sun, Dec 15, 2013 at 3:17 AM, Luke Iannini
Oops, the wiki had a typo!
Step 3 should have been:
rm libffi-tarballs/libffi-3.0.11.tar.gz wget https://github.com/ghc-ios/libffi-tarballs/blob/master/libffi-3.0.13z.tar.gz... -O libffi-tarballs/libffi-3.0.13z.tar.gz
I’ve fixed it now, can you try those commands and let me know if it helps?
Cheers Luke
On Sat, Dec 14, 2013 at 9:57 AM, Schell Scivally
wrote: So it looks like I've run into a problem when building the arm cross-compiler:
libtool: compile: arm-apple-darwin10-clang -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -DFFI_BUILDING -I. -I../include -Iinclude -I../src -DFFI_BUILDING -g -fno-stack-protector -w -c ../src/arm/sysv.S -Wp,-MD,src/arm/.deps/sysv.TPlo -o src/arm/sysv.o
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
*../src/arm/sysv.S:137:1: **warning: **macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect*
.macro ARM_FUNC_START name
*^*
*../src/arm/sysv.S:224:2: **error: **invalid instruction*
stmeqia r2, {r0, r1}
* ^*
*<instantiation>:5:14: **error: **invalid symbol redefinition*
.globl _$0; _$0:
* ^*
*../src/arm/sysv.S:269:1: **note: **while in macro instantiation*
ARM_FUNC_START ffi_closure_SYSV
*^*
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: src/arm/sysv-armv7.o (No such file or directory)
rm: src/arm/sysv-armv7.o: No such file or directory
rm: src/arm/sysv-armv7s.o: No such file or directory
make[5]: *** [src/arm/sysv.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-all] Error 2
make[1]: *** [libffi/stamp.ffi.static.build] Error 2
make: *** [all] Error 2
On Sat, Dec 14, 2013 at 9:19 AM, Schell Scivally
wrote: Yup - that seemed to clear it up. I've successfully built the simulator cc and am working on the arm cc. Thanks!
On Fri, Dec 13, 2013 at 6:12 PM, Luke Iannini
wrote: Hi Schell,
That one was supposed to have been fixed: https://ghc.haskell.org/trac/ghc/ticket/7700 so perhaps try doing a "make distclean" and starting again (perl boot, configure etc.) now that you've fixed your gcc issue?
Cheers Luke
On Fri, Dec 13, 2013 at 4:14 PM, Schell Scivally
wrote:
It seems I've run into another error:
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
-- Schell Scivally http://blog.efnx.com http://github.com/schell http://twitter.com/schellsan
participants (3)
-
Carter Schonwald -
Luke Iannini -
Schell Scivally