blissroms-x86 (oreo) - clang says sse4.1 error?!

639 views
Skip to first unread message

DANiO

unread,
Oct 5, 2017, 3:18:55 AM10/5/17
to Android-x86
Hi, I'm trying to compile again my custom blissroms'x86 with oreo version, but building step at "libopus" clang says sse4.1 error.
What I did?
- Remove symlink named "clang-stable", the I created a new symlink to the latest developer clang without success.

What I can do with this error?
My PC is fujitsu esprimo released between 2013 and 2014 with Intel CPU 2 cores.

Jon West

unread,
Oct 5, 2017, 4:13:59 PM10/5/17
to Android-x86
The Oreo branches of Bliss-x86 aren't ready yet. I had life get in the way.

DANiO

unread,
Oct 7, 2017, 3:15:02 AM10/7/17
to Android-x86
Ok, but what is the cause?

fguy

unread,
Oct 7, 2017, 5:53:30 AM10/7/17
to Android-x86
Ok, but what is the cause?
 
change in BoardConfig.mk
TARGET_2ND_ARCH_VARIANT := x86_64
Message has been deleted

fguy

unread,
Oct 7, 2017, 8:49:18 AM10/7/17
to Android-x86
Now is good?

Yes - make it 
 
Message has been deleted
Message has been deleted

fguy

unread,
Oct 7, 2017, 3:02:01 PM10/7/17
to Android-x86
how to fix it I do not know. if you want to compile and see how 8.0 works, compile android x86 8.0 with my advice from here https://groups.google.com/d/msg/android-x86/jUAH5OITOs4/448Iile5BQAJ

Jon West

unread,
Oct 8, 2017, 10:53:18 AM10/8/17
to Android-x86
I made some more updates to our o8.0 branch of Bliss-x86. As long as your kernel has the same Linux sources, and the defconfig is correct, you should be good.
I still have not gotten it to boot native though, only using a VM.
Message has been deleted
Message has been deleted

Jon West

unread,
Oct 13, 2017, 10:30:56 AM10/13/17
to Android-x86
Not familiar with zen-kernel for PC...

On Thursday, October 12, 2017 at 11:16:44 AM UTC-4, DANiO wrote:
ah... The kernel source is zen-kernel from master bramch.

Tomasz Witke

unread,
Oct 16, 2017, 12:17:15 AM10/16/17
to Android-x86
Can You explain more? On host I'm using Linux ubuntu 4.10.0-37-generic. What should I do to compile? I have same error:

FAILED: /home/kyvaith/android-x86/out/target/product/pc_x86_64/gen/EXECUTABLES/busybox_intermediates/include/autoconf.h 
/bin/bash -c "(echo -e \"./external/busybox/Android.mk:139: *** test/vts/tools/build/tasks: LOCAL_MODULE_CLASS not defined before call to local-intermediates-dir.\" 2>&1 && false ) && (echo -e \"./external/busybox/Android.mk:139: *** test/vts/tools/build/tasks: Class not defined in call to intermediates-dir-for.\" 2>&1 && false ) && (rm -rf  /home/kyvaith/android-x86/out/target/product/pc_x86_64/obj//talkback_intermediates ) && (mkdir -p /home/kyvaith/android-x86/out/target/product/pc_x86_64/gen/EXECUTABLES/busybox_intermediates/include ) && (( cat external/busybox/busybox-full.config && echo \"CONFIG_CROSS_COMPILER_PREFIX=\\\"/home/kyvaith/android-x86/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-\\\"\" ) > /home/kyvaith/android-x86/out/target/product/pc_x86_64/gen/EXECUTABLES/busybox_intermediates/.config ) && (make -C external/busybox prepare O=/home/kyvaith/android-x86/out/target/product/pc_x86_64/gen/EXECUTABLES/busybox_intermediates )"
./external/busybox/Android.mk:139: *** test/vts/tools/build/tasks: LOCAL_MODULE_CLASS not defined before call to local-intermediates-dir.
[  0% 93/70083] build /home/kyvaith/android-x86/out/target/product/pc_x86_64/system/lib/firmware/ti-connectivity/wl12xx-nvs.bin
Symlink: /home/kyvaith/android-x86/out/target/product/pc_x86_64/system/lib/firmware/ti-connectivity/wl12xx-nvs.bin -> wl127x-nvs.bin
[  0% 95/70083] Ensuring Jack server is installed and started
Jack server already installed in "/home/kyvaith/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/kyvaith/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
ninja: build stopped: subcommand failed.
02:30:22 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/kyvaith/android-x86'
Message has been deleted
Message has been deleted

