English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 29 April 2021, 23:41   #1
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
Segmentation fault VBCC on Debian target warpos

In the hope that phx sees this:

I compiled vbcc, vlink and vasm for TARGET ppc and SYNTAX std (where applicable). All latest source snapshots (vscppc did not compile but that is besides this posting. I noticed it not being part of the makefile).

Now when I try to compile a source file to an object file with vc +warpos -c99 -O3 the compiler gives a segment fault.

A simple HelloWorld with just a printf compiles fine with above vc parameters

The segmentation fault seems to be in vbccpcc. Actual command as formed by invoking vc is something like:

vbccppc -quiet <src> -o=<target.scs> -c99 -I<someinc> -dontwarn=<somenum> -sc -poweropen -madd -I$VBCC/targets/ppc-warpos/include -I$INCLUDE_H

When I either leave out -O=-1 or -poweropen, it compiles fine.

I also tried the static compiled linux executables. Any suggestions?
Hedeon is offline  
Old 30 April 2021, 11:26   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
There is not much I can say, without something to reproduce the crash. I admit I haven't done much WarpOS tests during the last months, but I just compiled our whole testsuite with -O3 for WarpOS and there was nothing.

So you have to provide me some example source. Compile it with -E, so you get the preprocessor output file with .i extension, which includes all header files. Then contact me by mail.
phx is offline  
Old 30 April 2021, 20:41   #3
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
You got mail :-)
Hedeon is offline  
Old 01 May 2021, 18:49   #4
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
Just a public 'thank you' to Frank and Volker for fixing this. And in the meantime I found another Segmentation Error :-)
Hedeon is offline  
Old 01 May 2021, 21:20   #5
robinsonb5
Registered User
 
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
Quote:
Originally Posted by Hedeon View Post
Just a public 'thank you' to Frank and Volker for fixing this. And in the meantime I found another Segmentation Error :-)

Much as I loathe facebook, I find myself wishing more and more that forums had a "Like" button - because this definitely deserves a like.


Both Franke and Volker were really helpful and enthusiastic when I started tinkering with a custom vbcc backend about 18 months ago, and I find myself appreciating the gem that is the vbcc / vasm / vlink toolchain all the more every time I tangle with GCC.


A few days ago I needed to build a simple Megadrive ROM to try and find a bug in an FPGA core - I found a GCC-based devkit online, and I watched an entire movie while the toolchain was compiling. In the end I gave up on that avenue and used vasm to build the ROM instead.
robinsonb5 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
FS UAE segmentation fault cpr0 support.FS-UAE 2 28 March 2018 09:16
All of a sudden "Segmentation Fault" Bladeforce support.FS-UAE 14 29 January 2015 10:51
Unable to start FS-UAE because of segmentation fault [Solved] v3gard support.FS-UAE 2 18 March 2013 18:32
Alien Target Shoonay Games images which need to be WHDified 14 30 January 2012 16:58
savestate.cpp => segmentation fault john4p support.Other 2 07 July 2010 08:55

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:29.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06743 seconds with 15 queries