bugGNUstep - Bugs: bug #35557, Cannot configure the base...

Group
 
 

bug #35557: Cannot configure the base extensions for apple-apple-apple in 10.7.3

Submitter:  Graham Lee <leeg>
Submitted:  Fri 17 Feb 2012 06:10:51 PM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Feb 2012 01:57:31 PM UTC, comment #3: 

Thanks.  I applied your patch.

Thanks

Nicola Pero <nico>
Group Member
Tue 21 Feb 2012 10:46:48 AM UTC, comment #2: 

I ended up constructing this patch (below) for library-combo.make. It was ignoring config.make's OBJC_LIB_FLAG in the apple-apple-apple combo, but in fact it's necessary to supply a runtime library in that configuration.

Index: library-combo.make
===================================================================
--- library-combo.make (revision 34801)
+++ library-combo.make (working copy)
@@ -126,9 +126,7 @@
 ifeq ($(OBJC_RUNTIME_LIB), apple)
   RUNTIME_FLAG = -fnext-runtime
   RUNTIME_DEFINE = -DNeXT_RUNTIME=1
-  ifeq ($(FOUNDATION_LIB), gnu)
-    OBJC_LIBS = $(OBJC_LIB_FLAG)
-  endif
+  OBJC_LIBS = $(OBJC_LIB_FLAG)
 endif
 
 FND_LDFLAGS =

Graham Lee <leeg>
Sun 19 Feb 2012 01:44:59 PM UTC, comment #1: 

I've narrowed this down: the compiler invocation doesn't include -lobjc.

Graham Lee <leeg>
Fri 17 Feb 2012 06:10:51 PM UTC, original submission:  

Hi,

I'm trying to build GNUstep base extensions on 10.7.3 Intel, from subversion trunk r34770. Following the section on Mac OS X in core/make/GNUstep-HOWTO, I installed make like this:

$ ./configure --with-library-combo=apple-apple-apple
$ sudo make install
$ . /Library/GNUstep/Makefiles/GNUstep.sh

then tried to configure base like this:

$ ./configure --with-xml-prefix=/usr --disable-xmltest

It fails here:

checking whether objc really works... no
I don't seem to be able to use your Objective-C compiler to produce
working binaries!  Please check your Objective-C compiler installation.
If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc
can be found by the dynamic linker - usually that requires you to play
with LD_LIBRARY_PATH or /etc/ld.so.conf.
Please refer to your compiler installation instructions for more help.
configure: error: The Objective-C compiler does not work or is not installed properly.

It's trying to use the system gcc:


$ which gcc
/usr/bin/gcc

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 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.

However the same error occurs if I set "CC=clang" before configuring. I've attached config.log.

Graham Lee <leeg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #25074:  config.log added by leeg (80KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nico (Posted a comment)
  • -email is unavailable- added by leeg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-21 nico CategoryBase/Foundation Makefiles
        Open/ClosedOpen Closed
    2012-02-17 leeg Attached File- Added config.log, #25074

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code