x86 build failure : __sync_sub_and_fetch_4
Dagobert Michelsen
dam at opencsw.org
Wed Dec 16 16:28:15 CET 2015
Hi Riccardo,
Am 16.12.2015 um 14:16 schrieb Dagobert Michelsen <dam at opencsw.org>:
> Am 16.12.2015 um 12:05 schrieb Riccardo Mottola <rmottola at opencsw.org>:
>> Dagobert Michelsen wrote:
>>> It should be possible. Did you try?
>>
>> I have this patch:
>>
>> Index: Makefile
>> ===================================================================
>> --- Makefile (revision 25431)
>> +++ Makefile (working copy)
>> @@ -71,6 +71,8 @@
>> PACKAGING_PLATFORMS += solaris10-sparc
>> PACKAGING_PLATFORMS += solaris10-i386
>>
>> +ISA_DEFAULT_i386-5.9 = pentium_pro
>> +
>> #PATCHFILES += 0001-configure-tweak-align.patch
>> #PATCHFILES += 0002-timezone.patch
>>
>> when I ussue mgar configure build, during compilation I see:
>>
>> /opt/csw/bin/gcc-4.6 NSObjCRuntime.m -c \
>> -MMD -MP -I/opt/csw/GNUstep/include -I/opt/csw/include -DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"ix86\" -DGNUSTEP_TARGET_OS=\"solaris2.9\" -DGNUSTEP_IS_FLATTENED=\"yes\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -DGNUSTEP_BASE_INTERNAL=1 -Wall -Wdeclaration-after-statement -Wcast-align -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fpic -fPIC -std=gnu99 -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -mtune=i686 -O2 -pipe -m32 -march=i386 -fgnu-runtime -fgnu-runtime -fconstant-string-class=NSConstantString -I../Headers -I./. -I. -I/home/rmottola/GNUstep/Library/Headers -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/System/Library/Headers -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/System/Library/Headers -I/opt/csw/lib/libffi-3.2.1/include -I/opt/csw/include/libxml2 -I/opt/csw/include \
>> -o obj/libgnustep-base.obj/NSObjCRuntime.m.o
>>
>> clearly i386 is still issued.
>
> Please commit what you have and let me know the PATH in the GAR tree so I can have a look.
It works for me, you can verify with „mgar modenv“:
> dam at unstable9x :/home/dam/mgar/pkg/gnustep-base/trunk > mgar modenv
> Platforms: solaris9-sparc solaris9-i386 solaris10-sparc solaris10-i386
> Arch: i386
> Kernel: i386
>
> Default ISA 32: pentium_pro
> Default ISA 64: amd64
>
> Requested ISAs: sparcv8 pentium_pro
> Needed ISAs: pentium_pro
> Build ISAs: pentium_pro
>
> ISAEXEC dirs:
> ISAEXEC files:
>
> Merge include:
> Merge exclude: /opt/csw/share/info/dir /opt/csw/lib/.*\.la .*\~ /opt/csw/lib/.*\.a
>
> Modulators: ISA
> Modulations: isa-pentium_pro
>
> Requested compiler flags:
>
> * Modulation isa-pentium_pro: ISA=pentium_pro
> Build Host = unstable9x
> PATH = /home/dam/mgar/pkg/gnustep-base/trunk/work/solaris9-i386/install-isa-pentium_pro/opt/csw/bin:/home/dam/mgar/pkg/gnustep-base/trunk/work/solaris9-i386/install-isa-pentium_pro/opt/csw/bin:/home/dam/mgar/pkg/gnustep-base/trunk/work/solaris9-i386/install-isa-pentium_pro/opt/csw/sbin:/home/dam/mgar/pkg/gnustep-base/trunk/work/solaris9-i386/install-isa-pentium_pro/opt/csw/sbin:/opt/csw/bin:/opt/csw/bin:/opt/csw/sbin:/opt/csw/sbin:/opt/csw/bin:/home/dam/mgar/pkg/.buildsys/v2/gar/bin:/usr/bin:/usr/sbin:/usr/java/bin:/usr/ccs/bin:/usr/openwin/bin
> PKG_CONFIG_PATH = /opt/csw/lib/pkgconfig
> CFLAGS = -O2 -pipe -m32 -march=pentiumpro
> CXXFLAGS = -O2 -pipe -m32 -march=pentiumpro
> CPPFLAGS = -I/opt/csw/include
> FFLAGS = -O2 -pipe -m32 -march=pentiumpro
> FCFLAGS = -O2 -pipe -m32 -march=pentiumpro
> LDFLAGS = -m32 -march=pentiumpro -L/opt/csw/lib
> LD_OPTIONS = -R/opt/csw/GNUstep/System/Library/Libraries/$ISALIST -R/opt/csw/GNUstep/System/Library/Libraries -R/opt/csw/lib/$ISALIST -R/opt/csw/lib -B direct -z ignore
> ASFLAGS =
> OPTFLAGS = -O2 -pipe -m32 -march=pentiumpro
> Merge Scripts:
> Merge Targets: merge-copy-all
Maybe you have an undetected „include category.mk“ early in your Makefile?
Best regards
— Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20151216/3f26c4a7/attachment.asc>
More information about the maintainers
mailing list