Tomasz Witke

unread,
Oct 18, 2017, 5:06:04 AM10/18/17
to Android-x86
Thank You, but I see no difference after adding these lines. I have same error, after make clean and building again. I've added it to device/generic/pc_x86_64/BoardConfig.mk

W dniu wtorek, 17 października 2017 18:40:02 UTC+2 użytkownik DANiO napisał:
This is a bug
my way is disabling busybox in BoardConfig.mk by adding:
USE_BUSYBOX := false

and enabling toolbox by adding:
USE_TOOLBOX := true

DANiO

unread,
Oct 24, 2017, 12:39:04 PM10/24/17
to Android-x86
can anyone help?

YoungJoon Lee

unread,
Dec 19, 2017, 6:29:14 AM12/19/17
to Android-x86
I have same error. Did you solve this problem?

2017년 10월 16일 월요일 오후 1시 17분 15초 UTC+9, Tomasz Witke 님의 말:

DANiO

unread,
Dec 22, 2017, 4:05:37 PM12/22/17
to Android-x86
no :(

Mauro Rossi

unread,
Dec 22, 2017, 5:11:32 PM12/22/17
to Android-x86


Il giorno martedì 24 ottobre 2017 18:39:04 UTC+2, DANiO ha scritto:
can anyone help?

Hi, we're not seeing this build error with oreo-x86,

however you could try to avoid evaluating $(local-intermediates-dir) macro at line 140,
by defining a variable BB_INTERMEDIATES to store  $(local-intermediates-dir) value.

Please let me know if it works
Mauro

... 
# Bionic Busybox /system/xbin

include $(CLEAR_VARS)

BUSYBOX_CONFIG:=full
BUSYBOX_SUFFIX:=bionic
LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES)
LOCAL_ASFLAGS := $(BUSYBOX_AFLAGS)
LOCAL_MODULE := busybox
LOCAL_MODULE_TAGS := eng debug
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_SHARED_LIBRARIES := libc libcutils libm
LOCAL_STATIC_LIBRARIES := libclearsilverregex libuclibcrpc libselinux
busybox_autoconf_full_h := $(local-generated-sources-dir)/include/autoconf.h
+BB_INTERMEDIATES := $(local-intermediates-dir)
LOCAL_CFLAGS := $(BUSYBOX_CFLAGS) -include $(busybox_autoconf_full_h)
LOCAL_C_INCLUDES := $(dir $(busybox_autoconf_full_h)) $(BUSYBOX_C_INCLUDES)
LOCAL_GENERATED_SOURCES := $(busybox_autoconf_full_h)
$(busybox_autoconf_full_h): $(BB_PATH)/busybox-full.config
@echo -e ${CL_YLW}"Prepare config for busybox binary"${CL_RST}
- @rm -rf $(dir $($D)) $(local-intermediates-dir)
+ @rm -rf $(dir $($D)) $(BB_INTERMEDIATES)
@mkdir -p $(@D)
$(hide) ( cat $^ && echo "CONFIG_CROSS_COMPILER_PREFIX=\"$(BUSYBOX_CROSS_COMPILER_PREFIX)\"" ) > $(dir $(@D)).config
make -C $(BB_PATH) prepare O=$(abspath $(dir $(@D))) $(BB_PREPARE_FLAGS)

include $(BUILD_EXECUTABLE)

YoungJoon Lee

unread,
Dec 22, 2017, 8:31:08 PM12/22/17
to Android-x86
Thank you for your reply. 

