Starry?!
Starry?!2mo ago

Error while building Portal

Welp, this might be one of the first times I'm asking for help in here, currently trying to follow this guide but I'm running into an error when trying to build. Here's the error:
Build failed
-> task in 'tier0' failed with exit status 1:
{task 4394321632: cxx progressbar.cpp -> progressbar.cpp.31.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-fPIC', '-Itier0', '-I../tier0', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-I/usr/local/include', '-I/usr/local/include/SDL2', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DWAF_CFLAGS="[\'-MMD\', \'-fno-strict-aliasing\', \'-fvisibility=hidden\', \'-O2\', \'-funsafe-math-optimizations\', \'-ftree-vectorize\', \'-ffast-math\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DWAF_LDFLAGS="[\'-fvisibility=hidden\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DTIER0_DLL_EXPORT=1', '../tier0/progressbar.cpp', '-c', '-o/Users/starry/source-engine/build/tier0/progressbar.cpp.31.o']
Build failed
-> task in 'tier0' failed with exit status 1:
{task 4394321632: cxx progressbar.cpp -> progressbar.cpp.31.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-fPIC', '-Itier0', '-I../tier0', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-I/usr/local/include', '-I/usr/local/include/SDL2', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DWAF_CFLAGS="[\'-MMD\', \'-fno-strict-aliasing\', \'-fvisibility=hidden\', \'-O2\', \'-funsafe-math-optimizations\', \'-ftree-vectorize\', \'-ffast-math\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DWAF_LDFLAGS="[\'-fvisibility=hidden\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DTIER0_DLL_EXPORT=1', '../tier0/progressbar.cpp', '-c', '-o/Users/starry/source-engine/build/tier0/progressbar.cpp.31.o']
jxhug on Notion
Guide to Installing Portal Using Source Engine on macOS | Notion
guide made by jxhug. video here: if you enjoy the guide please give the video a like :)
65 Replies
Cloudyy
Cloudyy2mo ago
GitHub
fails to build on macos sequoia - error: no member named 'swap' in ...
configure appears to work, then it fails with cryptic C++ errors. I note the repeated occurence of error: no member named 'swap' in 'CUtlBlockMemory<T, I>. Any ideas? james@black-...
Cloudyy
Cloudyy2mo ago
u tried tis yet? :joestandstare: the pr near the end wait holy brainfart 😭
tenshi♡
tenshi♡2mo ago
the king comptia gunvalid will descend soon
Cloudyy
Cloudyy2mo ago
im waiting on him too 🙏 he slacking td smh normally he would show up before the req was made
Foon - The Prettiest Princess
Even people like him who can magically detect requests before they get sent deserve a day off every once in a while
Starry?!
Starry?!OP2mo ago
… cant figure out how to run that… so I got it running... it failed again 😭 who?
Starry?!
Starry?!OP2mo ago
it appears that there are even more errors
Starry?!
Starry?!OP2mo ago
@ProHacker02 helppppppp
Cloudyy
Cloudyy2mo ago
wym
Starry?!
Starry?!OP2mo ago
I figured out how to run it but this happened
Cloudyy
Cloudyy2mo ago
is that one line changed ?
Starry?!
Starry?!OP2mo ago
installed from the pr
Cloudyy
Cloudyy2mo ago
:thinking1: holon lets ask our overlord ai :joepray:
Starry?!
Starry?!OP2mo ago
😭 who is this?
Cloudyy
Cloudyy2mo ago
No description
Cloudyy
Cloudyy2mo ago
now we wait @comptia guninvalid+ certified 😭 he responds to every support req
Starry?!
Starry?!OP2mo ago
nice
Cloudyy
Cloudyy2mo ago
No description
Starry?!
Starry?!OP2mo ago
:Bruh: Isn't that what the pr does?
Cloudyy
Cloudyy2mo ago
Step-by-Step Fix (Temporary): Open public/tier1/utlblockmemory.h. Locate all lines resembling:
this->swap(variable1, variable2);
this->swap(variable1, variable2);
Replace them with:
std::swap(variable1, variable2);
std::swap(variable1, variable2);
(You might need to add #include <algorithm> at the top of the file if it's not there already.) Retry building. idk vro just try it 😭
Starry?!
Starry?!OP2mo ago
hmmmm, which line?
No description
Starry?!
Starry?!OP2mo ago
failure
Cloudyy
Cloudyy2mo ago
140 | this->swap( m_pMemory, mem.m_pMemory );
std::swap(m_pMemory, mem.m_pMemory); std::swap(m_nBlocks, mem.m_nBlocks); std::swap(m_nIndexMask, mem.m_nIndexMask); std::swap(m_nIndexShift, mem.m_nIndexShift);
replace them all i guess we LOVE vibe coding!
Starry?!
Starry?!OP2mo ago
okay sounds like a bad idea variable1 and two aren't even defined anywhere 😭
Starry?!
Starry?!OP2mo ago
Starry?!
Starry?!OP2mo ago
failure
Cloudyy
Cloudyy2mo ago
what went wrong any error orr
Starry?!
Starry?!OP2mo ago
main error:
Build failed
-> task in 'tier0' failed with exit status 1:
{task 4508944096: cxx progressbar.cpp -> progressbar.cpp.31.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-fPIC', '-Itier0', '-I../tier0', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-I/usr/local/include', '-I/usr/local/include/SDL2', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DWAF_CFLAGS="[\'-MMD\', \'-fno-strict-aliasing\', \'-fvisibility=hidden\', \'-O2\', \'-funsafe-math-optimizations\', \'-ftree-vectorize\', \'-ffast-math\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DWAF_LDFLAGS="[\'-fvisibility=hidden\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DTIER0_DLL_EXPORT=1', '../tier0/progressbar.cpp', '-c', '-o/Users/starry/source-engine/build/tier0/progressbar.cpp.31.o']
Build failed
-> task in 'tier0' failed with exit status 1:
{task 4508944096: cxx progressbar.cpp -> progressbar.cpp.31.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-fPIC', '-Itier0', '-I../tier0', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-I/usr/local/include', '-I/usr/local/include/SDL2', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DWAF_CFLAGS="[\'-MMD\', \'-fno-strict-aliasing\', \'-fvisibility=hidden\', \'-O2\', \'-funsafe-math-optimizations\', \'-ftree-vectorize\', \'-ffast-math\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DWAF_LDFLAGS="[\'-fvisibility=hidden\', \'-pipe\', \'-fPIC\', \'-L/Users/starry/source-engine/lib/darwin/x86_64/\', \'-pthread\', \'-mfpmath=sse\']"', '-DTIER0_DLL_EXPORT=1', '../tier0/progressbar.cpp', '-c', '-o/Users/starry/source-engine/build/tier0/progressbar.cpp.31.o']
guninvalid over coax alliance
nah sorry i dont work with macs :RoverEscape:
Starry?!
Starry?!OP2mo ago
I mean, I would say this is general errors
Cloudyy
Cloudyy2mo ago
did u literally put variable1 and 2 in the file :sobbing: send the file u edited dawg
Starry?!
Starry?!OP2mo ago
yes...
Cloudyy
Cloudyy2mo ago
LOLL sec
Cloudyy
Cloudyy2mo ago
wait holon
Starry?!
Starry?!OP2mo ago
Build failed
-> task in 'tier3' failed with exit status 1:
{task 4564023824: cxx studiohdrstub.cpp -> studiohdrstub.cpp.34.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-Itier3', '-I../tier3', '-Icommon', '-I../common', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-Ipublic/tier1', '-I../public/tier1', '-Ipublic/tier2', '-I../public/tier2', '-Ipublic/tier3', '-I../public/tier3', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '../tier3/studiohdrstub.cpp', '-c', '-o/Users/starry/source-engine/build/tier3/studiohdrstub.cpp.34.o']
Build failed
-> task in 'tier3' failed with exit status 1:
{task 4564023824: cxx studiohdrstub.cpp -> studiohdrstub.cpp.34.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-Itier3', '-I../tier3', '-Icommon', '-I../common', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-Ipublic/tier1', '-I../public/tier1', '-Ipublic/tier2', '-I../public/tier2', '-Ipublic/tier3', '-I../public/tier3', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '../tier3/studiohdrstub.cpp', '-c', '-o/Users/starry/source-engine/build/tier3/studiohdrstub.cpp.34.o']
are we just copy pasting into ai atp?
Cloudyy
Cloudyy2mo ago
yessir!!!
Starry?!
Starry?!OP2mo ago
😭
Cloudyy
Cloudyy2mo ago
try this im stupid ai works if u have infinite time
Cloudyy
Cloudyy2mo ago
for legal reasons
Starry?!
Starry?!OP2mo ago
Build failed
-> task in 'tier3' failed with exit status 1:
{task 4389992976: cxx studiohdrstub.cpp -> studiohdrstub.cpp.34.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-Itier3', '-I../tier3', '-Icommon', '-I../common', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-Ipublic/tier1', '-I../public/tier1', '-Ipublic/tier2', '-I../public/tier2', '-Ipublic/tier3', '-I../public/tier3', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '../tier3/studiohdrstub.cpp', '-c', '-o/Users/starry/source-engine/build/tier3/studiohdrstub.cpp.34.o']
Build failed
-> task in 'tier3' failed with exit status 1:
{task 4389992976: cxx studiohdrstub.cpp -> studiohdrstub.cpp.34.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/starry/source-engine/lib/darwin/x86_64/', '-pthread', '-mfpmath=sse', '-std=c++11', '-fpermissive', '-Itier3', '-I../tier3', '-Icommon', '-I../common', '-Ipublic', '-I../public', '-Ipublic/tier0', '-I../public/tier0', '-Ipublic/tier1', '-I../public/tier1', '-Ipublic/tier2', '-I../public/tier2', '-Ipublic/tier3', '-I../public/tier3', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="29985681-dirty"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '../tier3/studiohdrstub.cpp', '-c', '-o/Users/starry/source-engine/build/tier3/studiohdrstub.cpp.34.o']
Cloudyy
Cloudyy2mo ago
dont use ai to do everything for u kids
Starry?!
Starry?!OP2mo ago
are you telling me "for my kids" or are you accusing me of being a kid?
guninvalid over coax alliance
ive never seen anyone be offended about being called a kid except for actual kids
Cloudyy
Cloudyy2mo ago
neither
Starry?!
Starry?!OP2mo ago
who said I was offended?
Cloudyy
Cloudyy2mo ago
also im the one using it 😢 can u send the full thing like u did here
Cloudyy
Cloudyy2mo ago
also u can run portal on a potato go grab someones laptop and play it on that :crybaby:
Starry?!
Starry?!OP2mo ago
ah yes, let me go steal a laptop
Cloudyy
Cloudyy2mo ago
sorry, borrow* !!
guninvalid over coax alliance
start up a virtualbox vm :LivSip:
Cloudyy
Cloudyy2mo ago
yk stealing a laptop might actually be easier :stare:
Starry?!
Starry?!OP2mo ago
😭
Cloudyy
Cloudyy2mo ago
can u send /public/datamodel/dmattributevar.h 💔
Cloudyy
Cloudyy2mo ago
try tis idk gng 💔 are u sure theres no other pc in ur house
Starry?!
Starry?!OP2mo ago
bump

Did you find this page helpful?