www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - pointer not aligned

reply Joel <joelcnz gmail.com> writes:
Linking...
ld: warning: pointer not aligned at address 0x10017A4C9 
(_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from 
.dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
...

and this goes on forever!
Mar 30 2017
next sibling parent reply "H. S. Teoh via Digitalmars-d-learn" <digitalmars-d-learn puremagic.com> writes:
On Fri, Mar 31, 2017 at 04:41:10AM +0000, Joel via Digitalmars-d-learn wrote:
 Linking...
 ld: warning: pointer not aligned at address 0x10017A4C9
 (_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from
.dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
 ...
 
 and this goes on forever!
More information, please. What was the code you were trying to compile? What compile flags did you use? Which compiler? T -- Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln
Mar 30 2017
parent reply Adam Wilson <flyboynw gmail.com> writes:
On 3/30/17 10:47 PM, H. S. Teoh via Digitalmars-d-learn wrote:
 On Fri, Mar 31, 2017 at 04:41:10AM +0000, Joel via Digitalmars-d-learn wrote:
 Linking...
 ld: warning: pointer not aligned at address 0x10017A4C9
 (_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from
.dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
 ...

 and this goes on forever!
More information, please. What was the code you were trying to compile? What compile flags did you use? Which compiler? T
I see this on OSX as well. Any code referencing Phobos appears to produce this. It appear after updating the XCode command line tools. It does not appear to effect program execution, but the pages of warnings are really quite annoying. DMD 2.073.2 -- Adam Wilson IRC: LightBender import quiet.dlang.dev;
Mar 31 2017
parent Timothee Cour via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
indeed. NOTE: ldmd2/ldc2 doens't have this issue

to reproduce:

```
rdmd --force --eval='writeln(`hello`)'
```

ld: warning: pointer not aligned at address 0x1000BE0B9
(_D53TypeInfo_S3std5array17__T8AppenderTAyaZ8Appender4Data6__initZ +
24 from .rdmd-501/rdmd-eval.....o)

with `--compiler=ldmd2`  there's no error

On Fri, Mar 31, 2017 at 2:06 AM, Adam Wilson via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:
 On 3/30/17 10:47 PM, H. S. Teoh via Digitalmars-d-learn wrote:
 On Fri, Mar 31, 2017 at 04:41:10AM +0000, Joel via Digitalmars-d-learn
 wrote:
 Linking...
 ld: warning: pointer not aligned at address 0x10017A4C9
 (_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from
 .dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
 ...

 and this goes on forever!
More information, please. What was the code you were trying to compile? What compile flags did you use? Which compiler? T
I see this on OSX as well. Any code referencing Phobos appears to produce this. It appear after updating the XCode command line tools. It does not appear to effect program execution, but the pages of warnings are really quite annoying. DMD 2.073.2 -- Adam Wilson IRC: LightBender import quiet.dlang.dev;
Apr 02 2017
prev sibling parent reply Jon Degenhardt <jond noreply.com> writes:
On Friday, 31 March 2017 at 04:41:10 UTC, Joel wrote:
 Linking...
 ld: warning: pointer not aligned at address 0x10017A4C9 
 (_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from 
 .dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
 ...

 and this goes on forever!
Issue: https://issues.dlang.org/show_bug.cgi?id=17289
Apr 02 2017
parent Mogaki <6889idso jcom.home.ne.jp> writes:
On Sunday, 2 April 2017 at 19:00:30 UTC, Jon Degenhardt wrote:
 On Friday, 31 March 2017 at 04:41:10 UTC, Joel wrote:
 Linking...
 ld: warning: pointer not aligned at address 0x10017A4C9 
 (_D30TypeInfo_AxS3std4file8DirEntry6__initZ + 16 from 
 .dub/build/application-debug-posix.osx-x86_64-dmd_2072-EFDCDF4D45F944F7A9B1AEA5C32F81ED/spellit.o)
 ...

 and this goes on forever!
Issue: https://issues.dlang.org/show_bug.cgi?id=17289
Add -L-w to DFLAGS in dmd.conf to suppress all warning messages of 'ld'
Apr 08 2017