public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries
@ 2012-08-30 16:22 nenad at intrepid dot com
  2012-09-12 17:27 ` [Bug other/54423] " nenad at intrepid dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: nenad at intrepid dot com @ 2012-08-30 16:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

             Bug #: 54423
           Summary: building trunk on Darwin 12.1 fails in building
                    libraries
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nenad@intrepid.com


Building the trunk on Mac OS X 10.8.1 (Darwin 12.1.0) fails.
Configuring libraries fails with the following error (e.g. libatomic):

configure:3477: checking for C compiler default output file name
configure:3499: /eng/upc/dev/nenad/gcc-trunk/bld/./gcc/xgcc
-B/eng/upc/dev/nenad/gcc-trunk/bld/./gcc/
-B/usr/local/x86_64-apple-darwin12.1.0/bin/
-B/usr/local/x86_64-apple-darwin12.1.0/lib/ -isystem
/usr/local/x86_64-apple-darwin12.1.0/include -isystem
/usr/local/x86_64-apple-darwin12.1.0/sys-include    -g -O2   conftest.c >&5
Undefined symbols for architecture x86_64:
  "start", referenced from:
     -u command line option
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

The above uses the following link lines (produces with -v switch):

/eng/upc/dev/nenad/gcc-trunk/bld/./gcc/collect2 -dynamic -arch x86_64
-macosx_version_min 10.8.1 -weak_reference_mismatches non-weak -o a.out
-L/eng/upc/dev/nenad/gcc-trunk/bld/./gcc
/var/folders/z7/83zx0wdj4cx644rg7p7kgwb80000gn/T//cc6kpstu.o -no_compact_unwind
-lSystem -lgcc_ext.10.5 -lgcc -lSystem -v -idsym -dsym
collect2 version 4.8.0 20120828 (experimental)
/eng/upc/dev/nenad/gcc-trunk/bld/./gcc/collect-ld -dynamic -arch x86_64
-macosx_version_min 10.8.1 -weak_reference_mismatches non-weak -o a.out
-L/eng/upc/dev/nenad/gcc-trunk/bld/./gcc
/var/folders/z7/83zx0wdj4cx644rg7p7kgwb80000gn/T//cc6kpstu.o -no_compact_unwind
-lSystem -lgcc_ext.10.5 -lgcc -lSystem -v

This test links if I add "-lcrt1.o" on the command line. I have the latest
Xcode loaded and my Mac is up to date.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54423] building trunk on Darwin 12.1 fails in building libraries
  2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
@ 2012-09-12 17:27 ` nenad at intrepid dot com
  2012-10-16 17:39 ` nenad at intrepid dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: nenad at intrepid dot com @ 2012-09-12 17:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

--- Comment #1 from Nenad Vukicevic <nenad at intrepid dot com> 2012-09-12 17:27:24 UTC ---
Has there been any attempt to confirm/resolve this bug? As it stands I am not
able to build gcc on the latest Mountain Lion OS.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54423] building trunk on Darwin 12.1 fails in building libraries
  2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
  2012-09-12 17:27 ` [Bug other/54423] " nenad at intrepid dot com
@ 2012-10-16 17:39 ` nenad at intrepid dot com
  2012-10-16 20:15 ` howarth at nitro dot med.uc.edu
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: nenad at intrepid dot com @ 2012-10-16 17:39 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

--- Comment #2 from Nenad Vukicevic <nenad at intrepid dot com> 2012-10-16 17:38:37 UTC ---
I verified that I have the latest Xcode (4.5). I verified that I installed the
latest development CLI tools (via Xcode and manual download).

* I see that 10.8 SDK directory exists under Xcode App - but not under
/Developer
* cc running is llvm - 4.2.1
* I see that it links with the following command:

 /Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/as -arch
x86_64 -force_cpusubtype_ALL -o
/var/folders/z7/83zx0wdj4cx644rg7p7kgwb80000gn/T//ccDk1do9.o
/var/folders/z7/83zx0wdj4cx644rg7p7kgwb80000gn/T//ccDTslhw.s
 /Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/collect2
-dynamic -arch x86_64 -macosx_version_min 10.8.2 -weak_reference_mismatches
non-weak -o t -lcrt1.10.6.o
-L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/x86_64
-L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1
-L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../..
/var/folders/z7/83zx0wdj4cx644rg7p7kgwb80000gn/T//ccDk1do9.o -lSystem -lgcc
-lSystem

Note the "-lcrt1.10.6.0" on the command line. 

Is linking with crt1.10.6.0 the right fix for Mountain Lion?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54423] building trunk on Darwin 12.1 fails in building libraries
  2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
  2012-09-12 17:27 ` [Bug other/54423] " nenad at intrepid dot com
  2012-10-16 17:39 ` nenad at intrepid dot com
@ 2012-10-16 20:15 ` howarth at nitro dot med.uc.edu
  2012-10-16 23:21 ` nenad at intrepid dot com
  2012-10-16 23:22 ` nenad at intrepid dot com
  4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-10-16 20:15 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

Jack Howarth <howarth at nitro dot med.uc.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at nitro dot
                   |                            |med.uc.edu

--- Comment #3 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-10-16 20:15:03 UTC ---
Apple has changed how Xcode is configured and /Developer is no longer used.
Make sure you have installed the latest Xcode, the matching Command Line Tools
from within the Preferences panel of the Xcode application and then have
executed...

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

You are likely using some pre-Mountain Lion of the CLI in the deprecated
/Developer directory.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54423] building trunk on Darwin 12.1 fails in building libraries
  2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
                   ` (2 preceding siblings ...)
  2012-10-16 20:15 ` howarth at nitro dot med.uc.edu
@ 2012-10-16 23:21 ` nenad at intrepid dot com
  2012-10-16 23:22 ` nenad at intrepid dot com
  4 siblings, 0 replies; 6+ messages in thread
From: nenad at intrepid dot com @ 2012-10-16 23:21 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

--- Comment #4 from Nenad Vukicevic <nenad at intrepid dot com> 2012-10-16 23:20:41 UTC ---
I removed /Development and /Application/Xcode.app then installed it again. Now
I am able to build gcc again. Thank you.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/54423] building trunk on Darwin 12.1 fails in building libraries
  2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
                   ` (3 preceding siblings ...)
  2012-10-16 23:21 ` nenad at intrepid dot com
@ 2012-10-16 23:22 ` nenad at intrepid dot com
  4 siblings, 0 replies; 6+ messages in thread
From: nenad at intrepid dot com @ 2012-10-16 23:22 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54423

Nenad Vukicevic <nenad at intrepid dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Nenad Vukicevic <nenad at intrepid dot com> 2012-10-16 23:22:22 UTC ---
Problem fixed with a clean install of Xcode.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-16 23:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30 16:22 [Bug other/54423] New: building trunk on Darwin 12.1 fails in building libraries nenad at intrepid dot com
2012-09-12 17:27 ` [Bug other/54423] " nenad at intrepid dot com
2012-10-16 17:39 ` nenad at intrepid dot com
2012-10-16 20:15 ` howarth at nitro dot med.uc.edu
2012-10-16 23:21 ` nenad at intrepid dot com
2012-10-16 23:22 ` nenad at intrepid dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).