Beta 2.104.0

thinkunix thinkunix at zoho.com
Wed May 10 03:31:05 UTC 2023


anonymouse via Digitalmars-d-announce wrote:
> On Tuesday, 2 May 2023 at 00:34:45 UTC, Iain Buclaw wrote:
>> Glad to announce the first beta for the 2.104.0 release, ♥ to the 36 
>> contributors.
> 
> A couple days ago I ran into an issue that was solved by 
> https://issues.dlang.org/show_bug.cgi?id=23846 so I upgraded to this 
> beta. I just initialized a dub project to try to use ```mir.stat```
> 
> ```D
> import std.stdio;
> import mir.stat;
> 
> void main()
> {
>      writeln("Edit source/app.d to start your project.");
> }
> ```
> and ran into the following linker errors:
> 
> ```
> (dmd-2.104.0-beta.1)confuzzled at confuzzleds-MBP stat % dub
>      Starting Performing "debug" build using 
> /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd for x86_64.
>    Up-to-date mir-core 1.5.5: target for configuration [library] is up 
> to date.
>    Up-to-date mir-algorithm 3.20.2: target for configuration [default] 
> is up to date.
>    Up-to-date mir-stat 0.1.6: target for configuration [library] is up 
> to date.
>      Building stat ~master: building configuration [application]
>       Linking stat
> ld: warning: alignment (1) of atom 'anon' is too small and may result in 
> unaligned pointers
> [SNIP same ld error repeated 1697 times]
> ld: warning: alignment (1) of atom 'anon' is too small and may result in 
> unaligned pointers
> ld: warning: pointer not aligned at address 0x10006C2A1 ('anon' + 673 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C2BE ('anon' + 702 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C3A1 ('anon' + 929 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C3E9 ('anon' + 1001 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C43F ('anon' + 1087 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C47A ('anon' + 1146 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C496 ('anon' + 1174 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C4D2 ('anon' + 1234 
> from 
> /Users/confuzzled/.dub/cache/stat/~master/build/application-debug-d2OWm2um2jTdPTUfJ52drA/stat.o) 
> 
> ld: warning: pointer not aligned at address 0x10006C6FD ('anon' + 122 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(lifetime_fd_8f7.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006C8A3 ('anon' + 127 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(hash_114_3c9.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006C93B ('anon' + 127 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(hash_125_58c.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CAB9 ('anon' + 139 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(comparison_186_3bd.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CB56 ('anon' + 129 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(string_187_36f.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CC9D ('anon' + 142 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(concatenation_219_e62.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CD67 ('anon' + 137 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(capacity_21a_11f9.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CE0F ('anon' + 142 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(concatenation_21b_1145.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006CFE2 ('anon' + 151 
> from 
> ../../.dub/cache/mir-algorithm/3.20.2/build/default-debug-R1enIlTUL3xo2uXB-nJMrg/libmir-algorithm.a(atomic_2d0_104b.o)) 
> 
> ld: warning: pointer not aligned at address 0x10006D191 ('anon' + 127 
> from 
> ../../.dub/cache/mir-core/1.5.5/build/library-debug-6QbncWne9XfURo0c-rzF0g/libmir-core.a(hash_30_76c.o)) 
> 
> ld: unaligned pointer(s) for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> Error: linker exited with status 1
> Error /Users/confuzzled/dlang/dmd-2.104.0-beta.1/osx/bin/dmd failed with 
> exit code 1.
> ```

I ran into the same issue in the bug you referenced,
"...number `0x0.8p-126f` is not representable as a `float`"
trying to build phobos on an older Linux x86_64 system after
dmd-2.102.2 was released.

After I saw your email yesterday about the bug, I upgraded to
dmd-2.104.0-beta.1 and phobos built.  Thanks for you post!

While I don't have an answer to your current problem, I can say
that I just ran this test build on my system that had the problem
and it worked:

$ dub --version
DUB version 1.31.1, built on Feb 17 2023

$ dmd --version
DMD64 D Compiler v2.104.0-beta.1

Copyright (C) 1999-2023 by The D Language Foundation, All Rights 
Reserved written by Walter Bright


$ mkdir mirstat
$ cd mirstat
$ dub init -t minimal		## accept all defaults
$ vi source/app.d		## add "import mir.stat;"

$ dub add mir-stat
              Adding dependency mir-stat ~>0.1.6

$ cat dub.json
{
         "authors": [
                 "thinkunix"
         ],
         "copyright": "Copyright © 2023, jenkins",
         "dependencies": {
                 "mir-stat": "~>0.1.6"
         },
         "description": "A minimal D application.",
         "license": "proprietary",
         "name": "mirstat"
}

$ dub
     Starting Performing "debug" build using /usr/bin/dmd for x86_64.
   Up-to-date mir-core 1.5.5: target for configuration [library] is up 
to date.
   Up-to-date mir-algorithm 3.20.2: target for configuration [default] 
is up to date.
   Up-to-date mir-stat 0.1.6: target for configuration [library] is up 
to date.
     Building mirstat ~master: building configuration [application]
      Linking mirstat
     Finished To force a rebuild of up-to-date targets, run again with 
--force
      Running mirstat
Edit source/app.d to start your project.


Not sure if that helps, but it shows this works with dmd-2.104.0-beta.1
at least on Linux x86_64.

scot


More information about the Digitalmars-d-announce mailing list