[MacPorts] #73374: clang fails using linger with unknown option -no_data_in_code_info (was: clang-6.0: ld: unknown option: -no_data_in_code_info)
MacPorts
noreply at macports.org
Fri Jan 9 21:39:53 UTC 2026
#73374: clang fails using linger with unknown option -no_data_in_code_info
-------------------------+-------------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: snowleopard
Port: clang ld64 |
-------------------------+-------------------------
Changes (by rmottola):
* port: clang-6.0 ld64 => clang ld64
Old description:
> I don't know if it is clang or ld or a combination of both, I am no
> longer able to build ArcticFox on 10.6 32bit. Failure is the following:
>
> {{{
> 0:21.11 DEBUG: configure:2313: checking whether the C compiler
> (/opt/local/bin/clang-mp-6.0 -march=pentium-m -mtune=pentium-m -std=gnu99
> -Wl,-no_data_in_code_info) works
> 0:21.11 DEBUG: configure:2329: /opt/local/bin/clang-mp-6.0
> -march=pentium-m -mtune=pentium-m -std=gnu99 -o conftest
> -Wl,-no_data_in_code_info conftest.c 1>&5
> 0:21.11 DEBUG: configure:2326:1: warning: type specifier missing,
> defaults to 'int' [-Wimplicit-int]
> 0:21.12 DEBUG: main(){return(0);}
> 0:21.12 DEBUG: ^
> 0:21.12 DEBUG: 1 warning generated.
> 0:21.12 DEBUG: ld: unknown option: -no_data_in_code_info
> 0:21.12 DEBUG: clang: error: linker command failed with exit code 1 (use
> -v to see invocation)
> 0
> }}}
>
> this used to work and the same option is used on 10.6 64bit or on 10.7
> 64bit and there it works. I don't know what changed on 32bit.
>
> My clang is:
>
> {{{
> clang-6.0 @6.0.1_6+defaultlibcxx+emulated_tls (active)
> }}}
>
> while on the linker side it is this:
>
> {{{
> ld64 @3_6+ld64_127 (active)
> ld64-127 @127.2_14+llvm34 (active)
> }}}
>
> I wonder if these are correct and invocated.
>
> {{{
> $ ld-127 -no_data_in_code_info
> ld: unknown option: -no_data_in_code_info
> }}}
>
> tells me probably it is too old. On
New description:
I don't know if it is clang or ld or a combination of both, I am no longer
able to build ArcticFox on 10.6 32bit. Failure is the following:
{{{
0:21.11 DEBUG: configure:2313: checking whether the C compiler
(/opt/local/bin/clang-mp-6.0 -march=pentium-m -mtune=pentium-m -std=gnu99
-Wl,-no_data_in_code_info) works
0:21.11 DEBUG: configure:2329: /opt/local/bin/clang-mp-6.0
-march=pentium-m -mtune=pentium-m -std=gnu99 -o conftest
-Wl,-no_data_in_code_info conftest.c 1>&5
0:21.11 DEBUG: configure:2326:1: warning: type specifier missing,
defaults to 'int' [-Wimplicit-int]
0:21.12 DEBUG: main(){return(0);}
0:21.12 DEBUG: ^
0:21.12 DEBUG: 1 warning generated.
0:21.12 DEBUG: ld: unknown option: -no_data_in_code_info
0:21.12 DEBUG: clang: error: linker command failed with exit code 1 (use
-v to see invocation)
0
}}}
this used to work and the same option is used on 10.6 64bit or on 10.7
64bit and there it works. I don't know what changed on 32bit.
My clang is:
{{{
clang-6.0 @6.0.1_6+defaultlibcxx+emulated_tls (active)
}}}
while on the linker side it is this:
{{{
ld64 @3_6+ld64_127 (active)
ld64-127 @127.2_14+llvm34 (active)
}}}
I wonder if these are correct and invocated.
$ ld-127 -no_data_in_code_info
ld: unknown option: -no_data_in_code_info
tells me probably it is too old. On
--
Comment:
I checked on 10.6.8 64bit and I have ld64-450.3 which supports the said
option.
Are newer linkers not available for 32bit? or do they have issues?
The option gets added automatically during the build configuration, I do
not explicitly add it.
{{{
# Ensure the updated linker doesn't generate things our older build tools
# don't understand.
ldflags="$ldflags -Wl,-no_data_in_code_info"
export LDFLAGS="$ldflags"
}}}
this is an option added in Firefox.... so it is not directly MacPorts
issue, but the issue essentially that 32bit lags behind 64bit.
--
Ticket URL: <https://trac.macports.org/ticket/73374#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list