LDC build issues for PowerPC and kfreebsd-{i386,amd64} on Debian

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Jul 15 03:37:48 PDT 2014


On Tuesday, 15 July 2014 at 10:26:23 UTC, Konstantinos Margaritis 
via digitalmars-d-ldc wrote:
> On Tue, 15 Jul 2014 10:13:31 +0300
> Konstantinos Margaritis via digitalmars-d-ldc
> <digitalmars-d-ldc at puremagic.com> wrote:
> 
>> Ok, I will try to get access to a kfreebsd-* system to try to 
>> figure
>> it out.
>
> Ok, I think I understand what's wrong here. Debian kfreeBSD-* 
> ports
> don't define __FreeBSD__ which means all those port-specific 
> code is
> never executed. I checked in some kfreebsd-* port wikis and 
> found that
> I should instead check for __FreeBSD_kernel__ instead of plain
> __FreeBSD__. So I did that and the compile moved further, 
> however when
> building runtime I got this:
>
> [ 12%] Generating src/core/bitop.o
> /home/markos/ldc-0.13.0/bin/ldc2 --output-o -c
> -I/home/markos/ldc-0.13.0/runtime/druntime/src
> -I/home/markos/ldc-0.13.0/runtime/druntime/src/gc 
> /home/markos/ldc-0.13.0/runtime/druntime/src/core/bitop.d
> -of/home/markos/ldc-0.13.0/runtime/src/core/bitop.o -w -d -O3 
> -release
> -disable-invariants Error: target 'x86_64-pc-kfreebsd-gnu' is 
> not yet
> supported
>
> Now, if there is interest to support kfreebsd-* I'll go ahead 
> and ask
> some of its porters for help, if not, I only have as much time
> available and I'd rather help the ports that I actually use 
> (like
> powerpc* and arm), and in that case, I'll just remove the port 
> names
> from the package's architecture list.
>
> Regards
>
> Konstantinos

Is there a define which identifies kfreebsd? This could simply be 
added to the __FreeBSD__ branch.

(With the host-independent implementation of real this will go 
away. But I still need to finish the implementation.)

Regards,
Kai


More information about the digitalmars-d-ldc mailing list