Clang on armhf

Post Reply
grigorye
New here
Posts: 2
Joined: Wed Jun 27, 2018 2:46 pm

Clang on armhf

Post by grigorye »

Hi folks, I'm trying to experiment with build some stuff in Container Station on TS-431P3 (that is armhf/arm32v7).

While everything "works" so far, I got a problem with Clang. It basically segfaults on launch like below:

Code: Select all

Ubuntu 18.04.5 LTS ubuntu-bionic-armhf pts/1                                                                                                                                                                                      
                                                                                                                                                                                                                                  
ubuntu-bionic-armhf login: ubuntu (automatic login)                                                                                                                                                                               
                                                                                                                                                                                                                                  
Last login: Sun Apr  4 08:48:49 UTC 2021 on pts/0                                                                                                                                                                                 
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.2.8 armv7l)                                                                                                                                                                            
                                                                                                                                                                                                                                  
 * Documentation:  https://help.ubuntu.com                                                                                                                                                                                        
 * Management:     https://landscape.canonical.com                                                                                                                                                                                
 * Support:        https://ubuntu.com/advantage                                                                                                                                                                                   
ubuntu@ubuntu-bionic-armhf:~$ uname -a                                                                                                                                                                                            
Linux ubuntu-bionic-armhf 4.2.8 #2 SMP Tue Mar 2 10:59:21 CST 2021 armv7l armv7l armv7l GNU/Linux                                                                                                                                 
ubuntu@ubuntu-bionic-armhf:~$ clang                                                                                                                                                                                               
Segmentation fault                                                                                                                                                                                                                
ubuntu@ubuntu-bionic-armhf:~$                                                                                                                                                                                                     
I tried several (stock) containers like LXC ubuntu/bionic, debian/buster, Docker ubuntu/bionic etc, as well as *different* versions of clang. All the combinations crash like above.

For the reference, GCC etc works without a problem.

So, I wonder if there's something wrong on the host side of the system. I do have some Entware stuff installed there but it's pretty minimal/I'm not sure it causes this thing (no clang or something there, just in case). Other than that, I can't recall anything non-standard on the host side.

Any clues/hints?

Regards,
Grigorii
grigorye
New here
Posts: 2
Joined: Wed Jun 27, 2018 2:46 pm

Re: Clang on armhf

Post by grigorye »

Just in case, luckily, pre-built binaries for Clang hosted on LLVM releases page seem to work correctly... So, I wonder whether this problem is specific to Debian/Ubuntu package or something... Still looking for any clues.
Post Reply

Return to “Container Station”