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

使用 wsl2 build 失败 #16

Closed
Chanyon opened this issue Jul 1, 2023 · 2 comments
Closed

使用 wsl2 build 失败 #16

Chanyon opened this issue Jul 1, 2023 · 2 comments

Comments

@Chanyon
Copy link
Contributor

Chanyon commented Jul 1, 2023

build

nature-lang.org/docs
cmake -B build-release -DCMAKE_TOOLCHAIN_FILE=$(pwd)/cmake/linux-amd64-toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCPACK_OUTPUT_FILE_PREFIX=$(pwd)/release

cmake --build build-release

/src/binary/elf/linker.c.obj:(.bss+0x58): first defined here
/usr/bin/ld: CMakeFiles/nature.dir/utils/type.c.obj:(.bss+0x60): multiple definition of `ct_symdef_size'; CMakeFiles/nature.dir/src/binary/elf/linker.c.obj:(.bss+0x60): first defined here
/usr/bin/ld: CMakeFiles/nature.dir/utils/type.c.obj:(.bss+0x68): multiple definition of `rt_rtype_ptr'; CMakeFiles/nature.dir/src/binary/elf/linker.c.obj:(.bss+0x68): first defined here
/usr/bin/ld: CMakeFiles/nature.dir/utils/type.c.obj:(.bss+0x70): multiple definition of `rt_fndef_ptr'; CMakeFiles/nature.dir/src/binary/elf/linker.c.obj:(.bss+0x70): first defined here
/usr/bin/ld: CMakeFiles/nature.dir/utils/type.c.obj:(.bss+0x78): multiple definition of `rt_symdef_ptr'; CMakeFiles/nature.dir/src/binary/elf/linker.c.obj:(.bss+0x78): first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/nature.dir/build.make:721: nature] Error 1
gmake[2]: Leaving directory '/home/projects/nature/build-release'
gmake[1]: *** [CMakeFiles/Makefile2:221: CMakeFiles/nature.dir/all] Error 2
gmake[1]: Leaving directory '/home/projects/nature/build-release'
gmake: *** [Makefile:166: all] Error 2
@weiwenhao
Copy link
Member

What is the version of gcc, I ran into this issue in gcc11, will be fixed in version 0.4.0-beta

@Chanyon
Copy link
Contributor Author

Chanyon commented Sep 14, 2023

What is the version of gcc, I ran into this issue in gcc11, will be fixed in version 0.4.0-beta

gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0

@Chanyon Chanyon closed this as completed Sep 28, 2023
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

2 participants