Opened 8 weeks ago

Last modified 8 weeks ago

#16083 new bug

tests relying on <iostream> are broken on Mojave builder

Reported by: bgamari Owned by:
Priority: normal Milestone:
Component: Compiler Version: 8.6.3
Keywords: Cc:
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by bgamari)

It appears that something has changed in the Darwin toolchain such that <iostream> is no longer found by default:

cd "driver/recomp001/recomp001.run" && $MAKE -s --no-print-directory recomp001  
Compile failed (exit code 1) errors were:
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

objcpp-hi.mm:2:9: error:  fatal error: 'iostream' file not found
#import <iostream>
        ^~~~~~~~~~
1 warning and 1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)

*** unexpected failure for objcpp-hi(normal)

Compile failed (exit code 1) errors were:
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

/var/folders/pb/c3dc08v12yzc536lnrnngvd40000gq/T/ghc56064_0/ghc_2.cpp:1:10: error:
     fatal error: 'iostream' file not found
#include <iostream>
         ^~~~~~~~~~
1 warning and 1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)

*** unexpected failure for T13366(normal)

Marking as broken.

Change History (4)

comment:1 Changed 8 weeks ago by bgamari

Description: modified (diff)
Summary: objcpp-hi test appears to be broken on Mojave buildertests relying on <iostream> in Objective C++ are broken on Mojave builder

T13366 is also affected.

comment:2 Changed 8 weeks ago by bgamari

Summary: tests relying on <iostream> in Objective C++ are broken on Mojave buildertests relying on <iostream> are broken on Mojave builder

It looks like T13366 is just standard C++, not Objective C++.

Something appears to be very wrong here.

comment:3 Changed 8 weeks ago by Ben Gamari <ben@…>

In 1c0c5e8/ghc:

testsuite: Mark objcpp-hi and T13366 as broken on Darwin due to #16083

comment:4 Changed 8 weeks ago by carter

Hey Ben: have you tried running the tests explicitly with cc set to clang ? They’ve generally passed for me with clang

Note: See TracTickets for help on using tickets.