Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NetBSD CI job #262

Merged
merged 1 commit into from
Feb 20, 2023
Merged

Add NetBSD CI job #262

merged 1 commit into from
Feb 20, 2023

Conversation

Bodigrim
Copy link
Contributor

@blackgnezdo any idea what's wrong with Cabal?

ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.2.4
cabal --version
cabal-install version 3.6.2.0
compiled using version 3.6.3.0 of the Cabal library 
cabal update
Config file path source is default config file.
Config file //.cabal/config not found.
Writing default configuration to //.cabal/config
Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org is up to date at index-state 
export AUTOCONF_VERSION=2.71
autoreconf -i
cabal test --test-show-details=direct
cabal: Could not read index. Did you call 'checkForUpdates'?

@hasufell
Copy link
Member

$HOME is undefined?

@blackgnezdo
Copy link
Contributor

Hmm, cabal update does anything?

@blackgnezdo
Copy link
Contributor

Hmm, cabal update does anything?

Ah, I can see it was done above.

@blackgnezdo
Copy link
Contributor

blackgnezdo commented Nov 28, 2022

$HOME is undefined?
Yeah, this does seem plausible though I'm surprised about cabal update being so sanguine about it.

These diagnostics indicate HOME=/

% env HOME=/ PATH=$PATH /usr/local/bin/cabal update
Config file path source is default config file.
Config file //.cabal/config not found.
Writing default configuration to //.cabal/config
...

@blackgnezdo
Copy link
Contributor

Cabal issue about this problem is full of suggestions which files in ~/.cabal to remove because people suspect they got broken.

@Bodigrim
Copy link
Contributor Author

It works now:

Common.hsc:292:16: error: use of undeclared identifier 'TAB0'
    hsc_const (TAB0);
               ^
Common.hsc:292:16: error: use of undeclared identifier 'TAB0'
Common.hsc:292:16: error: use of undeclared identifier 'TAB0'
Common.hsc:293:16: error: use of undeclared identifier 'TAB3'
    hsc_const (TAB3);
               ^
Common.hsc:293:16: error: use of undeclared identifier 'TAB3'
Common.hsc:293:16: error: use of undeclared identifier 'TAB3'
Common.hsc:328:16: error: use of undeclared identifier 'TAB0'
    hsc_const (TAB0);
               ^
Common.hsc:328:16: error: use of undeclared identifier 'TAB0'
Common.hsc:328:16: error: use of undeclared identifier 'TAB0'
Common.hsc:329:16: error: use of undeclared identifier 'TAB3'
    hsc_const (TAB3);
               ^
Common.hsc:329:16: error: use of undeclared identifier 'TAB3'
Common.hsc:329:16: error: use of undeclared identifier 'TAB3'
Common.hsc:364:16: error: use of undeclared identifier 'TAB0'
    hsc_const (TAB0);
               ^
Common.hsc:364:16: error: use of undeclared identifier 'TAB0'
Common.hsc:364:16: error: use of undeclared identifier 'TAB0'
Common.hsc:365:16: error: use of undeclared identifier 'TAB3'
    hsc_const (TAB3);
               ^
Common.hsc:365:16: error: use of undeclared identifier 'TAB3'
Common.hsc:365:16: error: use of undeclared identifier 'TAB3'
18 errors generated.

@blackgnezdo could you please make a PR with a fix, based on this branch?

@blackgnezdo
Copy link
Contributor

I'm happy to send a bunch of #ifdef that I used for a bit locally. One thing that happened in the interim is some OpenBSD developers wrote up an OS fix which we are likely see in the next OS release (coming in ~5-months). So, I feel if we merge my hack into unix, it will remain there for eternity. Maybe we should hold on adding the workaround until somebody else wants it?

This should not block the CI setup that you so kindly built. Please land it independently?

@blackgnezdo
Copy link
Contributor

This should not block the CI setup that you so kindly built. Please land it independently?

It naturally occurred to me right away that it's not landable without a solution on either side. Tell me which way you prefer it.

@Bodigrim
Copy link
Contributor Author

Bodigrim commented Nov 30, 2022

I've managed to setup a CI for NetBSD as well. One more reason for #263.

Common.hsc: In function ‘main’:
Common.hsc:292:16: error: ‘TAB0’ undeclared (first use in this function); did you mean ‘B0’?
/usr/pkg/lib/ghc-9.2.1/template-hsc.h:45:10: note: in definition of macro ‘hsc_const’
     if ((x) < 0)                                      \
          ^
Common.hsc:292:16: note: each undeclared identifier is reported only once for each function it appears in
/usr/pkg/lib/ghc-9.2.1/template-hsc.h:45:10: note: in definition of macro ‘hsc_const’
     if ((x) < 0)                                      \
          ^
Common.hsc:293:16: error: ‘TAB3’ undeclared (first use in this function); did you mean ‘TAB0’?
/usr/pkg/lib/ghc-9.2.1/template-hsc.h:45:10: note: in definition of macro ‘hsc_const’
     if ((x) < 0)                                      \```

@Bodigrim Bodigrim changed the title Add OpenBSD CI job Add NetBSD CI job Feb 20, 2023
@Bodigrim Bodigrim marked this pull request as ready for review February 20, 2023 00:17
@Bodigrim Bodigrim merged commit 978e4e7 into haskell:master Feb 20, 2023
@Bodigrim Bodigrim deleted the openbsd branch February 20, 2023 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants