Linking with -R (rpath) not supported on Darwin

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Linking with -R (rpath) not supported on Darwin

From: Benoit SIGOURE <hidden>
Date: 2016-06-15 22:43:38

Hello,
I've just compiled HEAD (1.5.3.4.209.g9e417) and saw a:
     LINK git-http-fetch
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-R/opt/local/lib'

It didn't harm but the build process should be more careful to not  
use options that are not supported by the compiler.  And it's not a  
matter of using -Wl,-rpath instead.

Cheers,

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory

Re: Linking with -R (rpath) not supported on Darwin

From: Brian Gernhardt <hidden>
Date: 2016-06-15 22:43:38

On Oct 3, 2007, at 5:34 PM, Benoit SIGOURE wrote:
Hello,
I've just compiled HEAD (1.5.3.4.209.g9e417) and saw a:
    LINK git-http-fetch
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-R/opt/local/lib'

It didn't harm but the build process should be more careful to not  
use options that are not supported by the compiler.  And it's not a  
matter of using -Wl,-rpath instead.
I compile git very regularly on my MacBook Pro and have never seen  
this error.  Do you have the most recent copy of Xcode?  I've seen  
odd errors on one of the not very old versions of the developer's  
tools.  For me, `gcc -v` reports "gcc version 4.0.1 (Apple Computer,  
Inc. build 5367)".

~~ Brian

Re: Linking with -R (rpath) not supported on Darwin

From: Benoit SIGOURE <hidden>
Date: 2016-06-15 22:43:38

On Oct 4, 2007, at 12:39 AM, Brian Gernhardt wrote:
On Oct 3, 2007, at 5:34 PM, Benoit SIGOURE wrote:
quoted
Hello,
I've just compiled HEAD (1.5.3.4.209.g9e417) and saw a:
    LINK git-http-fetch
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-R/opt/local/lib'

It didn't harm but the build process should be more careful to not  
use options that are not supported by the compiler.  And it's not  
a matter of using -Wl,-rpath instead.
I compile git very regularly on my MacBook Pro and have never seen  
this error.  Do you have the most recent copy of Xcode?  I've seen  
odd errors on one of the not very old versions of the developer's  
tools.  For me, `gcc -v` reports "gcc version 4.0.1 (Apple  
Computer, Inc. build 5367)".

~~ Brian
$ gcc -v
[...]
gcc version 4.0.1 (Apple Computer, Inc. build 5367)

I've seen this message for the 1st time when compiling Git after my  
nightly git pull today.  Anyways, this should be done because there  
is no point in trying to use a feature that doesn't exist, even  
though GCC is being nice by simply issuing a warning instead of an  
error.

See:
http://developer.apple.com/releasenotes/DeveloperTools/RN-dyld/ 
index.html

In the section "Known Issues" it clearly states "No rpath support".

Cheers,

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help