Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836382 - dev-lang/ocaml-4.14.0 llvm-as: /var/tmp/portage/dev-lang/ocaml-4.14.0/temp/camlasm551f7a.s:1:2: error: expected top-level entity when using llvm-as
Summary: dev-lang/ocaml-4.14.0 llvm-as: /var/tmp/portage/dev-lang/ocaml-4.14.0/temp/ca...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-29 21:39 UTC by Alessandro Barbieri
Modified: 2022-04-02 21:17 UTC (History)
1 user (show)

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


Attachments
emerge_info (emerge_info,36.43 KB, text/plain)
2022-03-29 21:39 UTC, Alessandro Barbieri
Details
ocaml-4.14.0:20220329-192900.log.xz (ocaml-4.14.0:20220329-192900.log.xz,30.55 KB, application/x-xz)
2022-03-29 21:39 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2022-03-29 21:39:03 UTC
This package fails to build on an unstable system. Attached relevant logs and emerge --info
Comment 1 Alessandro Barbieri 2022-03-29 21:39:08 UTC
Created attachment 768166 [details]
emerge_info

emerge --info
Comment 2 Alessandro Barbieri 2022-03-29 21:39:10 UTC
Created attachment 768167 [details]
ocaml-4.14.0:20220329-192900.log.xz

build log (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Mark Wright gentoo-dev 2022-03-30 13:21:41 UTC
Thanks for the report. It compiles if I unset AS and ASPP in src_configure:

	unset AS
	unset ASPP
	econf "${opt[@]}"

Or the user could unset these by say creating a file:

/etc/portage/env/unset-AS-unset-ASPP

containing:

unset AS
unset ASPP

and in /etc/portage/package.env:

dev-lang/ocaml unset-AS-unset-ASPP
Comment 4 Alessandro Barbieri 2022-03-30 14:28:06 UTC
> Or the user could unset these by say creating a file:
> 
> /etc/portage/env/unset-AS-unset-ASPP
> 
> containing:
> 
> unset AS
> unset ASPP
> 
> and in /etc/portage/package.env:
> 
> dev-lang/ocaml unset-AS-unset-ASPP

Have you tried this?

As I have said in other bugs, you can't unset variables in /etc/portage/package.env
Comment 5 12101111 2022-04-01 09:28:30 UTC
AS="llvm-as" is wrong. llvm-as can only process LLVM IR as the help say:

llvm-as --help
OVERVIEW: llvm .ll -> .bc assembler

You can try AS="clang" instead.