Bug 253767 - games/libretro-paralleln64: build success
Summary: games/libretro-paralleln64: build success
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-22 16:56 UTC by tigersharke
Modified: 2021-05-22 07:16 UTC (History)
1 user (show)

See Also:
menelkir: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tigersharke 2021-02-22 16:56:04 UTC
I'm pleased to report that this port does now build with no changes to the Makefile than to comment-out the 'Broken' following .if ${GCC_DEFAULT} >= 10 conditional. Below are details from success.

# pkg info libretro-paralleln64

libretro-paralleln64-0.20201129
Name           : libretro-paralleln64
Version        : 0.20201129
Installed on   : Mon Feb 22 10:39:11 2021 CST
Origin         : games/libretro-paralleln64
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : games
Licenses       : GPLv3, GPLv2, MIT, GFDL, ZLIB, LGPL3, CC0-1.0, BITSTREAM_VERA
Maintainer     : menelkir@itroll.org
WWW            : https://github.com/libretro/parallel-n64
Comment        : Improved Nintendo 64 core for libretro
Shared Libs required:
        libGL.so.1
Annotations    :
        FreeBSD_version: 1300500
Flat size      : 2.27MiB
Description    :
Improved Nintendo 64 core for libretro.

WWW: https://github.com/libretro/parallel-n64

# clang --version
FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

# gcc --version
gcc (FreeBSD Ports Collection) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2021-02-22 17:10:37 UTC
The line probably needs to be gated on CHOSEN_COMPILER=gcc.  I'll test it.
Comment 2 canardo 2021-05-22 07:16:16 UTC
Unfortunately, build fails on FreeBSD 13.0-RELEASE powerpc 32 bit running on Apple Powerbook 17".

:/usr/ports/games/libretro-paralleln64 # uname -a
FreeBSD g41713 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:40:01 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc/sys/GENERIC  powerpc


Error is

./glide2gl/src/Glide64/Glide64_UCode.o ./glide2gl/src/Glide64/glide64_gSP.o ./glide2gl/src/Glide64/glide64_gDP.o ./glide2gl/src/Glide64/Combine.o ./glide2gl/src/Glide64/TexCache.o ./glide2gl/src/Glide64/MiClWr.o ./glide2gl/src/Glide64/TexLoad.o ./glide2gl/src/Glide64/glide64_rdp.o ./glide2gl/src/Glitch64/glitch64_combiner.o ./glide2gl/src/Glitch64/geometry.o ./glide2gl/src/Glitch64/glitchmain.o ./glide2gl/src/Glitch64/glitch64_textures.o ./mupen64plus-video-angrylion/interface.o ./mupen64plus-video-angrylion/n64video.o ./libretro-common/glsym/glsym_gl.o ./libretro-common/glsym/rglgen.o   -fstack-protector-strong  -shared -Wl,--no-undefined -Wl,--version-script=./libretro/link.T -lpthread -lm -fPIC  -lGL -L/usr/local/lib
ld: error: undefined symbol: dyna_start
>>> referenced by r4300.c
>>>               ./mupen64plus-core/src/r4300/r4300.o:(r4300_init)
>>> referenced by r4300.c
>>>               ./mupen64plus-core/src/r4300/r4300.o:(r4300_execute)

ld: error: undefined symbol: init_assembler
>>> referenced by recomp.c
>>>               ./mupen64plus-core/src/r4300/recomp.o:(init_block)
>>> referenced by recomp.c
>>>               ./mupen64plus-core/src/r4300/recomp.o:(recompile_block)

ld: error: undefined symbol: free_assembler
>>> referenced by recomp.c
>>>               ./mupen64plus-core/src/r4300/recomp.o:(init_block)
>>> referenced by recomp.c
>>>               ./mupen64plus-core/src/r4300/recomp.o:(recompile_block)

ld: error: undefined symbol: passe2
>>> referenced by recomp.c
>>>               ./mupen64plus-core/src/r4300/recomp.o:(recompile_block)

ld: error: undefined symbol: __mftb
>>> referenced by features_cpu.c
>>>               ./libretro-common/features/features_cpu.o:(cpu_features_get_perf_counter)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [Makefile:980: parallel_n64_libretro.so] Error 1
gmake[1]: Leaving directory '/usr/ports/games/libretro-paralleln64/work/parallel-n64-6e26fbb'
===> Compilation failed unexpectedly.


Should I open a new bug ?