It looks like some make file system is check result of exit status($@) of rm which is related to variables $BB_INTERMEDIATES.

'we're not seeing this build error with oreo-x86' you said. I think my build environment is strange. Now I will check bug report of related packages. Please let me know which package can be related to this issue, If you know. I will trying to check that package intensively.

Thank you for your answer. Best regards.

2017년 12월 23일 토요일 오전 7시 11분 32초 UTC+9, Mauro Rossi 님의 말:

Mauro Rossi

unread,
Dec 23, 2017, 8:16:45 AM12/23/17
to Android-x86
The error is due to LOCAL_MODULE_CLASS not defines when  $(local-intermediates-dir) macro is expanded

Even if LOCAL_MODULE_CLASS is defined at top level of Android.mk
there may conditions leading to not having it defined in the scripting rules for $(busybox_autoconf_full_h):

My distribution is Ubuntu 17.10 64bit, gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0, java openjdk version "1.8.0_151"
and I never had this error with oreo-x86 build or nougat-x86 build

Mauro

Jon West

unread,
Dec 23, 2017, 1:01:45 PM12/23/17
to Android-x86
I added this to Bliss o8.1-x86 for testing. Please let me know how things work out for you. Thanks again Mauro! ;)
https://github.com/BlissRoms-x86/platform_external_busybox/commit/54a0517a10ad10ed82ba595551b5e33470c4da9b

YoungJoon Lee

unread,
Dec 24, 2017, 7:41:30 PM12/24/17
to andro...@googlegroups.com
I can build with this approach.

Thank you very much.

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/ukXJIwNOQ0c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Chih-Wei Huang

unread,
Dec 25, 2017, 3:14:20 AM12/25/17
to Android-x86
Thank you for pointing out the makefile's bug.
The problem is $(local-intermediates-dir) should not
be used in makefiles's recipes.
LOCAL_MODULE/LOCAL_MODULE_CLASS is not
well-defined in the recipes.


2017-12-25 8:41 GMT+08:00 YoungJoon Lee <get...@gmail.com>:
> I can build with this approach.
> Thank you very much.
>
> 2017-12-23 22:16 GMT+09:00 Mauro Rossi <issor...@gmail.com>:
>>
>> The error is due to LOCAL_MODULE_CLASS not defines when
>> $(local-intermediates-dir) macro is expanded
>>
>> Even if LOCAL_MODULE_CLASS is defined at top level of Android.mk
>> there may conditions leading to not having it defined in the scripting
>> rules for $(busybox_autoconf_full_h):
>>
>> My distribution is Ubuntu 17.10 64bit, gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0,
>> java openjdk version "1.8.0_151"
>> and I never had this error with oreo-x86 build or nougat-x86 build
>>
>> Mauro
>>
>> Il giorno sabato 23 dicembre 2017 02:31:08 UTC+1, YoungJoon Lee ha
>> scritto:
>>>
>>> Thank you for your reply.
>>>
>>> It looks like some make file system is check result of exit status($@) of
>>> rm which is related to variables $BB_INTERMEDIATES.
>>>
>>> 'we're not seeing this build error with oreo-x86' you said. I think my
>>> build environment is strange. Now I will check bug report of related
>>> packages. Please let me know which package can be related to this issue, If
>>> you know. I will trying to check that package intensively.
>>>
>>> Thank you for your answer. Best regards.
>>>
>>> 2017년 12월 23일 토요일 오전 7시 11분 32초 UTC+9, Mauro Rossi 님의 말:
>>>>
>>>> Hi, we're not seeing this build error with oreo-x86,
>>>>
>>>> however you could try to avoid evaluating $(local-intermediates-dir)
>>>> macro at line 140,
>>>> by defining a variable BB_INTERMEDIATES to store
>>>> $(local-intermediates-dir) value.

Thanks to Mauro's patch but it's not a proper fix either.
I just realized the whole intermediates dir should not
be removed otherwise the import_includes in that dir
may be removed. It causes other issues.

I've pushed a proper fix.
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages