Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to process gcc 10.1.0 stdint.h #265

Open
Laeeth opened this issue Jun 22, 2020 · 2 comments
Open

unable to process gcc 10.1.0 stdint.h #265

Laeeth opened this issue Jun 22, 2020 · 2 comments
Labels
can't reproduce incomplete Needs more information

Comments

@Laeeth
Copy link

Laeeth commented Jun 22, 2020

(ldc-1.21.0)➜  libzfs-core git:(master) ✗ dub build                                                                     git:(master|…
WARNING: A deprecated branch based version specification is used for the dependency taggedalgebraic. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Running pre-generate commands for libzfs-core-d...
/tank3/data/symmetry/develop/SIL-zfs/libzfs-core /tank3/data/symmetry/develop/SIL-zfs/libzfs-core
Error: Error parsing '/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/include/stdint.h':
error: typedef redefinition with different types ('short' vs 'unsigned short')
error: typedef redefinition with different types ('int' vs 'unsigned int')
error: typedef redefinition with different types ('long long' vs 'unsigned long long')
error: unknown type name '_'
error: expected identifier or '('
Command failed with exit code 1: pushd /tank3/data/symmetry/develop/SIL-zfs/libzfs-core && d++ --preprocess-only --include-path include/libzfs --include-path include source/symmetry/api/libzfs_core.dpp && popd
(ldc-1.21.0)➜  libzfs-core git:(master) ✗ git remote show origin                                                        git:(master|…
* remote origin
  Fetch URL: ssh://[email protected]:1022/integrate/libzfs-core.git
@atilaneves
Copy link
Owner

I can't reproduce this. I just tried this:

// oops.dpp
#include <stdint.h>

And it worked fine. My gcc is also gcc 10.1.0.

I also cloned libzfs-core and dub build worked. I opened dub.sdl to see what was going on and uncommented d++ actually running after fixing the preGenerateCommands to the below:

preGenerateCommands "d++ --preprocess-only --include-path $PACKAGE_DIR/include/libzfs --include-path $PACKAGE_DIR/include source/symmetry/api/libzfs_core.dpp

No errors. I noticed that the version of dpp listed as a dependency (and it shouldn't, there should probably be a dub fetch instead in the preGenerateCommands) is 0.2.3. That is very old. It's possible that version had an issue. The current doesn't seem to.

@atilaneves atilaneves added can't reproduce incomplete Needs more information labels Jun 23, 2020
@Laeeth
Copy link
Author

Laeeth commented Jun 23, 2020

I tried dpp master. Git pull and my d++ is symlinked to the built executable. I will try again shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't reproduce incomplete Needs more information
Projects
None yet
Development

No branches or pull requests

2 participants