[Ecls-list] ECL on iPhone

Red Daly reddaly at gmail.com
Tue Sep 9 21:12:43 UTC 2008


This message just bounced:

I have amended my configuration command to include LDFLAGS, not just
CFLAGS.  I also disabled profiling and added a LIBRAN env variable. Now I'm
breaking with these errors...


;;; Finished compiling ext:sockets;sockets.lisp.
;;; Note: Scanning #P"build:ext;sockets.o.NEWEST"
;;; Note: Found tag: "_ecl3HaOXjm8_TY2iyNy"
;;; Note: Invoking external command:
;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0
-arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0
-Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden
-miphoneos-version-min=2.0 -gdwarf-2 -mthumb -miphoneos-version-min=2.0
-I/Library/iPhone/include -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk
-Ddarwin -I"/Users/red/Projects/ecl/ecl-iphone/src/c"
"-I/Users/red/Projects/ecl/ecl-iphone/build/" -w -c
"/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.c"
-o
"/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.o"
;;; Note: Invoking external command:
;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar cr
libsockets.a
/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITu3lxs7.o
/Users/red/Projects/ecl/ecl-iphone/build/ext/sockets.o
;;; Note: Invoking external command:
;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
libsockets.a
;;; Note: Invoking external command:
;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0
-arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0
-Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden
-miphoneos-version-min=2.0 -gdwarf-2 -mthumb -miphoneos-version-min=2.0
-I/Library/iPhone/include -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk
-Ddarwin -I"/Users/red/Projects/ecl/ecl-iphone/src/c"
"-I/Users/red/Projects/ecl/ecl-iphone/build/" -w -c
"/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.c"
-o
"/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.o"
;;; Note: Invoking external command:
Undefined symbols:
  "___data_start", referenced from:
      ___data_start$non_lazy_ptr in libeclgc.a(os_dep.o)
  "___stack_base__", referenced from:
      ___stack_base__$non_lazy_ptr in libeclgc.a(os_dep.o)
  "_end", referenced from:
      _end$non_lazy_ptr in libeclgc.a(os_dep.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
;;; Warning: Ignoring definition for class SIMPLE-PROGRAM-ERROR
Not a condition type: SIMPLE-PROGRAM-ERROR
;;;   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -o
"/Users/red/Projects/ecl/ecl-iphone/build/bin/ecl"
-L"/Users/red/Projects/ecl/ecl-iphone/build/"
"/private/var/folders/bZ/bZzxCBiyF0ec7xuYjNmSMk+++TI/-Tmp-/ECLINITqICIO4.o"
"-lsockets" "-lcmp" "-L./"  -arch armv6 -pipe -std=c99 -gdwarf-2 -mthumb
-I/Library/iPhone/include -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk
libecl.a -leclgc    -lm  Broken at TOP-LEVEL. File:
#P"/Users/red/Projects/ecl/ecl-iphone/src/lsp/top.lsp" (Form #26)No restarts
available.
Top level.
SI>


thanks for the help!  I'm sure this will be building soon :)

Red


On Tue, Sep 9, 2008 at 1:33 PM, Juan Jose Garcia-Ripoll <
juanjose.garciaripoll at googlemail.com> wrote:

> On Tue, Sep 9, 2008 at 9:34 PM, Red Daly <reddaly at gmail.com> wrote:
>
>> Unfortunately, I am still having problems.  I believe I am getting through
>> the configuration process without any warnings (at least when I compile
>> without GMP). There are new problems in what appears to be the lisp phase of
>> the build. [...]
>> ;;; Compiling (DEFVAR *PROFILED-FUN-NAME->INFO* ...).
>> ;;; Warning: Ignoring definition for class PROFILE-INFO
>> ;;; No class named PROFILE-INFO.
>>
>
> This is a contributed module which sometimes causes problems. You can
> deactivate it with --without-profile
>
>>
>> From what I can tell, one problem is that not all the GCC flags I
>> specified in the configuration stage are preserved in this latter stage of
>> the build.[...]
>> does not contain the -arch arm etc. flags specified in my call to
>> configure.  However, many other calls to gcc do have those flags.
>>
>
> That is because that last phase is not compiling anything: it is linking.
> So, the appropriate flags are LDFLAGS. Seems you should add -arch arm and
> similar to that variable as well.
>
>
>> The AR value I specify also does not make it all the way to the lisp stage
>>
>
> My fault. I have not included this as a configurable command. I will search
> the code and see what I can change. Momentarily, could you edit cmpmain.lsp
> and add the right commands?
>
> Juanjo
>
> --
> Instituto de Física Fundamental
> CSIC, Serrano, 113, Madrid 28040 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20080909/f77c7743/attachment.html>


More information about the ecl-devel mailing list