Emulator Issues #1150
closedOS X Build-scons: building terminated because of errors- Atomic_GCC.h related
0%
Description
What steps will reproduce the problem?
- entered cd dolphin-emu-read-only then scons in terminal after successfully completing
previous steps for OS X 32-bit build
2.
3.
What is the expected output? What do you see instead?
scons: Reading SConscript files ...
Checking for pkg-config version > 0.15.0... (cached) yes
Looking for macports... (cached) Adding port lib and include path(cached) yes
Looking for fink... (cached) no
Checking for sdl lib version > 1.0.0... (cached) yes
Checking for bluez... (cached)
Looking for framework bluez... (cached)
Using pkg-config for bluez... (cached) no
Looking for lib bluez... (cached) no
Checking for ao... (cached)
Looking for framework ao... (cached)
Using pkg-config for ao... (cached) yes
Checking for openal... (cached)
Looking for framework openal... (cached) yes
Checking for sfml-network... (cached)
Looking for framework sfml-network... (cached)
Using pkg-config for sfml-network... (cached) no
Looking for lib sfml-network... (cached) no
Checking for wxWidgets >= 2.8... (cached) yes
Checking for OpenGL... (cached)
Looking for framework OpenGL... (cached) yes
Checking for Cg... (cached)
Looking for framework Cg... (cached) yes
Checking for GLEW... (cached)
Looking for framework GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
Plugin_PadSimpleEvnt Doesn't work without testgl
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Darwin-i386-release
Compiling Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicAdd(volatile u32&,
u32)':
Source/Core/Common/Src/Atomic_GCC.h:41: error: '__sync_add_and_fetch' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicIncrement(volatile
u32&)':
Source/Core/Common/Src/Atomic_GCC.h:45: error: '__sync_add_and_fetch' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'u32 Common::AtomicLoadAcquire(volatile
u32&)':
Source/Core/Common/Src/Atomic_GCC.h:52: error: '__sync_synchronize' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void
Common::AtomicStoreRelease(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:60: error: '__sync_lock_test_and_set' was not declared
in this scope
scons: *** [Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o] Error 1
scons: building terminated because of errors.
What version of the product are you using? On what operating system?
OS-I'm using OS X 10.5.7
scons-v1.2.0.r3842
xcode-3.1.2
Please provide any additional information below.
I'm using a 15" MacBook Pro that's only a few days old.(I don't know if that's relevant)
Any addition information you need just ask. Please help.
Thanks in advance.
Updated by shaneooconnor over 15 years ago
Right, the symbols next to it didn't make sense to me. "(&&%" ?
I thought it meant something.
Updated by Anonymous over 15 years ago
it meant expletive deleted.
the issue you duplicated was about an INCH above where this one was....jeez
Updated by celgilles over 15 years ago
If you add the line: #include "Atomic.h" at the top of Source/Core/Core/Src/HW/CommandProcessor.h the
compilation should work. The same error-message will occur with Core.cpp etc. Simply add the Atomic.h header
again (Core.h) etc. At some point you'll need to add #include "Atomic.h" to "Common.h" since it is used in other
Header files too.
It will however stop to compile at AudioCommon.cpp... maybe we need to change the SConscript ....
Updated by shaneooconnor over 15 years ago
Thanks, I'll be sure to try that. I actually got dolphin running on my Windows
partition. Does it run better on Windows XP or OS X? I'd think they're about the same.
Thanks again.
Updated by peter.schwarz over 15 years ago
I tried this, and it works until I get to ActionReplay.h and ARDecrypt.h. At first,
ARDecrypt.o is built fine, but ActionReplay.o fails to build in a similar manner.
Adding the include to ActionReplay.h allows the .o file to build, but then ARDecrypt
fails to build. ARDecrypt.h references ActionReplay.h, so there some sort of
circular dependency here that's causing a problem.
Updated by peter.schwarz over 15 years ago
Since all of the comments on are on this issue, can we reopen this one and close
#1141 as the dup.
Updated by GCNWIIUploader over 15 years ago
@shaneooconnor
It runs much better on windows