Duplicated symbols?
IngwiePhoenix opened this issue · comments
I highly assume this is on my end. But I have no idea where to start with this.
While trying to compile using the latest VitaSDK, this happened:
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR1':
pfs.c:(.data+0x0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x10): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x0): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x18): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x408): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x400): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x418): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x0): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25a0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25b0): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25b8): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR0':
browser.c:(.bss+0x0): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x10): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x18): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x28): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/coredump.c.obj:(.bss+0x0): multiple definition of `SCE_Rel'; CMakeFiles/VitaShell.dir/archive.c.obj:archive.c:(.bss+0x498): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/elf.c.obj:(.bss+0x0): multiple definition of `SCE_Rel'; CMakeFiles/VitaShell.dir/archive.c.obj:archive.c:(.bss+0x498): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/VitaShell.dir/build.make:1368: VitaShell] Error 1
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/VitaShell.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Any idea? Thanks :)
Same behaviour here:
leonardo@manauara:/media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build$ make
[ 2%] Built target usbdevice
[ 3%] Built target usbdevice.skprx
[ 4%] Built target kernel
[ 6%] Built target kernel.skprx
[ 6%] Building stubs vitashell_kernel_stubs
[ 7%] Built target vitashell_kernel_stubs
[ 7%] Linking C executable user
[ 8%] Built target user
[ 9%] Generating imports YAML for user
[ 10%] Building stubs vitashell_user_stubs
[ 10%] Built target vitashell_user_stubs
[ 11%] Converting to Sony ELF user.velf
[ 12%] Creating SELF user.suprx
[ 12%] Built target user.suprx
[ 13%] Built target patch
[ 14%] Built target patch.skprx
[ 14%] Building resource /media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build/modules/usbdevice/usbdevice.skprx.o
[ 14%] Building resource /media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build/modules/kernel/kernel.skprx.o
[ 15%] Building resource /media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build/modules/user/user.suprx.o
[ 16%] Building resource /media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build/modules/patch/patch.skprx.o
[ 17%] Linking C executable VitaShell
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR1':
pfs.c:(.data+0x0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x10): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x0): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/pfs.c.obj: in function `.LANCHOR0':
pfs.c:(.bss+0x18): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x408): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x400): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x418): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/main_context.c.obj: in function `.LANCHOR2':
main_context.c:(.bss+0x0): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25a0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25b0): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR4':
browser.c:(.bss+0x25b8): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/browser.c.obj: in function `.LANCHOR0':
browser.c:(.bss+0x0): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x0): multiple definition of `known_pfs_ids'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x950): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x10): multiple definition of `read_only'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x960): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x18): multiple definition of `pfs_mount_point'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x968): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/refresh.c.obj:(.bss+0x28): multiple definition of `pfs_mounted_path'; CMakeFiles/VitaShell.dir/main.c.obj:main.c:(.bss+0x138): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/coredump.c.obj:(.bss+0x0): multiple definition of `SCE_Rel'; CMakeFiles/VitaShell.dir/archive.c.obj:archive.c:(.bss+0x498): first defined here
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: CMakeFiles/VitaShell.dir/elf.c.obj:(.bss+0x0): multiple definition of `SCE_Rel'; CMakeFiles/VitaShell.dir/archive.c.obj:archive.c:(.bss+0x498): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/VitaShell.dir/build.make:1368: VitaShell] Erro 1
make[1]: *** [CMakeFiles/Makefile2:326: CMakeFiles/VitaShell.dir/all] Erro 2
make: *** [Makefile:84: all] Erro 2
leonardo@manauara:/media/leonardo/Storage/leonardo/PSVita/Development/VitaShell/build$