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

complie error #382

Open
Hello-lingu opened this issue Jan 1, 2025 · 2 comments
Open

complie error #382

Hello-lingu opened this issue Jan 1, 2025 · 2 comments

Comments

@Hello-lingu
Copy link

No description provided.

@Hello-lingu
Copy link
Author

❯ ./release.sh
Warning
Warning ## Warning for package serve-d, configuration unittest-optimized ##
Warning
Warning The following compiler flags have been specified in the package description
Warning file. They are handled by DUB and direct use in packages is discouraged.
Warning Alternatively, you can set the DFLAGS environment variable to pass custom flags
Warning to the compiler, or use one of the suggestions below:
Warning
Warning debugInfo: Call DUB with --build=debug
Warning optimize: Call DUB with --build=release
Warning unittests: Call DUB with --build=unittest
Warning
Warning Warning: License in sub-package dcd:dsymbol is different than its parent package, this is discouraged.
Starting Performing "release" build using ldc2 for x86_64.
Up-to-date diet-complete 0.0.3: target for configuration [library] is up to date.
Up-to-date emsi_containers 0.9.0: target for configuration [library] is up to date.
Up-to-date fuzzymatch 1.0.0: target for configuration [library] is up to date.
Up-to-date libddoc:common 0.8.0: target for configuration [library] is up to date.
Up-to-date libdparse 0.23.2: target for configuration [library] is up to date.
Up-to-date libddoc 0.8.0: target for configuration [lib] is up to date.
Up-to-date taggedalgebraic 0.11.23: target for configuration [library] is up to date.
Up-to-date sdlite 1.1.2: target for configuration [library] is up to date.
Up-to-date sdlfmt 0.1.1: target for configuration [library] is up to date.
Up-to-date automem 0.6.10: target for configuration [library] is up to date.
Up-to-date cachetools 0.4.1: target for configuration [library] is up to date.
Up-to-date requests 2.1.3: target for configuration [std] is up to date.
Up-to-date serve-d:http ~master: target for configuration [library] is up to date.
Up-to-date mir-core 1.7.1: target for configuration [library] is up to date.
Up-to-date mir-algorithm 3.22.1: target for configuration [default] is up to date.
Up-to-date mir-cpuid 1.2.11: target for configuration [library] is up to date.
Up-to-date mir-ion 2.3.2: target for configuration [library] is up to date.
Up-to-date serve-d:protocol ~master: target for configuration [library] is up to date.
Up-to-date serve-d:lsp ~master: target for configuration [library] is up to date.
Up-to-date serve-d:serverbase ~master: target for configuration [library] is up to date.
Up-to-date dfmt 0.15.1: target for configuration [library] is up to date.
Up-to-date dcd:dsymbol 0.16.0-beta.2: target for configuration [library] is up to date.
Up-to-date inifiled 1.3.3: target for configuration [library-quiet] is up to date.
Up-to-date dscanner 0.16.0-beta.4: target for configuration [library] is up to date.
Up-to-date dub 1.38.0-beta.1: target for configuration [library] is up to date.
Up-to-date msgpack-d 1.0.5: target for configuration [default] is up to date.
Up-to-date dcd:common 0.16.0-beta.2: target for configuration [library] is up to date.
Up-to-date serve-d:dcd ~master: target for configuration [library] is up to date.
Up-to-date isfreedesktop 0.1.1: target for configuration [library] is up to date.
Up-to-date xdgpaths 0.2.5: target for configuration [library] is up to date.
Up-to-date standardpaths 0.8.2: target for configuration [default] is up to date.
Up-to-date serve-d:workspace-d ~master: target for configuration [library] is up to date.
Building serve-d ~master: building configuration [executable]
source/served/commands/code_actions.d(126,10): Error: found : when expecting )
source/served/commands/code_actions.d(126,12): Error: semicolon expected following auto declaration, not "Organize All Imports"
source/served/commands/code_actions.d(131,4): Error: found ) when expecting ; following statement
source/served/commands/code_actions.d(131,4): Error: found ) instead of statement
source/served/commands/code_actions.d(165,17): Error: found : when expecting )
source/served/commands/code_actions.d(165,19): Error: semicolon expected following auto declaration, not TextDocumentIdentifier
source/served/commands/code_actions.d(166,13): Error: found : when expecting ; following statement
source/served/commands/code_actions.d(167,4): Error: found ) when expecting ; following statement
source/served/commands/code_actions.d(167,4): Error: found ) instead of statement
source/served/commands/code_actions.d(179,15): Error: found : when expecting )
source/served/commands/code_actions.d(179,17): Error: found opt when expecting )
source/served/commands/code_actions.d(180,6): Error: found ) when expecting ,
source/served/commands/code_actions.d(180,7): Error: expression expected, not )
source/served/commands/code_actions.d(181,5): Error: key:value expected for associative array literal
Error ldc2 failed with exit code 1.

@Hello-lingu Hello-lingu changed the title some code code error Jan 1, 2025
@Hello-lingu Hello-lingu changed the title code error complie error Jan 1, 2025
@Hello-lingu
Copy link
Author

I try all D compile, as the result, dmd finish complie.
But I has some problem,
release.sh

#!/bin/sh
dub build --compiler=ldc2 --build=release --arch=x86_64 || exit 1
strip serve-d
VERSION=$(./serve-d --version 2>&1 | grep -oh "serve-d standalone v[0-9]*\.[0-9]*\.[0-9]*" | sed "s/serve-d standalone v//")
echo $VERSION > version.txt
echo $VERSION
tar cfJ serve-d_$VERSION-linux-x86_64.tar.xz serve-d
tar czf serve-d_$VERSION-linux-x86_64.tar.gz serve-d

Why the script use ldc2 to compile?
Note Monitor the memory when you compile.

@Hello-lingu Hello-lingu reopened this Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant