Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926875 - gnustep-base/libobjc2-2.2 fails tests with optimization levels above -O0
Summary: gnustep-base/libobjc2-2.2 fails tests with optimization levels above -O0
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords: TESTFAILURE
: 946811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-13 07:45 UTC by Agostino Sarubbo
Modified: 2025-02-27 17:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,304.57 KB, text/plain)
2024-03-13 07:45 UTC, Agostino Sarubbo
Details
1-LastTest.log (1-LastTest.log,125.88 KB, text/plain)
2024-03-13 07:45 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-13 07:45:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: gnustep-base/libobjc2-2.2 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-13 07:45:23 UTC
Created attachment 887500 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-13 07:45:24 UTC
Created attachment 887501 [details]
1-LastTest.log

1-LastTest.log
Comment 3 Agostino Sarubbo gentoo-dev 2024-03-13 07:45:25 UTC
Error(s) that match a know pattern:


	173 - CXXExceptions (Subprocess aborted)
	175 - CXXExceptions_legacy (Subprocess aborted)
	181 - ObjCXXEHInterop (Subprocess aborted)
	182 - ObjCXXEHInterop_optimised (Subprocess aborted)
	183 - ObjCXXEHInterop_legacy (Subprocess aborted)
	184 - ObjCXXEHInterop_legacy_optimised (Subprocess aborted)
	185 - ObjCXXEHInteropTwice (Subprocess aborted)
	186 - ObjCXXEHInteropTwice_optimised (Subprocess aborted)
	187 - ObjCXXEHInteropTwice_legacy (Subprocess aborted)
	188 - ObjCXXEHInteropTwice_legacy_optimised (Subprocess aborted)
	189 - ObjCXXEHInterop_arc (Subprocess aborted)
	190 - ObjCXXEHInterop_arc_optimised (Subprocess aborted)
Comment 4 Bernard Cafarelli gentoo-dev 2024-03-13 08:13:20 UTC
Sigh, these passed manually here, let me check these
Comment 5 Alfred Wingate 2025-02-27 17:13:51 UTC
This appears to occur with optimizations levels above -O0.

$ rm -rf build && CC="clang" CXX="clang++" CFLAGS="-O1" CXXFLAGS="-O1" cmake -B build -DTESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja -DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND 1>/dev/null && cmake --build build -j12 1>/dev/null && /home/ask/sources/libobjc2/build/Test/CXXExceptions
Aborted (core dumped)

Success

$ rm -rf build && CC="clang" CXX="clang++" CFLAGS="-O1" CXXFLAGS="-O1" cmake -B build -DTESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja -DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND 1>/dev/null && cmake --build build -j12 1>/dev/null && /home/ask/sources/libobjc2/build/Test/CXXExceptions
Aborted (core dumped)
Comment 6 Alfred Wingate 2025-02-27 17:15:22 UTC
(In reply to Alfred Wingate from comment #5)
> $ rm -rf build && CC="clang" CXX="clang++" CFLAGS="-O1" CXXFLAGS="-O1" cmake
> -B build -DTESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
> -DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND 1>/dev/null && cmake --build build
> -j12 1>/dev/null && /home/ask/sources/libobjc2/build/Test/CXXExceptions
> Aborted (core dumped)
> 
> Success

$ rm -rf build && CC="clang" CXX="clang++" CFLAGS="-O0" CXXFLAGS="-O0" cmake -B build -DTESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja - DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND 1>/dev/null && cmake --build build -j12  1>/dev/null && /home/ask/sources/libobjc2/build/Test/CXXExceptions

Success

Copypaste failing me...
Comment 7 Alfred Wingate 2025-02-27 17:22:55 UTC
*** Bug 946811 has been marked as a duplicate of this bug. ***