bug-gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gforth] [bug #40978] Failed to compile GForth on MACOSX 10.8.5


From: anonymous
Subject: [Bug-gforth] [bug #40978] Failed to compile GForth on MACOSX 10.8.5
Date: Fri, 20 Dec 2013 06:43:46 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:26.0) Gecko/20100101 Firefox/26.0

URL:
  <http://savannah.gnu.org/bugs/?40978>

                 Summary: Failed to compile GForth on MACOSX 10.8.5
                 Project: Gforth
            Submitted by: None
            Submitted on: Fri 20 Dec 2013 06:43:45 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When run configure as:
./configure CC='gcc -v -arch x86_64' --build=x86_64-apple-darwin12.5.0

– libfcc interface failed to be compiled. Exactly, the building process
failed for the all files in the lib/gforth/0.7.9_20130821/libcc-named
directory. 
The error message says (for all TLS variables):
/include/gforth/0.7.9_20130821/libcc.h:50:8: error: thread-local storage is
unsupported for the current target
extern __thread Cell *gforth_SP;  

Running gcc with -v flag shows that for some reason it runs clag with -triple
x86_64-apple10.3.0 instead of x86_64-apple10.8.0.

Than, if to use the following line to run configure:
./configure CC='gcc -v -arch x86_64' --build=x86_64-apple-macosx10.8.0

– a linking stage fails with error message:
ld: illegal thread local variable reference to regular symbol _gforth_SP for
architecture x86_64
Here the full otput from make for this case (I've also changed the glibtool
script to use "gcc -v -arch x86_64" instead of default "cc"):
----
glibtool: compile:  gcc -v -arch x86_64 -Wimplicit-function-declaration -O2
-pthread -I /Users/sasha/Src/3d-party/gforth.git/include -O -c
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/filestat.c
-o
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/filestat.o
>/dev/null 2>&1
glibtool: link: gcc -v -arch x86_64 -Wl,-undefined -Wl,dynamic_lookup -o
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/.libs/libgffilestat.0.so
-bundle 
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/.libs/filestat.o
   -arch x86_64 -O2 -pthread   -pthread
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -dynamic -arch x86_64 -bundle -macosx_version_min 10.8.0 -o
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/.libs/libgffilestat.0.so
-undefined dynamic_lookup
/Users/sasha/Src/3d-party/gforth.git/lib/gforth/0.7.9_20130821/libcc-named/.libs/filestat.o
-lSystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a
ld: illegal thread local variable reference to regular symbol _gforth_SP for
architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

in file included from *OS command line*:-1
unix/filestat.fs:49: libtool link failed
>>>end-c-library<<<

----





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40978>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]